diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
new file mode 100644
index 00000000..7681c3f2
--- /dev/null
+++ b/.github/workflows/python.yml
@@ -0,0 +1,31 @@
+# NOTE: This file is auto generated by OpenAPI Generator.
+# URL: https://openapi-generator.tech
+#
+# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
+
+name: kinde_sdk Python package
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+ pip install -r test-requirements.txt
+ - name: Test with pytest
+ run: |
+ pytest --cov=kinde_sdk
diff --git a/.gitignore b/.gitignore
index b616c1ee..43995bd4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
@@ -9,6 +8,7 @@ __pycache__/
# Distribution / packaging
.Python
+env/
build/
develop-eggs/
dist/
@@ -20,7 +20,6 @@ lib64/
parts/
sdist/
var/
-wheels/
*.egg-info/
.installed.cfg
*.egg
@@ -43,15 +42,19 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
-*.cover
+*,cover
.hypothesis/
+venv/
+.venv/
+.python-version
+.pytest_cache
# Translations
*.mo
*.pot
# Django stuff:
-staticfiles/
+*.log
# Sphinx documentation
docs/_build/
@@ -59,185 +62,5 @@ docs/_build/
# PyBuilder
target/
-# pyenv
-.python-version
-
-# celery beat schedule file
-celerybeat-schedule
-
-# Environments
-.venv
-venv/
-ENV/
-
-# Rope project settings
-.ropeproject
-
-# mkdocs documentation
-/site
-
-# mypy
-.mypy_cache/
-
-
-### Node template
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-
-# nyc test coverage
-.nyc_output
-
-# Bower dependency directory (https://bower.io/)
-bower_components
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# Typescript v1 declaration files
-typings/
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-
-### Linux template
-*~
-
-# temporary files which can be created if a process still has a handle open of a deleted file
-.fuse_hidden*
-
-# KDE directory preferences
-.directory
-
-# Linux trash folder which might appear on any partition or disk
-.Trash-*
-
-# .nfs files are created when an open file is removed but is still being accessed
-.nfs*
-
-
-### VisualStudioCode template
-.vscode/*
-!.vscode/settings.json
-!.vscode/tasks.json
-!.vscode/launch.json
-!.vscode/extensions.json
-*.code-workspace
-
-# Local History for Visual Studio Code
-.history/
-
-.idea/
-
-# CMake
-cmake-build-debug/
-
-## File-based project format:
-*.iws
-
-## Plugin-specific files:
-
-# IntelliJ
-out/
-
-# mpeltonen/sbt-idea plugin
-.idea_modules/
-
-# JIRA plugin
-atlassian-ide-plugin.xml
-
-# Crashlytics plugin (for Android Studio and IntelliJ)
-com_crashlytics_export_strings.xml
-crashlytics.properties
-crashlytics-build.properties
-fabric.properties
-
-
-
-### Windows template
-# Windows thumbnail cache files
-Thumbs.db
-ehthumbs.db
-ehthumbs_vista.db
-
-# Dump file
-*.stackdump
-
-# Folder config file
-Desktop.ini
-
-# Recycle Bin used on file shares
-$RECYCLE.BIN/
-
-# Windows Installer files
-*.cab
-*.msi
-*.msm
-*.msp
-
-# Windows shortcuts
-*.lnk
-
-
-### macOS template
-# General
-*.DS_Store
-.AppleDouble
-.LSOverride
-
-# Icon must end with two \r
-Icon
-
-# Thumbnails
-._*
-
-# Files that might appear in the root of a volume
-.DocumentRevisions-V100
-.fseventsd
-.Spotlight-V100
-.TemporaryItems
-.Trashes
-.VolumeIcon.icns
-.com.apple.timemachine.donotpresent
-
-# Directories potentially created on remote AFP share
-.AppleDB
-.AppleDesktop
-Network Trash Folder
-Temporary Items
-.apdisk
+#Ipython Notebook
+.ipynb_checkpoints
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..333b5606
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,31 @@
+# NOTE: This file is auto generated by OpenAPI Generator.
+# URL: https://openapi-generator.tech
+#
+# ref: https://docs.gitlab.com/ee/ci/README.html
+# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
+
+stages:
+ - test
+
+.pytest:
+ stage: test
+ script:
+ - pip install -r requirements.txt
+ - pip install -r test-requirements.txt
+ - pytest --cov=kinde_sdk
+
+pytest-3.9:
+ extends: .pytest
+ image: python:3.9-alpine
+pytest-3.10:
+ extends: .pytest
+ image: python:3.10-alpine
+pytest-3.11:
+ extends: .pytest
+ image: python:3.11-alpine
+pytest-3.12:
+ extends: .pytest
+ image: python:3.12-alpine
+pytest-3.13:
+ extends: .pytest
+ image: python:3.13-alpine
diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index f6cfb9b8..9d9316bd 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -1,319 +1,805 @@
-.github/workflows/ci.yml
+.github/workflows/python.yml
.gitignore
-.pre-commit-config.yaml
-LICENSE
+.gitlab-ci.yml
+.travis.yml
README.md
+docs/APIsApi.md
+docs/AddAPIScopeRequest.md
+docs/AddAPIsRequest.md
+docs/AddOrganizationUsersRequest.md
+docs/AddOrganizationUsersRequestUsersInner.md
+docs/AddOrganizationUsersResponse.md
+docs/AddRoleScopeRequest.md
+docs/AddRoleScopeResponse.md
+docs/ApiResult.md
+docs/Applications.md
+docs/ApplicationsApi.md
+docs/AuthorizeAppApiResponse.md
+docs/BillingAgreementsApi.md
+docs/BillingApi.md
+docs/BillingEntitlementsApi.md
+docs/BillingMeterUsageApi.md
+docs/BusinessApi.md
+docs/CallbacksApi.md
+docs/Category.md
+docs/ConnectedAppsAccessToken.md
+docs/ConnectedAppsApi.md
+docs/ConnectedAppsAuthUrl.md
+docs/Connection.md
+docs/ConnectionConnection.md
+docs/ConnectionsApi.md
+docs/CreateApiScopesResponse.md
+docs/CreateApiScopesResponseScope.md
+docs/CreateApisResponse.md
+docs/CreateApisResponseApi.md
+docs/CreateApplicationRequest.md
+docs/CreateApplicationResponse.md
+docs/CreateApplicationResponseApplication.md
+docs/CreateBillingAgreementRequest.md
+docs/CreateCategoryRequest.md
+docs/CreateCategoryResponse.md
+docs/CreateCategoryResponseCategory.md
+docs/CreateConnectionRequest.md
+docs/CreateConnectionRequestOptions.md
+docs/CreateConnectionRequestOptionsOneOf.md
+docs/CreateConnectionRequestOptionsOneOf1.md
+docs/CreateConnectionRequestOptionsOneOf2.md
+docs/CreateConnectionResponse.md
+docs/CreateConnectionResponseConnection.md
+docs/CreateEnvironmentVariableRequest.md
+docs/CreateEnvironmentVariableResponse.md
+docs/CreateEnvironmentVariableResponseEnvironmentVariable.md
+docs/CreateFeatureFlagRequest.md
+docs/CreateIdentityResponse.md
+docs/CreateIdentityResponseIdentity.md
+docs/CreateMeterUsageRecordRequest.md
+docs/CreateMeterUsageRecordResponse.md
+docs/CreateOrganizationRequest.md
+docs/CreateOrganizationResponse.md
+docs/CreateOrganizationResponseOrganization.md
+docs/CreateOrganizationUserPermissionRequest.md
+docs/CreateOrganizationUserRoleRequest.md
+docs/CreatePermissionRequest.md
+docs/CreatePropertyRequest.md
+docs/CreatePropertyResponse.md
+docs/CreatePropertyResponseProperty.md
+docs/CreateRoleRequest.md
+docs/CreateRolesResponse.md
+docs/CreateRolesResponseRole.md
+docs/CreateSubscriberSuccessResponse.md
+docs/CreateSubscriberSuccessResponseSubscriber.md
+docs/CreateUserIdentityRequest.md
+docs/CreateUserRequest.md
+docs/CreateUserRequestIdentitiesInner.md
+docs/CreateUserRequestIdentitiesInnerDetails.md
+docs/CreateUserRequestProfile.md
+docs/CreateUserResponse.md
+docs/CreateWebHookRequest.md
+docs/CreateWebhookResponse.md
+docs/CreateWebhookResponseWebhook.md
+docs/DeleteApiResponse.md
+docs/DeleteEnvironmentVariableResponse.md
+docs/DeleteRoleScopeResponse.md
+docs/DeleteWebhookResponse.md
+docs/EnvironmentVariable.md
+docs/EnvironmentVariablesApi.md
+docs/EnvironmentsApi.md
+docs/Error.md
+docs/ErrorResponse.md
+docs/EventType.md
+docs/FeatureFlags0Api.md
+docs/FeatureFlagsApi.md
+docs/GetApiResponse.md
+docs/GetApiResponseApi.md
+docs/GetApiResponseApiApplicationsInner.md
+docs/GetApiResponseApiScopesInner.md
+docs/GetApiScopeResponse.md
+docs/GetApiScopesResponse.md
+docs/GetApiScopesResponseScopesInner.md
+docs/GetApisResponse.md
+docs/GetApisResponseApisInner.md
+docs/GetApisResponseApisInnerScopesInner.md
+docs/GetApplicationResponse.md
+docs/GetApplicationResponseApplication.md
+docs/GetApplicationsResponse.md
+docs/GetBillingAgreementsResponse.md
+docs/GetBillingAgreementsResponseAgreementsInner.md
+docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md
+docs/GetBillingEntitlementsResponse.md
+docs/GetBillingEntitlementsResponseEntitlementsInner.md
+docs/GetBillingEntitlementsResponsePlansInner.md
+docs/GetBusinessResponse.md
+docs/GetBusinessResponseBusiness.md
+docs/GetCategoriesResponse.md
+docs/GetConnectionsResponse.md
+docs/GetEntitlementsResponse.md
+docs/GetEntitlementsResponseData.md
+docs/GetEntitlementsResponseDataEntitlementsInner.md
+docs/GetEntitlementsResponseDataPlansInner.md
+docs/GetEntitlementsResponseMetadata.md
+docs/GetEnvironmentFeatureFlagsResponse.md
+docs/GetEnvironmentResponse.md
+docs/GetEnvironmentResponseEnvironment.md
+docs/GetEnvironmentResponseEnvironmentBackgroundColor.md
+docs/GetEnvironmentResponseEnvironmentLinkColor.md
+docs/GetEnvironmentVariableResponse.md
+docs/GetEnvironmentVariablesResponse.md
+docs/GetEventResponse.md
+docs/GetEventResponseEvent.md
+docs/GetEventTypesResponse.md
+docs/GetFeatureFlagsResponse.md
+docs/GetFeatureFlagsResponseData.md
+docs/GetFeatureFlagsResponseDataFeatureFlagsInner.md
+docs/GetIdentitiesResponse.md
+docs/GetIndustriesResponse.md
+docs/GetIndustriesResponseIndustriesInner.md
+docs/GetOrganizationFeatureFlagsResponse.md
+docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md
+docs/GetOrganizationResponse.md
+docs/GetOrganizationResponseBilling.md
+docs/GetOrganizationResponseBillingAgreementsInner.md
+docs/GetOrganizationUsersResponse.md
+docs/GetOrganizationsResponse.md
+docs/GetOrganizationsUserPermissionsResponse.md
+docs/GetOrganizationsUserRolesResponse.md
+docs/GetPermissionsResponse.md
+docs/GetPortalLink.md
+docs/GetPropertiesResponse.md
+docs/GetPropertyValuesResponse.md
+docs/GetRedirectCallbackUrlsResponse.md
+docs/GetRoleResponse.md
+docs/GetRoleResponseRole.md
+docs/GetRolesResponse.md
+docs/GetSubscriberResponse.md
+docs/GetSubscribersResponse.md
+docs/GetTimezonesResponse.md
+docs/GetTimezonesResponseTimezonesInner.md
+docs/GetUserMfaResponse.md
+docs/GetUserMfaResponseMfa.md
+docs/GetUserPermissionsResponse.md
+docs/GetUserPermissionsResponseData.md
+docs/GetUserPermissionsResponseDataPermissionsInner.md
+docs/GetUserPermissionsResponseMetadata.md
+docs/GetUserPropertiesResponse.md
+docs/GetUserPropertiesResponseData.md
+docs/GetUserPropertiesResponseDataPropertiesInner.md
+docs/GetUserPropertiesResponseMetadata.md
+docs/GetUserRolesResponse.md
+docs/GetUserRolesResponseData.md
+docs/GetUserRolesResponseDataRolesInner.md
+docs/GetUserRolesResponseMetadata.md
+docs/GetUserSessionsResponse.md
+docs/GetUserSessionsResponseSessionsInner.md
+docs/GetWebhooksResponse.md
+docs/IdentitiesApi.md
+docs/Identity.md
+docs/IndustriesApi.md
+docs/LogoutRedirectUrls.md
+docs/MFAApi.md
+docs/ModelProperty.md
+docs/NotFoundResponse.md
+docs/NotFoundResponseErrors.md
+docs/OAuthApi.md
+docs/OrganizationItemSchema.md
+docs/OrganizationUser.md
+docs/OrganizationUserPermission.md
+docs/OrganizationUserPermissionRolesInner.md
+docs/OrganizationUserRole.md
+docs/OrganizationUserRolePermissions.md
+docs/OrganizationUserRolePermissionsPermissions.md
+docs/OrganizationsApi.md
+docs/Permissions.md
+docs/PermissionsApi.md
+docs/PropertiesApi.md
+docs/PropertyCategoriesApi.md
+docs/PropertyValue.md
+docs/ReadEnvLogoResponse.md
+docs/ReadEnvLogoResponseLogosInner.md
+docs/ReadLogoResponse.md
+docs/ReadLogoResponseLogosInner.md
+docs/RedirectCallbackUrls.md
+docs/ReplaceConnectionRequest.md
+docs/ReplaceConnectionRequestOptions.md
+docs/ReplaceConnectionRequestOptionsOneOf.md
+docs/ReplaceConnectionRequestOptionsOneOf1.md
+docs/ReplaceLogoutRedirectURLsRequest.md
+docs/ReplaceMFARequest.md
+docs/ReplaceOrganizationMFARequest.md
+docs/ReplaceRedirectCallbackURLsRequest.md
+docs/Role.md
+docs/RolePermissionsResponse.md
+docs/RoleScopesResponse.md
+docs/Roles.md
+docs/RolesApi.md
+docs/Scopes.md
+docs/SearchApi.md
+docs/SearchUsersResponse.md
+docs/SearchUsersResponseResultsInner.md
+docs/SelfServePortalApi.md
+docs/SetUserPasswordRequest.md
+docs/Subscriber.md
+docs/SubscribersApi.md
+docs/SubscribersSubscriber.md
+docs/SuccessResponse.md
+docs/TimezonesApi.md
+docs/TokenErrorResponse.md
+docs/TokenIntrospect.md
+docs/UpdateAPIApplicationsRequest.md
+docs/UpdateAPIApplicationsRequestApplicationsInner.md
+docs/UpdateAPIScopeRequest.md
+docs/UpdateApplicationRequest.md
+docs/UpdateApplicationTokensRequest.md
+docs/UpdateApplicationsPropertyRequest.md
+docs/UpdateApplicationsPropertyRequestValue.md
+docs/UpdateBusinessRequest.md
+docs/UpdateCategoryRequest.md
+docs/UpdateConnectionRequest.md
+docs/UpdateEnvironementFeatureFlagOverrideRequest.md
+docs/UpdateEnvironmentVariableRequest.md
+docs/UpdateEnvironmentVariableResponse.md
+docs/UpdateIdentityRequest.md
+docs/UpdateOrganizationPropertiesRequest.md
+docs/UpdateOrganizationRequest.md
+docs/UpdateOrganizationSessionsRequest.md
+docs/UpdateOrganizationUsersRequest.md
+docs/UpdateOrganizationUsersRequestUsersInner.md
+docs/UpdateOrganizationUsersResponse.md
+docs/UpdatePropertyRequest.md
+docs/UpdateRolePermissionsRequest.md
+docs/UpdateRolePermissionsRequestPermissionsInner.md
+docs/UpdateRolePermissionsResponse.md
+docs/UpdateRolesRequest.md
+docs/UpdateUserRequest.md
+docs/UpdateUserResponse.md
+docs/UpdateWebHookRequest.md
+docs/UpdateWebhookResponse.md
+docs/UpdateWebhookResponseWebhook.md
+docs/User.md
+docs/UserIdentitiesInner.md
+docs/UserIdentity.md
+docs/UserIdentityResult.md
+docs/UserProfileV2.md
+docs/UsersApi.md
+docs/UsersResponse.md
+docs/UsersResponseUsersInner.md
+docs/Webhook.md
+docs/WebhooksApi.md
+git_push.sh
kinde_sdk/__init__.py
-kinde_sdk/__init__.py
+kinde_sdk/api/__init__.py
+kinde_sdk/api/apis_api.py
+kinde_sdk/api/applications_api.py
+kinde_sdk/api/billing_agreements_api.py
+kinde_sdk/api/billing_api.py
+kinde_sdk/api/billing_entitlements_api.py
+kinde_sdk/api/billing_meter_usage_api.py
+kinde_sdk/api/business_api.py
+kinde_sdk/api/callbacks_api.py
+kinde_sdk/api/connected_apps_api.py
+kinde_sdk/api/connections_api.py
+kinde_sdk/api/environment_variables_api.py
+kinde_sdk/api/environments_api.py
+kinde_sdk/api/feature_flags0_api.py
+kinde_sdk/api/feature_flags_api.py
+kinde_sdk/api/identities_api.py
+kinde_sdk/api/industries_api.py
+kinde_sdk/api/mfa_api.py
+kinde_sdk/api/o_auth_api.py
+kinde_sdk/api/organizations_api.py
+kinde_sdk/api/permissions_api.py
+kinde_sdk/api/properties_api.py
+kinde_sdk/api/property_categories_api.py
+kinde_sdk/api/roles_api.py
+kinde_sdk/api/search_api.py
+kinde_sdk/api/self_serve_portal_api.py
+kinde_sdk/api/subscribers_api.py
+kinde_sdk/api/timezones_api.py
+kinde_sdk/api/users_api.py
+kinde_sdk/api/webhooks_api.py
kinde_sdk/api_client.py
-kinde_sdk/apis/__init__.py
-kinde_sdk/apis/tags/apis_api.py
-kinde_sdk/apis/tags/applications_api.py
-kinde_sdk/apis/tags/business_api.py
-kinde_sdk/apis/tags/callbacks_api.py
-kinde_sdk/apis/tags/connected_apps_api.py
-kinde_sdk/apis/tags/connections_api.py
-kinde_sdk/apis/tags/environments_api.py
-kinde_sdk/apis/tags/feature_flags_api.py
-kinde_sdk/apis/tags/industries_api.py
-kinde_sdk/apis/tags/o_auth_api.py
-kinde_sdk/apis/tags/organizations_api.py
-kinde_sdk/apis/tags/permissions_api.py
-kinde_sdk/apis/tags/properties_api.py
-kinde_sdk/apis/tags/property_categories_api.py
-kinde_sdk/apis/tags/roles_api.py
-kinde_sdk/apis/tags/subscribers_api.py
-kinde_sdk/apis/tags/timezones_api.py
-kinde_sdk/apis/tags/users_api.py
-kinde_sdk/apis/tags/webhooks_api.py
+kinde_sdk/api_response.py
kinde_sdk/configuration.py
-kinde_sdk/docs/apis/tags/APIsApi.md
-kinde_sdk/docs/apis/tags/ApplicationsApi.md
-kinde_sdk/docs/apis/tags/BusinessApi.md
-kinde_sdk/docs/apis/tags/CallbacksApi.md
-kinde_sdk/docs/apis/tags/ConnectedAppsApi.md
-kinde_sdk/docs/apis/tags/ConnectionsApi.md
-kinde_sdk/docs/apis/tags/EnvironmentsApi.md
-kinde_sdk/docs/apis/tags/FeatureFlagsApi.md
-kinde_sdk/docs/apis/tags/IndustriesApi.md
-kinde_sdk/docs/apis/tags/OAuthApi.md
-kinde_sdk/docs/apis/tags/OrganizationsApi.md
-kinde_sdk/docs/apis/tags/PermissionsApi.md
-kinde_sdk/docs/apis/tags/PropertiesApi.md
-kinde_sdk/docs/apis/tags/PropertyCategoriesApi.md
-kinde_sdk/docs/apis/tags/RolesApi.md
-kinde_sdk/docs/apis/tags/SubscribersApi.md
-kinde_sdk/docs/apis/tags/TimezonesApi.md
-kinde_sdk/docs/apis/tags/UsersApi.md
-kinde_sdk/docs/apis/tags/WebhooksApi.md
-kinde_sdk/docs/models/AddOrganizationUsersResponse.md
-kinde_sdk/docs/models/Api.md
-kinde_sdk/docs/models/ApiResult.md
-kinde_sdk/docs/models/Apis.md
-kinde_sdk/docs/models/Applications.md
-kinde_sdk/docs/models/Category.md
-kinde_sdk/docs/models/ConnectedAppsAccessToken.md
-kinde_sdk/docs/models/ConnectedAppsAuthUrl.md
-kinde_sdk/docs/models/Connection.md
-kinde_sdk/docs/models/CreateApplicationResponse.md
-kinde_sdk/docs/models/CreateCategoryResponse.md
-kinde_sdk/docs/models/CreateConnectionResponse.md
-kinde_sdk/docs/models/CreateOrganizationResponse.md
-kinde_sdk/docs/models/CreatePropertyResponse.md
-kinde_sdk/docs/models/CreateSubscriberSuccessResponse.md
-kinde_sdk/docs/models/CreateUserResponse.md
-kinde_sdk/docs/models/CreateWebhookResponse.md
-kinde_sdk/docs/models/DeleteWebhookResponse.md
-kinde_sdk/docs/models/Error.md
-kinde_sdk/docs/models/ErrorResponse.md
-kinde_sdk/docs/models/EventType.md
-kinde_sdk/docs/models/GetApplicationResponse.md
-kinde_sdk/docs/models/GetApplicationsResponse.md
-kinde_sdk/docs/models/GetCategoriesResponse.md
-kinde_sdk/docs/models/GetConnectionsResponse.md
-kinde_sdk/docs/models/GetEnvironmentFeatureFlagsResponse.md
-kinde_sdk/docs/models/GetEventResponse.md
-kinde_sdk/docs/models/GetEventTypesResponse.md
-kinde_sdk/docs/models/GetOrganizationFeatureFlagsResponse.md
-kinde_sdk/docs/models/GetOrganizationUsersResponse.md
-kinde_sdk/docs/models/GetOrganizationsResponse.md
-kinde_sdk/docs/models/GetOrganizationsUserPermissionsResponse.md
-kinde_sdk/docs/models/GetOrganizationsUserRolesResponse.md
-kinde_sdk/docs/models/GetPermissionsResponse.md
-kinde_sdk/docs/models/GetPropertiesResponse.md
-kinde_sdk/docs/models/GetPropertyValuesResponse.md
-kinde_sdk/docs/models/GetRedirectCallbackUrlsResponse.md
-kinde_sdk/docs/models/GetRolesResponse.md
-kinde_sdk/docs/models/GetSubscriberResponse.md
-kinde_sdk/docs/models/GetSubscribersResponse.md
-kinde_sdk/docs/models/GetWebhooksResponse.md
-kinde_sdk/docs/models/LogoutRedirectUrls.md
-kinde_sdk/docs/models/ModelProperty.md
-kinde_sdk/docs/models/Organization.md
-kinde_sdk/docs/models/OrganizationUser.md
-kinde_sdk/docs/models/OrganizationUserPermission.md
-kinde_sdk/docs/models/OrganizationUserRole.md
-kinde_sdk/docs/models/OrganizationUserRolePermissions.md
-kinde_sdk/docs/models/OrganizationUsers.md
-kinde_sdk/docs/models/Permissions.md
-kinde_sdk/docs/models/PropertyValue.md
-kinde_sdk/docs/models/RedirectCallbackUrls.md
-kinde_sdk/docs/models/Role.md
-kinde_sdk/docs/models/Roles.md
-kinde_sdk/docs/models/RolesPermissionResponse.md
-kinde_sdk/docs/models/Subscriber.md
-kinde_sdk/docs/models/SubscribersSubscriber.md
-kinde_sdk/docs/models/SuccessResponse.md
-kinde_sdk/docs/models/TokenErrorResponse.md
-kinde_sdk/docs/models/TokenIntrospect.md
-kinde_sdk/docs/models/UpdateOrganizationUsersResponse.md
-kinde_sdk/docs/models/UpdateRolePermissionsResponse.md
-kinde_sdk/docs/models/UpdateUserResponse.md
-kinde_sdk/docs/models/UpdateWebhookResponse.md
-kinde_sdk/docs/models/User.md
-kinde_sdk/docs/models/UserIdentity.md
-kinde_sdk/docs/models/UserProfile.md
-kinde_sdk/docs/models/UserProfileV2.md
-kinde_sdk/docs/models/Users.md
-kinde_sdk/docs/models/UsersResponse.md
-kinde_sdk/docs/models/Webhook.md
-kinde_sdk/exceptions.py
kinde_sdk/exceptions.py
-kinde_sdk/kinde_api_client.py
-kinde_sdk/model/__init__.py
-kinde_sdk/model/add_organization_users_response.py
-kinde_sdk/model/add_organization_users_response.pyi
-kinde_sdk/model/api.py
-kinde_sdk/model/api.pyi
-kinde_sdk/model/api_result.py
-kinde_sdk/model/api_result.pyi
-kinde_sdk/model/apis.py
-kinde_sdk/model/apis.pyi
-kinde_sdk/model/applications.py
-kinde_sdk/model/applications.pyi
-kinde_sdk/model/category.py
-kinde_sdk/model/category.pyi
-kinde_sdk/model/connected_apps_access_token.py
-kinde_sdk/model/connected_apps_access_token.pyi
-kinde_sdk/model/connected_apps_auth_url.py
-kinde_sdk/model/connected_apps_auth_url.pyi
-kinde_sdk/model/connection.py
-kinde_sdk/model/connection.pyi
-kinde_sdk/model/create_application_response.py
-kinde_sdk/model/create_application_response.pyi
-kinde_sdk/model/create_category_response.py
-kinde_sdk/model/create_category_response.pyi
-kinde_sdk/model/create_connection_response.py
-kinde_sdk/model/create_connection_response.pyi
-kinde_sdk/model/create_organization_response.py
-kinde_sdk/model/create_organization_response.pyi
-kinde_sdk/model/create_property_response.py
-kinde_sdk/model/create_property_response.pyi
-kinde_sdk/model/create_subscriber_success_response.py
-kinde_sdk/model/create_subscriber_success_response.pyi
-kinde_sdk/model/create_user_response.py
-kinde_sdk/model/create_user_response.pyi
-kinde_sdk/model/create_webhook_response.py
-kinde_sdk/model/create_webhook_response.pyi
-kinde_sdk/model/delete_webhook_response.py
-kinde_sdk/model/delete_webhook_response.pyi
-kinde_sdk/model/error.py
-kinde_sdk/model/error.pyi
-kinde_sdk/model/error_response.py
-kinde_sdk/model/error_response.pyi
-kinde_sdk/model/event_type.py
-kinde_sdk/model/event_type.pyi
-kinde_sdk/model/get_application_response.py
-kinde_sdk/model/get_application_response.pyi
-kinde_sdk/model/get_applications_response.py
-kinde_sdk/model/get_applications_response.pyi
-kinde_sdk/model/get_categories_response.py
-kinde_sdk/model/get_categories_response.pyi
-kinde_sdk/model/get_connections_response.py
-kinde_sdk/model/get_connections_response.pyi
-kinde_sdk/model/get_environment_feature_flags_response.py
-kinde_sdk/model/get_environment_feature_flags_response.pyi
-kinde_sdk/model/get_event_response.py
-kinde_sdk/model/get_event_response.pyi
-kinde_sdk/model/get_event_types_response.py
-kinde_sdk/model/get_event_types_response.pyi
-kinde_sdk/model/get_organization_feature_flags_response.py
-kinde_sdk/model/get_organization_feature_flags_response.pyi
-kinde_sdk/model/get_organization_users_response.py
-kinde_sdk/model/get_organization_users_response.pyi
-kinde_sdk/model/get_organizations_response.py
-kinde_sdk/model/get_organizations_response.pyi
-kinde_sdk/model/get_organizations_user_permissions_response.py
-kinde_sdk/model/get_organizations_user_permissions_response.pyi
-kinde_sdk/model/get_organizations_user_roles_response.py
-kinde_sdk/model/get_organizations_user_roles_response.pyi
-kinde_sdk/model/get_permissions_response.py
-kinde_sdk/model/get_permissions_response.pyi
-kinde_sdk/model/get_properties_response.py
-kinde_sdk/model/get_properties_response.pyi
-kinde_sdk/model/get_property_values_response.py
-kinde_sdk/model/get_property_values_response.pyi
-kinde_sdk/model/get_redirect_callback_urls_response.py
-kinde_sdk/model/get_redirect_callback_urls_response.pyi
-kinde_sdk/model/get_roles_response.py
-kinde_sdk/model/get_roles_response.pyi
-kinde_sdk/model/get_subscriber_response.py
-kinde_sdk/model/get_subscriber_response.pyi
-kinde_sdk/model/get_subscribers_response.py
-kinde_sdk/model/get_subscribers_response.pyi
-kinde_sdk/model/get_webhooks_response.py
-kinde_sdk/model/get_webhooks_response.pyi
-kinde_sdk/model/logout_redirect_urls.py
-kinde_sdk/model/logout_redirect_urls.pyi
-kinde_sdk/model/model_property.py
-kinde_sdk/model/model_property.pyi
-kinde_sdk/model/organization.py
-kinde_sdk/model/organization.pyi
-kinde_sdk/model/organization_user.py
-kinde_sdk/model/organization_user.pyi
-kinde_sdk/model/organization_user_permission.py
-kinde_sdk/model/organization_user_permission.pyi
-kinde_sdk/model/organization_user_role.py
-kinde_sdk/model/organization_user_role.pyi
-kinde_sdk/model/organization_user_role_permissions.py
-kinde_sdk/model/organization_user_role_permissions.pyi
-kinde_sdk/model/organization_users.py
-kinde_sdk/model/organization_users.pyi
-kinde_sdk/model/permissions.py
-kinde_sdk/model/permissions.pyi
-kinde_sdk/model/property_value.py
-kinde_sdk/model/property_value.pyi
-kinde_sdk/model/redirect_callback_urls.py
-kinde_sdk/model/redirect_callback_urls.pyi
-kinde_sdk/model/role.py
-kinde_sdk/model/role.pyi
-kinde_sdk/model/roles.py
-kinde_sdk/model/roles.pyi
-kinde_sdk/model/roles_permission_response.py
-kinde_sdk/model/roles_permission_response.pyi
-kinde_sdk/model/subscriber.py
-kinde_sdk/model/subscriber.pyi
-kinde_sdk/model/subscribers_subscriber.py
-kinde_sdk/model/subscribers_subscriber.pyi
-kinde_sdk/model/success_response.py
-kinde_sdk/model/success_response.pyi
-kinde_sdk/model/token_error_response.py
-kinde_sdk/model/token_error_response.pyi
-kinde_sdk/model/token_introspect.py
-kinde_sdk/model/token_introspect.pyi
-kinde_sdk/model/update_organization_users_response.py
-kinde_sdk/model/update_organization_users_response.pyi
-kinde_sdk/model/update_role_permissions_response.py
-kinde_sdk/model/update_role_permissions_response.pyi
-kinde_sdk/model/update_user_response.py
-kinde_sdk/model/update_user_response.pyi
-kinde_sdk/model/update_webhook_response.py
-kinde_sdk/model/update_webhook_response.pyi
-kinde_sdk/model/user.py
-kinde_sdk/model/user.pyi
-kinde_sdk/model/user_identity.py
-kinde_sdk/model/user_identity.pyi
-kinde_sdk/model/user_profile.py
-kinde_sdk/model/user_profile.pyi
-kinde_sdk/model/user_profile_v2.py
-kinde_sdk/model/user_profile_v2.pyi
-kinde_sdk/model/users.py
-kinde_sdk/model/users.pyi
-kinde_sdk/model/users_response.py
-kinde_sdk/model/users_response.pyi
-kinde_sdk/model/webhook.py
-kinde_sdk/model/webhook.pyi
kinde_sdk/models/__init__.py
+kinde_sdk/models/add_api_scope_request.py
+kinde_sdk/models/add_apis_request.py
+kinde_sdk/models/add_organization_users_request.py
+kinde_sdk/models/add_organization_users_request_users_inner.py
+kinde_sdk/models/add_organization_users_response.py
+kinde_sdk/models/add_role_scope_request.py
+kinde_sdk/models/add_role_scope_response.py
+kinde_sdk/models/api_result.py
+kinde_sdk/models/applications.py
+kinde_sdk/models/authorize_app_api_response.py
+kinde_sdk/models/category.py
+kinde_sdk/models/connected_apps_access_token.py
+kinde_sdk/models/connected_apps_auth_url.py
+kinde_sdk/models/connection.py
+kinde_sdk/models/connection_connection.py
+kinde_sdk/models/create_api_scopes_response.py
+kinde_sdk/models/create_api_scopes_response_scope.py
+kinde_sdk/models/create_apis_response.py
+kinde_sdk/models/create_apis_response_api.py
+kinde_sdk/models/create_application_request.py
+kinde_sdk/models/create_application_response.py
+kinde_sdk/models/create_application_response_application.py
+kinde_sdk/models/create_billing_agreement_request.py
+kinde_sdk/models/create_category_request.py
+kinde_sdk/models/create_category_response.py
+kinde_sdk/models/create_category_response_category.py
+kinde_sdk/models/create_connection_request.py
+kinde_sdk/models/create_connection_request_options.py
+kinde_sdk/models/create_connection_request_options_one_of.py
+kinde_sdk/models/create_connection_request_options_one_of1.py
+kinde_sdk/models/create_connection_request_options_one_of2.py
+kinde_sdk/models/create_connection_response.py
+kinde_sdk/models/create_connection_response_connection.py
+kinde_sdk/models/create_environment_variable_request.py
+kinde_sdk/models/create_environment_variable_response.py
+kinde_sdk/models/create_environment_variable_response_environment_variable.py
+kinde_sdk/models/create_feature_flag_request.py
+kinde_sdk/models/create_identity_response.py
+kinde_sdk/models/create_identity_response_identity.py
+kinde_sdk/models/create_meter_usage_record_request.py
+kinde_sdk/models/create_meter_usage_record_response.py
+kinde_sdk/models/create_organization_request.py
+kinde_sdk/models/create_organization_response.py
+kinde_sdk/models/create_organization_response_organization.py
+kinde_sdk/models/create_organization_user_permission_request.py
+kinde_sdk/models/create_organization_user_role_request.py
+kinde_sdk/models/create_permission_request.py
+kinde_sdk/models/create_property_request.py
+kinde_sdk/models/create_property_response.py
+kinde_sdk/models/create_property_response_property.py
+kinde_sdk/models/create_role_request.py
+kinde_sdk/models/create_roles_response.py
+kinde_sdk/models/create_roles_response_role.py
+kinde_sdk/models/create_subscriber_success_response.py
+kinde_sdk/models/create_subscriber_success_response_subscriber.py
+kinde_sdk/models/create_user_identity_request.py
+kinde_sdk/models/create_user_request.py
+kinde_sdk/models/create_user_request_identities_inner.py
+kinde_sdk/models/create_user_request_identities_inner_details.py
+kinde_sdk/models/create_user_request_profile.py
+kinde_sdk/models/create_user_response.py
+kinde_sdk/models/create_web_hook_request.py
+kinde_sdk/models/create_webhook_response.py
+kinde_sdk/models/create_webhook_response_webhook.py
+kinde_sdk/models/delete_api_response.py
+kinde_sdk/models/delete_environment_variable_response.py
+kinde_sdk/models/delete_role_scope_response.py
+kinde_sdk/models/delete_webhook_response.py
+kinde_sdk/models/environment_variable.py
+kinde_sdk/models/error.py
+kinde_sdk/models/error_response.py
+kinde_sdk/models/event_type.py
+kinde_sdk/models/get_api_response.py
+kinde_sdk/models/get_api_response_api.py
+kinde_sdk/models/get_api_response_api_applications_inner.py
+kinde_sdk/models/get_api_response_api_scopes_inner.py
+kinde_sdk/models/get_api_scope_response.py
+kinde_sdk/models/get_api_scopes_response.py
+kinde_sdk/models/get_api_scopes_response_scopes_inner.py
+kinde_sdk/models/get_apis_response.py
+kinde_sdk/models/get_apis_response_apis_inner.py
+kinde_sdk/models/get_apis_response_apis_inner_scopes_inner.py
+kinde_sdk/models/get_application_response.py
+kinde_sdk/models/get_application_response_application.py
+kinde_sdk/models/get_applications_response.py
+kinde_sdk/models/get_billing_agreements_response.py
+kinde_sdk/models/get_billing_agreements_response_agreements_inner.py
+kinde_sdk/models/get_billing_agreements_response_agreements_inner_entitlements_inner.py
+kinde_sdk/models/get_billing_entitlements_response.py
+kinde_sdk/models/get_billing_entitlements_response_entitlements_inner.py
+kinde_sdk/models/get_billing_entitlements_response_plans_inner.py
+kinde_sdk/models/get_business_response.py
+kinde_sdk/models/get_business_response_business.py
+kinde_sdk/models/get_categories_response.py
+kinde_sdk/models/get_connections_response.py
+kinde_sdk/models/get_entitlements_response.py
+kinde_sdk/models/get_entitlements_response_data.py
+kinde_sdk/models/get_entitlements_response_data_entitlements_inner.py
+kinde_sdk/models/get_entitlements_response_data_plans_inner.py
+kinde_sdk/models/get_entitlements_response_metadata.py
+kinde_sdk/models/get_environment_feature_flags_response.py
+kinde_sdk/models/get_environment_response.py
+kinde_sdk/models/get_environment_response_environment.py
+kinde_sdk/models/get_environment_response_environment_background_color.py
+kinde_sdk/models/get_environment_response_environment_link_color.py
+kinde_sdk/models/get_environment_variable_response.py
+kinde_sdk/models/get_environment_variables_response.py
+kinde_sdk/models/get_event_response.py
+kinde_sdk/models/get_event_response_event.py
+kinde_sdk/models/get_event_types_response.py
+kinde_sdk/models/get_feature_flags_response.py
+kinde_sdk/models/get_feature_flags_response_data.py
+kinde_sdk/models/get_feature_flags_response_data_feature_flags_inner.py
+kinde_sdk/models/get_identities_response.py
+kinde_sdk/models/get_industries_response.py
+kinde_sdk/models/get_industries_response_industries_inner.py
+kinde_sdk/models/get_organization_feature_flags_response.py
+kinde_sdk/models/get_organization_feature_flags_response_feature_flags_value.py
+kinde_sdk/models/get_organization_response.py
+kinde_sdk/models/get_organization_response_billing.py
+kinde_sdk/models/get_organization_response_billing_agreements_inner.py
+kinde_sdk/models/get_organization_users_response.py
+kinde_sdk/models/get_organizations_response.py
+kinde_sdk/models/get_organizations_user_permissions_response.py
+kinde_sdk/models/get_organizations_user_roles_response.py
+kinde_sdk/models/get_permissions_response.py
+kinde_sdk/models/get_portal_link.py
+kinde_sdk/models/get_properties_response.py
+kinde_sdk/models/get_property_values_response.py
+kinde_sdk/models/get_redirect_callback_urls_response.py
+kinde_sdk/models/get_role_response.py
+kinde_sdk/models/get_role_response_role.py
+kinde_sdk/models/get_roles_response.py
+kinde_sdk/models/get_subscriber_response.py
+kinde_sdk/models/get_subscribers_response.py
+kinde_sdk/models/get_timezones_response.py
+kinde_sdk/models/get_timezones_response_timezones_inner.py
+kinde_sdk/models/get_user_mfa_response.py
+kinde_sdk/models/get_user_mfa_response_mfa.py
+kinde_sdk/models/get_user_permissions_response.py
+kinde_sdk/models/get_user_permissions_response_data.py
+kinde_sdk/models/get_user_permissions_response_data_permissions_inner.py
+kinde_sdk/models/get_user_permissions_response_metadata.py
+kinde_sdk/models/get_user_properties_response.py
+kinde_sdk/models/get_user_properties_response_data.py
+kinde_sdk/models/get_user_properties_response_data_properties_inner.py
+kinde_sdk/models/get_user_properties_response_metadata.py
+kinde_sdk/models/get_user_roles_response.py
+kinde_sdk/models/get_user_roles_response_data.py
+kinde_sdk/models/get_user_roles_response_data_roles_inner.py
+kinde_sdk/models/get_user_roles_response_metadata.py
+kinde_sdk/models/get_user_sessions_response.py
+kinde_sdk/models/get_user_sessions_response_sessions_inner.py
+kinde_sdk/models/get_webhooks_response.py
+kinde_sdk/models/identity.py
+kinde_sdk/models/logout_redirect_urls.py
+kinde_sdk/models/model_property.py
+kinde_sdk/models/not_found_response.py
+kinde_sdk/models/not_found_response_errors.py
+kinde_sdk/models/organization_item_schema.py
+kinde_sdk/models/organization_user.py
+kinde_sdk/models/organization_user_permission.py
+kinde_sdk/models/organization_user_permission_roles_inner.py
+kinde_sdk/models/organization_user_role.py
+kinde_sdk/models/organization_user_role_permissions.py
+kinde_sdk/models/organization_user_role_permissions_permissions.py
+kinde_sdk/models/permissions.py
+kinde_sdk/models/property_value.py
+kinde_sdk/models/read_env_logo_response.py
+kinde_sdk/models/read_env_logo_response_logos_inner.py
+kinde_sdk/models/read_logo_response.py
+kinde_sdk/models/read_logo_response_logos_inner.py
+kinde_sdk/models/redirect_callback_urls.py
+kinde_sdk/models/replace_connection_request.py
+kinde_sdk/models/replace_connection_request_options.py
+kinde_sdk/models/replace_connection_request_options_one_of.py
+kinde_sdk/models/replace_connection_request_options_one_of1.py
+kinde_sdk/models/replace_logout_redirect_urls_request.py
+kinde_sdk/models/replace_mfa_request.py
+kinde_sdk/models/replace_organization_mfa_request.py
+kinde_sdk/models/replace_redirect_callback_urls_request.py
+kinde_sdk/models/role.py
+kinde_sdk/models/role_permissions_response.py
+kinde_sdk/models/role_scopes_response.py
+kinde_sdk/models/roles.py
+kinde_sdk/models/scopes.py
+kinde_sdk/models/search_users_response.py
+kinde_sdk/models/search_users_response_results_inner.py
+kinde_sdk/models/set_user_password_request.py
+kinde_sdk/models/subscriber.py
+kinde_sdk/models/subscribers_subscriber.py
+kinde_sdk/models/success_response.py
+kinde_sdk/models/token_error_response.py
+kinde_sdk/models/token_introspect.py
+kinde_sdk/models/update_api_applications_request.py
+kinde_sdk/models/update_api_applications_request_applications_inner.py
+kinde_sdk/models/update_api_scope_request.py
+kinde_sdk/models/update_application_request.py
+kinde_sdk/models/update_application_tokens_request.py
+kinde_sdk/models/update_applications_property_request.py
+kinde_sdk/models/update_applications_property_request_value.py
+kinde_sdk/models/update_business_request.py
+kinde_sdk/models/update_category_request.py
+kinde_sdk/models/update_connection_request.py
+kinde_sdk/models/update_environement_feature_flag_override_request.py
+kinde_sdk/models/update_environment_variable_request.py
+kinde_sdk/models/update_environment_variable_response.py
+kinde_sdk/models/update_identity_request.py
+kinde_sdk/models/update_organization_properties_request.py
+kinde_sdk/models/update_organization_request.py
+kinde_sdk/models/update_organization_sessions_request.py
+kinde_sdk/models/update_organization_users_request.py
+kinde_sdk/models/update_organization_users_request_users_inner.py
+kinde_sdk/models/update_organization_users_response.py
+kinde_sdk/models/update_property_request.py
+kinde_sdk/models/update_role_permissions_request.py
+kinde_sdk/models/update_role_permissions_request_permissions_inner.py
+kinde_sdk/models/update_role_permissions_response.py
+kinde_sdk/models/update_roles_request.py
+kinde_sdk/models/update_user_request.py
+kinde_sdk/models/update_user_response.py
+kinde_sdk/models/update_web_hook_request.py
+kinde_sdk/models/update_webhook_response.py
+kinde_sdk/models/update_webhook_response_webhook.py
+kinde_sdk/models/user.py
+kinde_sdk/models/user_identities_inner.py
+kinde_sdk/models/user_identity.py
+kinde_sdk/models/user_identity_result.py
+kinde_sdk/models/user_profile_v2.py
+kinde_sdk/models/users_response.py
+kinde_sdk/models/users_response_users_inner.py
+kinde_sdk/models/webhook.py
+kinde_sdk/py.typed
kinde_sdk/rest.py
-kinde_sdk/schemas.py
-kinde_sdk/test/__init__.py
-kinde_sdk/test/test_kinde_api_client.py
-kinde_sdk/test/test_models/__init__.py
-kinde_sdk/test/test_models/test_add_organization_users_response.py
-kinde_sdk/test/test_models/test_api_result.py
-kinde_sdk/test/test_models/test_connected_apps_access_token.py
-kinde_sdk/test/test_models/test_connected_apps_auth_url.py
-kinde_sdk/test/test_models/test_create_user_response.py
-kinde_sdk/test/test_models/test_error.py
-kinde_sdk/test/test_models/test_error_response.py
-kinde_sdk/test/test_models/test_get_organizations_response.py
-kinde_sdk/test/test_models/test_organization.py
-kinde_sdk/test/test_models/test_organization_user.py
-kinde_sdk/test/test_models/test_organization_users.py
-kinde_sdk/test/test_models/test_success_response.py
-kinde_sdk/test/test_models/test_user.py
-kinde_sdk/test/test_models/test_user_identity.py
-kinde_sdk/test/test_models/test_user_profile.py
-kinde_sdk/test/test_models/test_user_profile_v2.py
-kinde_sdk/test/test_models/test_users.py
-kinde_sdk/test/test_models/test_users_response.py
-kinde_sdk_README.md
pyproject.toml
requirements.txt
-test/test_paths/__init__.py
-test/test_paths/test_api_v1_connected_apps_auth_url/test_get.py
-test/test_paths/test_api_v1_connected_apps_revoke/test_post.py
-test/test_paths/test_api_v1_connected_apps_token/test_get.py
-test/test_paths/test_api_v1_environment_feature_flags_/test_delete.py
-test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_delete.py
-test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_patch.py
-test/test_paths/test_api_v1_feature_flags/test_post.py
-test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_delete.py
-test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_put.py
-test/test_paths/test_api_v1_organization/test_get.py
-test/test_paths/test_api_v1_organization/test_post.py
-test/test_paths/test_api_v1_organization_users/__init__.py
-test/test_paths/test_api_v1_organization_users/test_get.py
-test/test_paths/test_api_v1_organization_users/test_patch.py
-test/test_paths/test_api_v1_organization_users/test_post.py
-test/test_paths/test_api_v1_organizations/test_get.py
-test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_delete.py
-test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_delete.py
-test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_patch.py
-test/test_paths/test_api_v1_user/test_delete.py
-test/test_paths/test_api_v1_user/test_get.py
-test/test_paths/test_api_v1_user/test_patch.py
-test/test_paths/test_api_v1_user/test_post.py
-test/test_paths/test_api_v1_users/test_get.py
-test/test_paths/test_oauth2_user_profile/test_get.py
-test/test_paths/test_oauth2_v2_user_profile/test_get.py
+setup.cfg
+setup.py
+test-requirements.txt
+test/__init__.py
+test/test_add_api_scope_request.py
+test/test_add_apis_request.py
+test/test_add_organization_users_request.py
+test/test_add_organization_users_request_users_inner.py
+test/test_add_organization_users_response.py
+test/test_add_role_scope_request.py
+test/test_add_role_scope_response.py
+test/test_api_result.py
+test/test_apis_api.py
+test/test_applications.py
+test/test_applications_api.py
+test/test_authorize_app_api_response.py
+test/test_billing_agreements_api.py
+test/test_billing_api.py
+test/test_billing_entitlements_api.py
+test/test_billing_meter_usage_api.py
+test/test_business_api.py
+test/test_callbacks_api.py
+test/test_category.py
+test/test_connected_apps_access_token.py
+test/test_connected_apps_api.py
+test/test_connected_apps_auth_url.py
+test/test_connection.py
+test/test_connection_connection.py
+test/test_connections_api.py
+test/test_create_api_scopes_response.py
+test/test_create_api_scopes_response_scope.py
+test/test_create_apis_response.py
+test/test_create_apis_response_api.py
+test/test_create_application_request.py
+test/test_create_application_response.py
+test/test_create_application_response_application.py
+test/test_create_billing_agreement_request.py
+test/test_create_category_request.py
+test/test_create_category_response.py
+test/test_create_category_response_category.py
+test/test_create_connection_request.py
+test/test_create_connection_request_options.py
+test/test_create_connection_request_options_one_of.py
+test/test_create_connection_request_options_one_of1.py
+test/test_create_connection_request_options_one_of2.py
+test/test_create_connection_response.py
+test/test_create_connection_response_connection.py
+test/test_create_environment_variable_request.py
+test/test_create_environment_variable_response.py
+test/test_create_environment_variable_response_environment_variable.py
+test/test_create_feature_flag_request.py
+test/test_create_identity_response.py
+test/test_create_identity_response_identity.py
+test/test_create_meter_usage_record_request.py
+test/test_create_meter_usage_record_response.py
+test/test_create_organization_request.py
+test/test_create_organization_response.py
+test/test_create_organization_response_organization.py
+test/test_create_organization_user_permission_request.py
+test/test_create_organization_user_role_request.py
+test/test_create_permission_request.py
+test/test_create_property_request.py
+test/test_create_property_response.py
+test/test_create_property_response_property.py
+test/test_create_role_request.py
+test/test_create_roles_response.py
+test/test_create_roles_response_role.py
+test/test_create_subscriber_success_response.py
+test/test_create_subscriber_success_response_subscriber.py
+test/test_create_user_identity_request.py
+test/test_create_user_request.py
+test/test_create_user_request_identities_inner.py
+test/test_create_user_request_identities_inner_details.py
+test/test_create_user_request_profile.py
+test/test_create_user_response.py
+test/test_create_web_hook_request.py
+test/test_create_webhook_response.py
+test/test_create_webhook_response_webhook.py
+test/test_delete_api_response.py
+test/test_delete_environment_variable_response.py
+test/test_delete_role_scope_response.py
+test/test_delete_webhook_response.py
+test/test_environment_variable.py
+test/test_environment_variables_api.py
+test/test_environments_api.py
+test/test_error.py
+test/test_error_response.py
+test/test_event_type.py
+test/test_feature_flags0_api.py
+test/test_feature_flags_api.py
+test/test_get_api_response.py
+test/test_get_api_response_api.py
+test/test_get_api_response_api_applications_inner.py
+test/test_get_api_response_api_scopes_inner.py
+test/test_get_api_scope_response.py
+test/test_get_api_scopes_response.py
+test/test_get_api_scopes_response_scopes_inner.py
+test/test_get_apis_response.py
+test/test_get_apis_response_apis_inner.py
+test/test_get_apis_response_apis_inner_scopes_inner.py
+test/test_get_application_response.py
+test/test_get_application_response_application.py
+test/test_get_applications_response.py
+test/test_get_billing_agreements_response.py
+test/test_get_billing_agreements_response_agreements_inner.py
+test/test_get_billing_agreements_response_agreements_inner_entitlements_inner.py
+test/test_get_billing_entitlements_response.py
+test/test_get_billing_entitlements_response_entitlements_inner.py
+test/test_get_billing_entitlements_response_plans_inner.py
+test/test_get_business_response.py
+test/test_get_business_response_business.py
+test/test_get_categories_response.py
+test/test_get_connections_response.py
+test/test_get_entitlements_response.py
+test/test_get_entitlements_response_data.py
+test/test_get_entitlements_response_data_entitlements_inner.py
+test/test_get_entitlements_response_data_plans_inner.py
+test/test_get_entitlements_response_metadata.py
+test/test_get_environment_feature_flags_response.py
+test/test_get_environment_response.py
+test/test_get_environment_response_environment.py
+test/test_get_environment_response_environment_background_color.py
+test/test_get_environment_response_environment_link_color.py
+test/test_get_environment_variable_response.py
+test/test_get_environment_variables_response.py
+test/test_get_event_response.py
+test/test_get_event_response_event.py
+test/test_get_event_types_response.py
+test/test_get_feature_flags_response.py
+test/test_get_feature_flags_response_data.py
+test/test_get_feature_flags_response_data_feature_flags_inner.py
+test/test_get_identities_response.py
+test/test_get_industries_response.py
+test/test_get_industries_response_industries_inner.py
+test/test_get_organization_feature_flags_response.py
+test/test_get_organization_feature_flags_response_feature_flags_value.py
+test/test_get_organization_response.py
+test/test_get_organization_response_billing.py
+test/test_get_organization_response_billing_agreements_inner.py
+test/test_get_organization_users_response.py
+test/test_get_organizations_response.py
+test/test_get_organizations_user_permissions_response.py
+test/test_get_organizations_user_roles_response.py
+test/test_get_permissions_response.py
+test/test_get_portal_link.py
+test/test_get_properties_response.py
+test/test_get_property_values_response.py
+test/test_get_redirect_callback_urls_response.py
+test/test_get_role_response.py
+test/test_get_role_response_role.py
+test/test_get_roles_response.py
+test/test_get_subscriber_response.py
+test/test_get_subscribers_response.py
+test/test_get_timezones_response.py
+test/test_get_timezones_response_timezones_inner.py
+test/test_get_user_mfa_response.py
+test/test_get_user_mfa_response_mfa.py
+test/test_get_user_permissions_response.py
+test/test_get_user_permissions_response_data.py
+test/test_get_user_permissions_response_data_permissions_inner.py
+test/test_get_user_permissions_response_metadata.py
+test/test_get_user_properties_response.py
+test/test_get_user_properties_response_data.py
+test/test_get_user_properties_response_data_properties_inner.py
+test/test_get_user_properties_response_metadata.py
+test/test_get_user_roles_response.py
+test/test_get_user_roles_response_data.py
+test/test_get_user_roles_response_data_roles_inner.py
+test/test_get_user_roles_response_metadata.py
+test/test_get_user_sessions_response.py
+test/test_get_user_sessions_response_sessions_inner.py
+test/test_get_webhooks_response.py
+test/test_identities_api.py
+test/test_identity.py
+test/test_industries_api.py
+test/test_logout_redirect_urls.py
+test/test_mfa_api.py
+test/test_model_property.py
+test/test_not_found_response.py
+test/test_not_found_response_errors.py
+test/test_o_auth_api.py
+test/test_organization_item_schema.py
+test/test_organization_user.py
+test/test_organization_user_permission.py
+test/test_organization_user_permission_roles_inner.py
+test/test_organization_user_role.py
+test/test_organization_user_role_permissions.py
+test/test_organization_user_role_permissions_permissions.py
+test/test_organizations_api.py
+test/test_permissions.py
+test/test_permissions_api.py
+test/test_properties_api.py
+test/test_property_categories_api.py
+test/test_property_value.py
+test/test_read_env_logo_response.py
+test/test_read_env_logo_response_logos_inner.py
+test/test_read_logo_response.py
+test/test_read_logo_response_logos_inner.py
+test/test_redirect_callback_urls.py
+test/test_replace_connection_request.py
+test/test_replace_connection_request_options.py
+test/test_replace_connection_request_options_one_of.py
+test/test_replace_connection_request_options_one_of1.py
+test/test_replace_logout_redirect_urls_request.py
+test/test_replace_mfa_request.py
+test/test_replace_organization_mfa_request.py
+test/test_replace_redirect_callback_urls_request.py
+test/test_role.py
+test/test_role_permissions_response.py
+test/test_role_scopes_response.py
+test/test_roles.py
+test/test_roles_api.py
+test/test_scopes.py
+test/test_search_api.py
+test/test_search_users_response.py
+test/test_search_users_response_results_inner.py
+test/test_self_serve_portal_api.py
+test/test_set_user_password_request.py
+test/test_subscriber.py
+test/test_subscribers_api.py
+test/test_subscribers_subscriber.py
+test/test_success_response.py
+test/test_timezones_api.py
+test/test_token_error_response.py
+test/test_token_introspect.py
+test/test_update_api_applications_request.py
+test/test_update_api_applications_request_applications_inner.py
+test/test_update_api_scope_request.py
+test/test_update_application_request.py
+test/test_update_application_tokens_request.py
+test/test_update_applications_property_request.py
+test/test_update_applications_property_request_value.py
+test/test_update_business_request.py
+test/test_update_category_request.py
+test/test_update_connection_request.py
+test/test_update_environement_feature_flag_override_request.py
+test/test_update_environment_variable_request.py
+test/test_update_environment_variable_response.py
+test/test_update_identity_request.py
+test/test_update_organization_properties_request.py
+test/test_update_organization_request.py
+test/test_update_organization_sessions_request.py
+test/test_update_organization_users_request.py
+test/test_update_organization_users_request_users_inner.py
+test/test_update_organization_users_response.py
+test/test_update_property_request.py
+test/test_update_role_permissions_request.py
+test/test_update_role_permissions_request_permissions_inner.py
+test/test_update_role_permissions_response.py
+test/test_update_roles_request.py
+test/test_update_user_request.py
+test/test_update_user_response.py
+test/test_update_web_hook_request.py
+test/test_update_webhook_response.py
+test/test_update_webhook_response_webhook.py
+test/test_user.py
+test/test_user_identities_inner.py
+test/test_user_identity.py
+test/test_user_identity_result.py
+test/test_user_profile_v2.py
+test/test_users_api.py
+test/test_users_response.py
+test/test_users_response_users_inner.py
+test/test_webhook.py
+test/test_webhooks_api.py
+tox.ini
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 4be2c727..eb1dc6a5 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-6.5.0
\ No newline at end of file
+7.13.0
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..d81384dc
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,17 @@
+# ref: https://docs.travis-ci.com/user/languages/python
+language: python
+python:
+ - "3.9"
+ - "3.10"
+ - "3.11"
+ - "3.12"
+ - "3.13"
+ # uncomment the following if needed
+ #- "3.13-dev" # 3.13 development branch
+ #- "nightly" # nightly build
+# command to install dependencies
+install:
+ - "pip install -r requirements.txt"
+ - "pip install -r test-requirements.txt"
+# command to run tests
+script: pytest --cov=kinde_sdk
diff --git a/README.md b/README.md
index 895bbfe2..1a927077 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,526 @@
-# Kinde Python SDK
+# kinde-python-sdk
-The Kinde SDK for Python.
+Provides endpoints to manage your Kinde Businesses.
-You can also use the [Python starter kit here](https://github.com/kinde-starter-kits/python-starter-kit).
+## Intro
-[](https://makeapullrequest.com) [](https://kinde.com/docs/developer-tools) [](https://thekindecommunity.slack.com)
+## How to use
-## Documentation
+1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/).
-For details on integrating this SDK into your project, head over to the [Kinde docs](https://kinde.com/docs/) and see the [Python SDK](https://kinde.com/docs/developer-tools/python-sdk/) doc 👍🏼.
+2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/)
-## Publishing
+3. Test request any endpoint using the test token
-The core team handles publishing.
-## Contributing
+This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-Please refer to Kinde’s [contributing guidelines](https://github.com/kinde-oss/.github/blob/489e2ca9c3307c2b2e098a885e22f2239116394a/CONTRIBUTING.md).
+- API version: 1
+- Package version: 1.0.0
+- Generator version: 7.13.0
+- Build package: org.openapitools.codegen.languages.PythonClientCodegen
+For more information, please visit [https://docs.kinde.com](https://docs.kinde.com)
+
+## Requirements.
+
+Python 3.9+
+
+## Installation & Usage
+### pip install
+
+If the python package is hosted on a repository, you can install directly using:
+
+```sh
+pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
+```
+(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
+
+Then import the package:
+```python
+import kinde_sdk
+```
+
+### Setuptools
+
+Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
+
+```sh
+python setup.py install --user
+```
+(or `sudo python setup.py install` to install the package for all users)
+
+Then import the package:
+```python
+import kinde_sdk
+```
+
+### Tests
+
+Execute `pytest` to run the tests.
+
+## Getting Started
+
+Please follow the [installation procedure](#installation--usage) and then run the following:
+
+```python
+
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ application_id = '7643b487c97545aab79257fd13a1085a' # str | Application ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Add scope to API application
+ api_instance.add_api_application_scope(api_id, application_id, scope_id)
+ except ApiException as e:
+ print("Exception when calling APIsApi->add_api_application_scope: %s\n" % e)
+
+```
+
+## Documentation for API Endpoints
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*APIsApi* | [**add_api_application_scope**](docs/APIsApi.md#add_api_application_scope) | **POST** /api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id} | Add scope to API application
+*APIsApi* | [**add_api_scope**](docs/APIsApi.md#add_api_scope) | **POST** /api/v1/apis/{api_id}/scopes | Create API scope
+*APIsApi* | [**add_apis**](docs/APIsApi.md#add_apis) | **POST** /api/v1/apis | Create API
+*APIsApi* | [**delete_api**](docs/APIsApi.md#delete_api) | **DELETE** /api/v1/apis/{api_id} | Delete API
+*APIsApi* | [**delete_api_appliation_scope**](docs/APIsApi.md#delete_api_appliation_scope) | **DELETE** /api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id} | Delete API application scope
+*APIsApi* | [**delete_api_scope**](docs/APIsApi.md#delete_api_scope) | **DELETE** /api/v1/apis/{api_id}/scopes/{scope_id} | Delete API scope
+*APIsApi* | [**get_api**](docs/APIsApi.md#get_api) | **GET** /api/v1/apis/{api_id} | Get API
+*APIsApi* | [**get_api_scope**](docs/APIsApi.md#get_api_scope) | **GET** /api/v1/apis/{api_id}/scopes/{scope_id} | Get API scope
+*APIsApi* | [**get_api_scopes**](docs/APIsApi.md#get_api_scopes) | **GET** /api/v1/apis/{api_id}/scopes | Get API scopes
+*APIsApi* | [**get_apis**](docs/APIsApi.md#get_apis) | **GET** /api/v1/apis | Get APIs
+*APIsApi* | [**update_api_applications**](docs/APIsApi.md#update_api_applications) | **PATCH** /api/v1/apis/{api_id}/applications | Authorize API applications
+*APIsApi* | [**update_api_scope**](docs/APIsApi.md#update_api_scope) | **PATCH** /api/v1/apis/{api_id}/scopes/{scope_id} | Update API scope
+*ApplicationsApi* | [**create_application**](docs/ApplicationsApi.md#create_application) | **POST** /api/v1/applications | Create application
+*ApplicationsApi* | [**delete_application**](docs/ApplicationsApi.md#delete_application) | **DELETE** /api/v1/applications/{application_id} | Delete application
+*ApplicationsApi* | [**enable_connection**](docs/ApplicationsApi.md#enable_connection) | **POST** /api/v1/applications/{application_id}/connections/{connection_id} | Enable connection
+*ApplicationsApi* | [**get_application**](docs/ApplicationsApi.md#get_application) | **GET** /api/v1/applications/{application_id} | Get application
+*ApplicationsApi* | [**get_application_connections**](docs/ApplicationsApi.md#get_application_connections) | **GET** /api/v1/applications/{application_id}/connections | Get connections
+*ApplicationsApi* | [**get_application_property_values**](docs/ApplicationsApi.md#get_application_property_values) | **GET** /api/v1/applications/{application_id}/properties | Get property values
+*ApplicationsApi* | [**get_applications**](docs/ApplicationsApi.md#get_applications) | **GET** /api/v1/applications | Get applications
+*ApplicationsApi* | [**remove_connection**](docs/ApplicationsApi.md#remove_connection) | **DELETE** /api/v1/applications/{application_id}/connections/{connection_id} | Remove connection
+*ApplicationsApi* | [**update_application**](docs/ApplicationsApi.md#update_application) | **PATCH** /api/v1/applications/{application_id} | Update Application
+*ApplicationsApi* | [**update_application_tokens**](docs/ApplicationsApi.md#update_application_tokens) | **PATCH** /api/v1/applications/{application_id}/tokens | Update application tokens
+*ApplicationsApi* | [**update_applications_property**](docs/ApplicationsApi.md#update_applications_property) | **PUT** /api/v1/applications/{application_id}/properties/{property_key} | Update property
+*BillingApi* | [**get_entitlements**](docs/BillingApi.md#get_entitlements) | **GET** /account_api/v1/entitlements | Get entitlements
+*BillingAgreementsApi* | [**create_billing_agreement**](docs/BillingAgreementsApi.md#create_billing_agreement) | **POST** /api/v1/billing/agreements | Create billing agreement
+*BillingAgreementsApi* | [**get_billing_agreements**](docs/BillingAgreementsApi.md#get_billing_agreements) | **GET** /api/v1/billing/agreements | Get billing agreements
+*BillingEntitlementsApi* | [**get_billing_entitlements**](docs/BillingEntitlementsApi.md#get_billing_entitlements) | **GET** /api/v1/billing/entitlements | Get billing entitlements
+*BillingMeterUsageApi* | [**create_meter_usage_record**](docs/BillingMeterUsageApi.md#create_meter_usage_record) | **POST** /api/v1/billing/meter_usage | Create meter usage record
+*BusinessApi* | [**get_business**](docs/BusinessApi.md#get_business) | **GET** /api/v1/business | Get business
+*BusinessApi* | [**update_business**](docs/BusinessApi.md#update_business) | **PATCH** /api/v1/business | Update business
+*CallbacksApi* | [**add_logout_redirect_urls**](docs/CallbacksApi.md#add_logout_redirect_urls) | **POST** /api/v1/applications/{app_id}/auth_logout_urls | Add logout redirect URLs
+*CallbacksApi* | [**add_redirect_callback_urls**](docs/CallbacksApi.md#add_redirect_callback_urls) | **POST** /api/v1/applications/{app_id}/auth_redirect_urls | Add Redirect Callback URLs
+*CallbacksApi* | [**delete_callback_urls**](docs/CallbacksApi.md#delete_callback_urls) | **DELETE** /api/v1/applications/{app_id}/auth_redirect_urls | Delete Callback URLs
+*CallbacksApi* | [**delete_logout_urls**](docs/CallbacksApi.md#delete_logout_urls) | **DELETE** /api/v1/applications/{app_id}/auth_logout_urls | Delete Logout URLs
+*CallbacksApi* | [**get_callback_urls**](docs/CallbacksApi.md#get_callback_urls) | **GET** /api/v1/applications/{app_id}/auth_redirect_urls | List Callback URLs
+*CallbacksApi* | [**get_logout_urls**](docs/CallbacksApi.md#get_logout_urls) | **GET** /api/v1/applications/{app_id}/auth_logout_urls | List logout URLs
+*CallbacksApi* | [**replace_logout_redirect_urls**](docs/CallbacksApi.md#replace_logout_redirect_urls) | **PUT** /api/v1/applications/{app_id}/auth_logout_urls | Replace logout redirect URls
+*CallbacksApi* | [**replace_redirect_callback_urls**](docs/CallbacksApi.md#replace_redirect_callback_urls) | **PUT** /api/v1/applications/{app_id}/auth_redirect_urls | Replace Redirect Callback URLs
+*ConnectedAppsApi* | [**get_connected_app_auth_url**](docs/ConnectedAppsApi.md#get_connected_app_auth_url) | **GET** /api/v1/connected_apps/auth_url | Get Connected App URL
+*ConnectedAppsApi* | [**get_connected_app_token**](docs/ConnectedAppsApi.md#get_connected_app_token) | **GET** /api/v1/connected_apps/token | Get Connected App Token
+*ConnectedAppsApi* | [**revoke_connected_app_token**](docs/ConnectedAppsApi.md#revoke_connected_app_token) | **POST** /api/v1/connected_apps/revoke | Revoke Connected App Token
+*ConnectionsApi* | [**create_connection**](docs/ConnectionsApi.md#create_connection) | **POST** /api/v1/connections | Create Connection
+*ConnectionsApi* | [**delete_connection**](docs/ConnectionsApi.md#delete_connection) | **DELETE** /api/v1/connections/{connection_id} | Delete Connection
+*ConnectionsApi* | [**get_connection**](docs/ConnectionsApi.md#get_connection) | **GET** /api/v1/connections/{connection_id} | Get Connection
+*ConnectionsApi* | [**get_connections**](docs/ConnectionsApi.md#get_connections) | **GET** /api/v1/connections | Get connections
+*ConnectionsApi* | [**replace_connection**](docs/ConnectionsApi.md#replace_connection) | **PUT** /api/v1/connections/{connection_id} | Replace Connection
+*ConnectionsApi* | [**update_connection**](docs/ConnectionsApi.md#update_connection) | **PATCH** /api/v1/connections/{connection_id} | Update Connection
+*EnvironmentVariablesApi* | [**create_environment_variable**](docs/EnvironmentVariablesApi.md#create_environment_variable) | **POST** /api/v1/environment_variables | Create environment variable
+*EnvironmentVariablesApi* | [**delete_environment_variable**](docs/EnvironmentVariablesApi.md#delete_environment_variable) | **DELETE** /api/v1/environment_variables/{variable_id} | Delete environment variable
+*EnvironmentVariablesApi* | [**get_environment_variable**](docs/EnvironmentVariablesApi.md#get_environment_variable) | **GET** /api/v1/environment_variables/{variable_id} | Get environment variable
+*EnvironmentVariablesApi* | [**get_environment_variables**](docs/EnvironmentVariablesApi.md#get_environment_variables) | **GET** /api/v1/environment_variables | Get environment variables
+*EnvironmentVariablesApi* | [**update_environment_variable**](docs/EnvironmentVariablesApi.md#update_environment_variable) | **PATCH** /api/v1/environment_variables/{variable_id} | Update environment variable
+*EnvironmentsApi* | [**add_logo**](docs/EnvironmentsApi.md#add_logo) | **PUT** /api/v1/environment/logos/{type} | Add logo
+*EnvironmentsApi* | [**delete_environement_feature_flag_override**](docs/EnvironmentsApi.md#delete_environement_feature_flag_override) | **DELETE** /api/v1/environment/feature_flags/{feature_flag_key} | Delete Environment Feature Flag Override
+*EnvironmentsApi* | [**delete_environement_feature_flag_overrides**](docs/EnvironmentsApi.md#delete_environement_feature_flag_overrides) | **DELETE** /api/v1/environment/feature_flags | Delete Environment Feature Flag Overrides
+*EnvironmentsApi* | [**delete_logo**](docs/EnvironmentsApi.md#delete_logo) | **DELETE** /api/v1/environment/logos/{type} | Delete logo
+*EnvironmentsApi* | [**get_environement_feature_flags**](docs/EnvironmentsApi.md#get_environement_feature_flags) | **GET** /api/v1/environment/feature_flags | List Environment Feature Flags
+*EnvironmentsApi* | [**get_environment**](docs/EnvironmentsApi.md#get_environment) | **GET** /api/v1/environment | Get environment
+*EnvironmentsApi* | [**read_logo**](docs/EnvironmentsApi.md#read_logo) | **GET** /api/v1/environment/logos | Read logo details
+*EnvironmentsApi* | [**update_environement_feature_flag_override**](docs/EnvironmentsApi.md#update_environement_feature_flag_override) | **PATCH** /api/v1/environment/feature_flags/{feature_flag_key} | Update Environment Feature Flag Override
+*FeatureFlagsApi* | [**create_feature_flag**](docs/FeatureFlagsApi.md#create_feature_flag) | **POST** /api/v1/feature_flags | Create Feature Flag
+*FeatureFlagsApi* | [**delete_feature_flag**](docs/FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /api/v1/feature_flags/{feature_flag_key} | Delete Feature Flag
+*FeatureFlagsApi* | [**update_feature_flag**](docs/FeatureFlagsApi.md#update_feature_flag) | **PUT** /api/v1/feature_flags/{feature_flag_key} | Replace Feature Flag
+*FeatureFlagsApi* | [**get_feature_flags**](docs/FeatureFlagsApi.md#get_feature_flags) | **GET** /account_api/v1/feature_flags | Get feature flags
+*IdentitiesApi* | [**delete_identity**](docs/IdentitiesApi.md#delete_identity) | **DELETE** /api/v1/identities/{identity_id} | Delete identity
+*IdentitiesApi* | [**get_identity**](docs/IdentitiesApi.md#get_identity) | **GET** /api/v1/identities/{identity_id} | Get identity
+*IdentitiesApi* | [**update_identity**](docs/IdentitiesApi.md#update_identity) | **PATCH** /api/v1/identities/{identity_id} | Update identity
+*IndustriesApi* | [**get_industries**](docs/IndustriesApi.md#get_industries) | **GET** /api/v1/industries | Get industries
+*MFAApi* | [**replace_mfa**](docs/MFAApi.md#replace_mfa) | **PUT** /api/v1/mfa | Replace MFA Configuration
+*OAuthApi* | [**get_user_profile_v2**](docs/OAuthApi.md#get_user_profile_v2) | **GET** /oauth2/v2/user_profile | Get user profile
+*OAuthApi* | [**token_introspection**](docs/OAuthApi.md#token_introspection) | **POST** /oauth2/introspect | Introspect
+*OAuthApi* | [**token_revocation**](docs/OAuthApi.md#token_revocation) | **POST** /oauth2/revoke | Revoke token
+*OrganizationsApi* | [**add_organization_logo**](docs/OrganizationsApi.md#add_organization_logo) | **POST** /api/v1/organizations/{org_code}/logos/{type} | Add organization logo
+*OrganizationsApi* | [**add_organization_user_api_scope**](docs/OrganizationsApi.md#add_organization_user_api_scope) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id} | Add scope to organization user api
+*OrganizationsApi* | [**add_organization_users**](docs/OrganizationsApi.md#add_organization_users) | **POST** /api/v1/organizations/{org_code}/users | Add Organization Users
+*OrganizationsApi* | [**create_organization**](docs/OrganizationsApi.md#create_organization) | **POST** /api/v1/organization | Create organization
+*OrganizationsApi* | [**create_organization_user_permission**](docs/OrganizationsApi.md#create_organization_user_permission) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/permissions | Add Organization User Permission
+*OrganizationsApi* | [**create_organization_user_role**](docs/OrganizationsApi.md#create_organization_user_role) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/roles | Add Organization User Role
+*OrganizationsApi* | [**delete_organization**](docs/OrganizationsApi.md#delete_organization) | **DELETE** /api/v1/organization/{org_code} | Delete Organization
+*OrganizationsApi* | [**delete_organization_feature_flag_override**](docs/OrganizationsApi.md#delete_organization_feature_flag_override) | **DELETE** /api/v1/organizations/{org_code}/feature_flags/{feature_flag_key} | Delete Organization Feature Flag Override
+*OrganizationsApi* | [**delete_organization_feature_flag_overrides**](docs/OrganizationsApi.md#delete_organization_feature_flag_overrides) | **DELETE** /api/v1/organizations/{org_code}/feature_flags | Delete Organization Feature Flag Overrides
+*OrganizationsApi* | [**delete_organization_handle**](docs/OrganizationsApi.md#delete_organization_handle) | **DELETE** /api/v1/organization/{org_code}/handle | Delete organization handle
+*OrganizationsApi* | [**delete_organization_logo**](docs/OrganizationsApi.md#delete_organization_logo) | **DELETE** /api/v1/organizations/{org_code}/logos/{type} | Delete organization logo
+*OrganizationsApi* | [**delete_organization_user_api_scope**](docs/OrganizationsApi.md#delete_organization_user_api_scope) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id} | Delete scope from organization user API
+*OrganizationsApi* | [**delete_organization_user_permission**](docs/OrganizationsApi.md#delete_organization_user_permission) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id} | Delete Organization User Permission
+*OrganizationsApi* | [**delete_organization_user_role**](docs/OrganizationsApi.md#delete_organization_user_role) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id} | Delete Organization User Role
+*OrganizationsApi* | [**enable_org_connection**](docs/OrganizationsApi.md#enable_org_connection) | **POST** /api/v1/organizations/{organization_code}/connections/{connection_id} | Enable connection
+*OrganizationsApi* | [**get_org_user_mfa**](docs/OrganizationsApi.md#get_org_user_mfa) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/mfa | Get an organization user's MFA configuration
+*OrganizationsApi* | [**get_organization**](docs/OrganizationsApi.md#get_organization) | **GET** /api/v1/organization | Get organization
+*OrganizationsApi* | [**get_organization_connections**](docs/OrganizationsApi.md#get_organization_connections) | **GET** /api/v1/organizations/{organization_code}/connections | Get connections
+*OrganizationsApi* | [**get_organization_feature_flags**](docs/OrganizationsApi.md#get_organization_feature_flags) | **GET** /api/v1/organizations/{org_code}/feature_flags | List Organization Feature Flags
+*OrganizationsApi* | [**get_organization_property_values**](docs/OrganizationsApi.md#get_organization_property_values) | **GET** /api/v1/organizations/{org_code}/properties | Get Organization Property Values
+*OrganizationsApi* | [**get_organization_user_permissions**](docs/OrganizationsApi.md#get_organization_user_permissions) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/permissions | List Organization User Permissions
+*OrganizationsApi* | [**get_organization_user_roles**](docs/OrganizationsApi.md#get_organization_user_roles) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/roles | List Organization User Roles
+*OrganizationsApi* | [**get_organization_users**](docs/OrganizationsApi.md#get_organization_users) | **GET** /api/v1/organizations/{org_code}/users | Get organization users
+*OrganizationsApi* | [**get_organizations**](docs/OrganizationsApi.md#get_organizations) | **GET** /api/v1/organizations | Get organizations
+*OrganizationsApi* | [**read_organization_logo**](docs/OrganizationsApi.md#read_organization_logo) | **GET** /api/v1/organizations/{org_code}/logos | Read organization logo details
+*OrganizationsApi* | [**remove_org_connection**](docs/OrganizationsApi.md#remove_org_connection) | **DELETE** /api/v1/organizations/{organization_code}/connections/{connection_id} | Remove connection
+*OrganizationsApi* | [**remove_organization_user**](docs/OrganizationsApi.md#remove_organization_user) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id} | Remove Organization User
+*OrganizationsApi* | [**replace_organization_mfa**](docs/OrganizationsApi.md#replace_organization_mfa) | **PUT** /api/v1/organizations/{org_code}/mfa | Replace Organization MFA Configuration
+*OrganizationsApi* | [**reset_org_user_mfa**](docs/OrganizationsApi.md#reset_org_user_mfa) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/mfa/{factor_id} | Reset specific organization MFA for a user
+*OrganizationsApi* | [**reset_org_user_mfa_all**](docs/OrganizationsApi.md#reset_org_user_mfa_all) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/mfa | Reset all organization MFA for a user
+*OrganizationsApi* | [**update_organization**](docs/OrganizationsApi.md#update_organization) | **PATCH** /api/v1/organization/{org_code} | Update Organization
+*OrganizationsApi* | [**update_organization_feature_flag_override**](docs/OrganizationsApi.md#update_organization_feature_flag_override) | **PATCH** /api/v1/organizations/{org_code}/feature_flags/{feature_flag_key} | Update Organization Feature Flag Override
+*OrganizationsApi* | [**update_organization_properties**](docs/OrganizationsApi.md#update_organization_properties) | **PATCH** /api/v1/organizations/{org_code}/properties | Update Organization Property values
+*OrganizationsApi* | [**update_organization_property**](docs/OrganizationsApi.md#update_organization_property) | **PUT** /api/v1/organizations/{org_code}/properties/{property_key} | Update Organization Property value
+*OrganizationsApi* | [**update_organization_sessions**](docs/OrganizationsApi.md#update_organization_sessions) | **PATCH** /api/v1/organizations/{org_code}/sessions | Update organization session configuration
+*OrganizationsApi* | [**update_organization_users**](docs/OrganizationsApi.md#update_organization_users) | **PATCH** /api/v1/organizations/{org_code}/users | Update Organization Users
+*PermissionsApi* | [**create_permission**](docs/PermissionsApi.md#create_permission) | **POST** /api/v1/permissions | Create Permission
+*PermissionsApi* | [**delete_permission**](docs/PermissionsApi.md#delete_permission) | **DELETE** /api/v1/permissions/{permission_id} | Delete Permission
+*PermissionsApi* | [**get_permissions**](docs/PermissionsApi.md#get_permissions) | **GET** /api/v1/permissions | List Permissions
+*PermissionsApi* | [**get_user_permissions**](docs/PermissionsApi.md#get_user_permissions) | **GET** /account_api/v1/permissions | Get permissions
+*PermissionsApi* | [**update_permissions**](docs/PermissionsApi.md#update_permissions) | **PATCH** /api/v1/permissions/{permission_id} | Update Permission
+*PropertiesApi* | [**create_property**](docs/PropertiesApi.md#create_property) | **POST** /api/v1/properties | Create Property
+*PropertiesApi* | [**delete_property**](docs/PropertiesApi.md#delete_property) | **DELETE** /api/v1/properties/{property_id} | Delete Property
+*PropertiesApi* | [**get_properties**](docs/PropertiesApi.md#get_properties) | **GET** /api/v1/properties | List properties
+*PropertiesApi* | [**get_user_properties**](docs/PropertiesApi.md#get_user_properties) | **GET** /account_api/v1/properties | Get properties
+*PropertiesApi* | [**update_property**](docs/PropertiesApi.md#update_property) | **PUT** /api/v1/properties/{property_id} | Update Property
+*PropertyCategoriesApi* | [**create_category**](docs/PropertyCategoriesApi.md#create_category) | **POST** /api/v1/property_categories | Create Category
+*PropertyCategoriesApi* | [**get_categories**](docs/PropertyCategoriesApi.md#get_categories) | **GET** /api/v1/property_categories | List categories
+*PropertyCategoriesApi* | [**update_category**](docs/PropertyCategoriesApi.md#update_category) | **PUT** /api/v1/property_categories/{category_id} | Update Category
+*RolesApi* | [**add_role_scope**](docs/RolesApi.md#add_role_scope) | **POST** /api/v1/roles/{role_id}/scopes | Add role scope
+*RolesApi* | [**create_role**](docs/RolesApi.md#create_role) | **POST** /api/v1/roles | Create role
+*RolesApi* | [**delete_role**](docs/RolesApi.md#delete_role) | **DELETE** /api/v1/roles/{role_id} | Delete role
+*RolesApi* | [**delete_role_scope**](docs/RolesApi.md#delete_role_scope) | **DELETE** /api/v1/roles/{role_id}/scopes/{scope_id} | Delete role scope
+*RolesApi* | [**get_role**](docs/RolesApi.md#get_role) | **GET** /api/v1/roles/{role_id} | Get role
+*RolesApi* | [**get_role_permissions**](docs/RolesApi.md#get_role_permissions) | **GET** /api/v1/roles/{role_id}/permissions | Get role permissions
+*RolesApi* | [**get_role_scopes**](docs/RolesApi.md#get_role_scopes) | **GET** /api/v1/roles/{role_id}/scopes | Get role scopes
+*RolesApi* | [**get_roles**](docs/RolesApi.md#get_roles) | **GET** /api/v1/roles | List roles
+*RolesApi* | [**get_user_roles**](docs/RolesApi.md#get_user_roles) | **GET** /account_api/v1/roles | Get roles
+*RolesApi* | [**remove_role_permission**](docs/RolesApi.md#remove_role_permission) | **DELETE** /api/v1/roles/{role_id}/permissions/{permission_id} | Remove role permission
+*RolesApi* | [**update_role_permissions**](docs/RolesApi.md#update_role_permissions) | **PATCH** /api/v1/roles/{role_id}/permissions | Update role permissions
+*RolesApi* | [**update_roles**](docs/RolesApi.md#update_roles) | **PATCH** /api/v1/roles/{role_id} | Update role
+*SearchApi* | [**search_users**](docs/SearchApi.md#search_users) | **GET** /api/v1/search/users | Search users
+*SelfServePortalApi* | [**get_portal_link**](docs/SelfServePortalApi.md#get_portal_link) | **GET** /account_api/v1/get_portal_link | Get self-serve portal link
+*SubscribersApi* | [**create_subscriber**](docs/SubscribersApi.md#create_subscriber) | **POST** /api/v1/subscribers | Create Subscriber
+*SubscribersApi* | [**get_subscriber**](docs/SubscribersApi.md#get_subscriber) | **GET** /api/v1/subscribers/{subscriber_id} | Get Subscriber
+*SubscribersApi* | [**get_subscribers**](docs/SubscribersApi.md#get_subscribers) | **GET** /api/v1/subscribers | List Subscribers
+*TimezonesApi* | [**get_timezones**](docs/TimezonesApi.md#get_timezones) | **GET** /api/v1/timezones | Get timezones
+*UsersApi* | [**create_user**](docs/UsersApi.md#create_user) | **POST** /api/v1/user | Create user
+*UsersApi* | [**create_user_identity**](docs/UsersApi.md#create_user_identity) | **POST** /api/v1/users/{user_id}/identities | Create identity
+*UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /api/v1/user | Delete user
+*UsersApi* | [**delete_user_sessions**](docs/UsersApi.md#delete_user_sessions) | **DELETE** /api/v1/users/{user_id}/sessions | Delete user sessions
+*UsersApi* | [**get_user_data**](docs/UsersApi.md#get_user_data) | **GET** /api/v1/user | Get user
+*UsersApi* | [**get_user_identities**](docs/UsersApi.md#get_user_identities) | **GET** /api/v1/users/{user_id}/identities | Get identities
+*UsersApi* | [**get_user_property_values**](docs/UsersApi.md#get_user_property_values) | **GET** /api/v1/users/{user_id}/properties | Get property values
+*UsersApi* | [**get_user_sessions**](docs/UsersApi.md#get_user_sessions) | **GET** /api/v1/users/{user_id}/sessions | Get user sessions
+*UsersApi* | [**get_users**](docs/UsersApi.md#get_users) | **GET** /api/v1/users | Get users
+*UsersApi* | [**get_users_mfa**](docs/UsersApi.md#get_users_mfa) | **GET** /api/v1/users/{user_id}/mfa | Get user's MFA configuration
+*UsersApi* | [**refresh_user_claims**](docs/UsersApi.md#refresh_user_claims) | **POST** /api/v1/users/{user_id}/refresh_claims | Refresh User Claims and Invalidate Cache
+*UsersApi* | [**reset_users_mfa**](docs/UsersApi.md#reset_users_mfa) | **DELETE** /api/v1/users/{user_id}/mfa/{factor_id} | Reset specific environment MFA for a user
+*UsersApi* | [**reset_users_mfa_all**](docs/UsersApi.md#reset_users_mfa_all) | **DELETE** /api/v1/users/{user_id}/mfa | Reset all environment MFA for a user
+*UsersApi* | [**set_user_password**](docs/UsersApi.md#set_user_password) | **PUT** /api/v1/users/{user_id}/password | Set User password
+*UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PATCH** /api/v1/user | Update user
+*UsersApi* | [**update_user_feature_flag_override**](docs/UsersApi.md#update_user_feature_flag_override) | **PATCH** /api/v1/users/{user_id}/feature_flags/{feature_flag_key} | Update User Feature Flag Override
+*UsersApi* | [**update_user_properties**](docs/UsersApi.md#update_user_properties) | **PATCH** /api/v1/users/{user_id}/properties | Update Property values
+*UsersApi* | [**update_user_property**](docs/UsersApi.md#update_user_property) | **PUT** /api/v1/users/{user_id}/properties/{property_key} | Update Property value
+*WebhooksApi* | [**create_web_hook**](docs/WebhooksApi.md#create_web_hook) | **POST** /api/v1/webhooks | Create a Webhook
+*WebhooksApi* | [**delete_web_hook**](docs/WebhooksApi.md#delete_web_hook) | **DELETE** /api/v1/webhooks/{webhook_id} | Delete Webhook
+*WebhooksApi* | [**get_event**](docs/WebhooksApi.md#get_event) | **GET** /api/v1/events/{event_id} | Get Event
+*WebhooksApi* | [**get_event_types**](docs/WebhooksApi.md#get_event_types) | **GET** /api/v1/event_types | List Event Types
+*WebhooksApi* | [**get_web_hooks**](docs/WebhooksApi.md#get_web_hooks) | **GET** /api/v1/webhooks | List Webhooks
+*WebhooksApi* | [**update_web_hook**](docs/WebhooksApi.md#update_web_hook) | **PATCH** /api/v1/webhooks/{webhook_id} | Update a Webhook
+
+
+## Documentation For Models
+
+ - [AddAPIScopeRequest](docs/AddAPIScopeRequest.md)
+ - [AddAPIsRequest](docs/AddAPIsRequest.md)
+ - [AddOrganizationUsersRequest](docs/AddOrganizationUsersRequest.md)
+ - [AddOrganizationUsersRequestUsersInner](docs/AddOrganizationUsersRequestUsersInner.md)
+ - [AddOrganizationUsersResponse](docs/AddOrganizationUsersResponse.md)
+ - [AddRoleScopeRequest](docs/AddRoleScopeRequest.md)
+ - [AddRoleScopeResponse](docs/AddRoleScopeResponse.md)
+ - [ApiResult](docs/ApiResult.md)
+ - [Applications](docs/Applications.md)
+ - [AuthorizeAppApiResponse](docs/AuthorizeAppApiResponse.md)
+ - [Category](docs/Category.md)
+ - [ConnectedAppsAccessToken](docs/ConnectedAppsAccessToken.md)
+ - [ConnectedAppsAuthUrl](docs/ConnectedAppsAuthUrl.md)
+ - [Connection](docs/Connection.md)
+ - [ConnectionConnection](docs/ConnectionConnection.md)
+ - [CreateApiScopesResponse](docs/CreateApiScopesResponse.md)
+ - [CreateApiScopesResponseScope](docs/CreateApiScopesResponseScope.md)
+ - [CreateApisResponse](docs/CreateApisResponse.md)
+ - [CreateApisResponseApi](docs/CreateApisResponseApi.md)
+ - [CreateApplicationRequest](docs/CreateApplicationRequest.md)
+ - [CreateApplicationResponse](docs/CreateApplicationResponse.md)
+ - [CreateApplicationResponseApplication](docs/CreateApplicationResponseApplication.md)
+ - [CreateBillingAgreementRequest](docs/CreateBillingAgreementRequest.md)
+ - [CreateCategoryRequest](docs/CreateCategoryRequest.md)
+ - [CreateCategoryResponse](docs/CreateCategoryResponse.md)
+ - [CreateCategoryResponseCategory](docs/CreateCategoryResponseCategory.md)
+ - [CreateConnectionRequest](docs/CreateConnectionRequest.md)
+ - [CreateConnectionRequestOptions](docs/CreateConnectionRequestOptions.md)
+ - [CreateConnectionRequestOptionsOneOf](docs/CreateConnectionRequestOptionsOneOf.md)
+ - [CreateConnectionRequestOptionsOneOf1](docs/CreateConnectionRequestOptionsOneOf1.md)
+ - [CreateConnectionRequestOptionsOneOf2](docs/CreateConnectionRequestOptionsOneOf2.md)
+ - [CreateConnectionResponse](docs/CreateConnectionResponse.md)
+ - [CreateConnectionResponseConnection](docs/CreateConnectionResponseConnection.md)
+ - [CreateEnvironmentVariableRequest](docs/CreateEnvironmentVariableRequest.md)
+ - [CreateEnvironmentVariableResponse](docs/CreateEnvironmentVariableResponse.md)
+ - [CreateEnvironmentVariableResponseEnvironmentVariable](docs/CreateEnvironmentVariableResponseEnvironmentVariable.md)
+ - [CreateFeatureFlagRequest](docs/CreateFeatureFlagRequest.md)
+ - [CreateIdentityResponse](docs/CreateIdentityResponse.md)
+ - [CreateIdentityResponseIdentity](docs/CreateIdentityResponseIdentity.md)
+ - [CreateMeterUsageRecordRequest](docs/CreateMeterUsageRecordRequest.md)
+ - [CreateMeterUsageRecordResponse](docs/CreateMeterUsageRecordResponse.md)
+ - [CreateOrganizationRequest](docs/CreateOrganizationRequest.md)
+ - [CreateOrganizationResponse](docs/CreateOrganizationResponse.md)
+ - [CreateOrganizationResponseOrganization](docs/CreateOrganizationResponseOrganization.md)
+ - [CreateOrganizationUserPermissionRequest](docs/CreateOrganizationUserPermissionRequest.md)
+ - [CreateOrganizationUserRoleRequest](docs/CreateOrganizationUserRoleRequest.md)
+ - [CreatePermissionRequest](docs/CreatePermissionRequest.md)
+ - [CreatePropertyRequest](docs/CreatePropertyRequest.md)
+ - [CreatePropertyResponse](docs/CreatePropertyResponse.md)
+ - [CreatePropertyResponseProperty](docs/CreatePropertyResponseProperty.md)
+ - [CreateRoleRequest](docs/CreateRoleRequest.md)
+ - [CreateRolesResponse](docs/CreateRolesResponse.md)
+ - [CreateRolesResponseRole](docs/CreateRolesResponseRole.md)
+ - [CreateSubscriberSuccessResponse](docs/CreateSubscriberSuccessResponse.md)
+ - [CreateSubscriberSuccessResponseSubscriber](docs/CreateSubscriberSuccessResponseSubscriber.md)
+ - [CreateUserIdentityRequest](docs/CreateUserIdentityRequest.md)
+ - [CreateUserRequest](docs/CreateUserRequest.md)
+ - [CreateUserRequestIdentitiesInner](docs/CreateUserRequestIdentitiesInner.md)
+ - [CreateUserRequestIdentitiesInnerDetails](docs/CreateUserRequestIdentitiesInnerDetails.md)
+ - [CreateUserRequestProfile](docs/CreateUserRequestProfile.md)
+ - [CreateUserResponse](docs/CreateUserResponse.md)
+ - [CreateWebHookRequest](docs/CreateWebHookRequest.md)
+ - [CreateWebhookResponse](docs/CreateWebhookResponse.md)
+ - [CreateWebhookResponseWebhook](docs/CreateWebhookResponseWebhook.md)
+ - [DeleteApiResponse](docs/DeleteApiResponse.md)
+ - [DeleteEnvironmentVariableResponse](docs/DeleteEnvironmentVariableResponse.md)
+ - [DeleteRoleScopeResponse](docs/DeleteRoleScopeResponse.md)
+ - [DeleteWebhookResponse](docs/DeleteWebhookResponse.md)
+ - [EnvironmentVariable](docs/EnvironmentVariable.md)
+ - [Error](docs/Error.md)
+ - [ErrorResponse](docs/ErrorResponse.md)
+ - [EventType](docs/EventType.md)
+ - [GetApiResponse](docs/GetApiResponse.md)
+ - [GetApiResponseApi](docs/GetApiResponseApi.md)
+ - [GetApiResponseApiApplicationsInner](docs/GetApiResponseApiApplicationsInner.md)
+ - [GetApiResponseApiScopesInner](docs/GetApiResponseApiScopesInner.md)
+ - [GetApiScopeResponse](docs/GetApiScopeResponse.md)
+ - [GetApiScopesResponse](docs/GetApiScopesResponse.md)
+ - [GetApiScopesResponseScopesInner](docs/GetApiScopesResponseScopesInner.md)
+ - [GetApisResponse](docs/GetApisResponse.md)
+ - [GetApisResponseApisInner](docs/GetApisResponseApisInner.md)
+ - [GetApisResponseApisInnerScopesInner](docs/GetApisResponseApisInnerScopesInner.md)
+ - [GetApplicationResponse](docs/GetApplicationResponse.md)
+ - [GetApplicationResponseApplication](docs/GetApplicationResponseApplication.md)
+ - [GetApplicationsResponse](docs/GetApplicationsResponse.md)
+ - [GetBillingAgreementsResponse](docs/GetBillingAgreementsResponse.md)
+ - [GetBillingAgreementsResponseAgreementsInner](docs/GetBillingAgreementsResponseAgreementsInner.md)
+ - [GetBillingAgreementsResponseAgreementsInnerEntitlementsInner](docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md)
+ - [GetBillingEntitlementsResponse](docs/GetBillingEntitlementsResponse.md)
+ - [GetBillingEntitlementsResponseEntitlementsInner](docs/GetBillingEntitlementsResponseEntitlementsInner.md)
+ - [GetBillingEntitlementsResponsePlansInner](docs/GetBillingEntitlementsResponsePlansInner.md)
+ - [GetBusinessResponse](docs/GetBusinessResponse.md)
+ - [GetBusinessResponseBusiness](docs/GetBusinessResponseBusiness.md)
+ - [GetCategoriesResponse](docs/GetCategoriesResponse.md)
+ - [GetConnectionsResponse](docs/GetConnectionsResponse.md)
+ - [GetEntitlementsResponse](docs/GetEntitlementsResponse.md)
+ - [GetEntitlementsResponseData](docs/GetEntitlementsResponseData.md)
+ - [GetEntitlementsResponseDataEntitlementsInner](docs/GetEntitlementsResponseDataEntitlementsInner.md)
+ - [GetEntitlementsResponseDataPlansInner](docs/GetEntitlementsResponseDataPlansInner.md)
+ - [GetEntitlementsResponseMetadata](docs/GetEntitlementsResponseMetadata.md)
+ - [GetEnvironmentFeatureFlagsResponse](docs/GetEnvironmentFeatureFlagsResponse.md)
+ - [GetEnvironmentResponse](docs/GetEnvironmentResponse.md)
+ - [GetEnvironmentResponseEnvironment](docs/GetEnvironmentResponseEnvironment.md)
+ - [GetEnvironmentResponseEnvironmentBackgroundColor](docs/GetEnvironmentResponseEnvironmentBackgroundColor.md)
+ - [GetEnvironmentResponseEnvironmentLinkColor](docs/GetEnvironmentResponseEnvironmentLinkColor.md)
+ - [GetEnvironmentVariableResponse](docs/GetEnvironmentVariableResponse.md)
+ - [GetEnvironmentVariablesResponse](docs/GetEnvironmentVariablesResponse.md)
+ - [GetEventResponse](docs/GetEventResponse.md)
+ - [GetEventResponseEvent](docs/GetEventResponseEvent.md)
+ - [GetEventTypesResponse](docs/GetEventTypesResponse.md)
+ - [GetFeatureFlagsResponse](docs/GetFeatureFlagsResponse.md)
+ - [GetFeatureFlagsResponseData](docs/GetFeatureFlagsResponseData.md)
+ - [GetFeatureFlagsResponseDataFeatureFlagsInner](docs/GetFeatureFlagsResponseDataFeatureFlagsInner.md)
+ - [GetIdentitiesResponse](docs/GetIdentitiesResponse.md)
+ - [GetIndustriesResponse](docs/GetIndustriesResponse.md)
+ - [GetIndustriesResponseIndustriesInner](docs/GetIndustriesResponseIndustriesInner.md)
+ - [GetOrganizationFeatureFlagsResponse](docs/GetOrganizationFeatureFlagsResponse.md)
+ - [GetOrganizationFeatureFlagsResponseFeatureFlagsValue](docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md)
+ - [GetOrganizationResponse](docs/GetOrganizationResponse.md)
+ - [GetOrganizationResponseBilling](docs/GetOrganizationResponseBilling.md)
+ - [GetOrganizationResponseBillingAgreementsInner](docs/GetOrganizationResponseBillingAgreementsInner.md)
+ - [GetOrganizationUsersResponse](docs/GetOrganizationUsersResponse.md)
+ - [GetOrganizationsResponse](docs/GetOrganizationsResponse.md)
+ - [GetOrganizationsUserPermissionsResponse](docs/GetOrganizationsUserPermissionsResponse.md)
+ - [GetOrganizationsUserRolesResponse](docs/GetOrganizationsUserRolesResponse.md)
+ - [GetPermissionsResponse](docs/GetPermissionsResponse.md)
+ - [GetPortalLink](docs/GetPortalLink.md)
+ - [GetPropertiesResponse](docs/GetPropertiesResponse.md)
+ - [GetPropertyValuesResponse](docs/GetPropertyValuesResponse.md)
+ - [GetRedirectCallbackUrlsResponse](docs/GetRedirectCallbackUrlsResponse.md)
+ - [GetRoleResponse](docs/GetRoleResponse.md)
+ - [GetRoleResponseRole](docs/GetRoleResponseRole.md)
+ - [GetRolesResponse](docs/GetRolesResponse.md)
+ - [GetSubscriberResponse](docs/GetSubscriberResponse.md)
+ - [GetSubscribersResponse](docs/GetSubscribersResponse.md)
+ - [GetTimezonesResponse](docs/GetTimezonesResponse.md)
+ - [GetTimezonesResponseTimezonesInner](docs/GetTimezonesResponseTimezonesInner.md)
+ - [GetUserMfaResponse](docs/GetUserMfaResponse.md)
+ - [GetUserMfaResponseMfa](docs/GetUserMfaResponseMfa.md)
+ - [GetUserPermissionsResponse](docs/GetUserPermissionsResponse.md)
+ - [GetUserPermissionsResponseData](docs/GetUserPermissionsResponseData.md)
+ - [GetUserPermissionsResponseDataPermissionsInner](docs/GetUserPermissionsResponseDataPermissionsInner.md)
+ - [GetUserPermissionsResponseMetadata](docs/GetUserPermissionsResponseMetadata.md)
+ - [GetUserPropertiesResponse](docs/GetUserPropertiesResponse.md)
+ - [GetUserPropertiesResponseData](docs/GetUserPropertiesResponseData.md)
+ - [GetUserPropertiesResponseDataPropertiesInner](docs/GetUserPropertiesResponseDataPropertiesInner.md)
+ - [GetUserPropertiesResponseMetadata](docs/GetUserPropertiesResponseMetadata.md)
+ - [GetUserRolesResponse](docs/GetUserRolesResponse.md)
+ - [GetUserRolesResponseData](docs/GetUserRolesResponseData.md)
+ - [GetUserRolesResponseDataRolesInner](docs/GetUserRolesResponseDataRolesInner.md)
+ - [GetUserRolesResponseMetadata](docs/GetUserRolesResponseMetadata.md)
+ - [GetUserSessionsResponse](docs/GetUserSessionsResponse.md)
+ - [GetUserSessionsResponseSessionsInner](docs/GetUserSessionsResponseSessionsInner.md)
+ - [GetWebhooksResponse](docs/GetWebhooksResponse.md)
+ - [Identity](docs/Identity.md)
+ - [LogoutRedirectUrls](docs/LogoutRedirectUrls.md)
+ - [ModelProperty](docs/ModelProperty.md)
+ - [NotFoundResponse](docs/NotFoundResponse.md)
+ - [NotFoundResponseErrors](docs/NotFoundResponseErrors.md)
+ - [OrganizationItemSchema](docs/OrganizationItemSchema.md)
+ - [OrganizationUser](docs/OrganizationUser.md)
+ - [OrganizationUserPermission](docs/OrganizationUserPermission.md)
+ - [OrganizationUserPermissionRolesInner](docs/OrganizationUserPermissionRolesInner.md)
+ - [OrganizationUserRole](docs/OrganizationUserRole.md)
+ - [OrganizationUserRolePermissions](docs/OrganizationUserRolePermissions.md)
+ - [OrganizationUserRolePermissionsPermissions](docs/OrganizationUserRolePermissionsPermissions.md)
+ - [Permissions](docs/Permissions.md)
+ - [PropertyValue](docs/PropertyValue.md)
+ - [ReadEnvLogoResponse](docs/ReadEnvLogoResponse.md)
+ - [ReadEnvLogoResponseLogosInner](docs/ReadEnvLogoResponseLogosInner.md)
+ - [ReadLogoResponse](docs/ReadLogoResponse.md)
+ - [ReadLogoResponseLogosInner](docs/ReadLogoResponseLogosInner.md)
+ - [RedirectCallbackUrls](docs/RedirectCallbackUrls.md)
+ - [ReplaceConnectionRequest](docs/ReplaceConnectionRequest.md)
+ - [ReplaceConnectionRequestOptions](docs/ReplaceConnectionRequestOptions.md)
+ - [ReplaceConnectionRequestOptionsOneOf](docs/ReplaceConnectionRequestOptionsOneOf.md)
+ - [ReplaceConnectionRequestOptionsOneOf1](docs/ReplaceConnectionRequestOptionsOneOf1.md)
+ - [ReplaceLogoutRedirectURLsRequest](docs/ReplaceLogoutRedirectURLsRequest.md)
+ - [ReplaceMFARequest](docs/ReplaceMFARequest.md)
+ - [ReplaceOrganizationMFARequest](docs/ReplaceOrganizationMFARequest.md)
+ - [ReplaceRedirectCallbackURLsRequest](docs/ReplaceRedirectCallbackURLsRequest.md)
+ - [Role](docs/Role.md)
+ - [RolePermissionsResponse](docs/RolePermissionsResponse.md)
+ - [RoleScopesResponse](docs/RoleScopesResponse.md)
+ - [Roles](docs/Roles.md)
+ - [Scopes](docs/Scopes.md)
+ - [SearchUsersResponse](docs/SearchUsersResponse.md)
+ - [SearchUsersResponseResultsInner](docs/SearchUsersResponseResultsInner.md)
+ - [SetUserPasswordRequest](docs/SetUserPasswordRequest.md)
+ - [Subscriber](docs/Subscriber.md)
+ - [SubscribersSubscriber](docs/SubscribersSubscriber.md)
+ - [SuccessResponse](docs/SuccessResponse.md)
+ - [TokenErrorResponse](docs/TokenErrorResponse.md)
+ - [TokenIntrospect](docs/TokenIntrospect.md)
+ - [UpdateAPIApplicationsRequest](docs/UpdateAPIApplicationsRequest.md)
+ - [UpdateAPIApplicationsRequestApplicationsInner](docs/UpdateAPIApplicationsRequestApplicationsInner.md)
+ - [UpdateAPIScopeRequest](docs/UpdateAPIScopeRequest.md)
+ - [UpdateApplicationRequest](docs/UpdateApplicationRequest.md)
+ - [UpdateApplicationTokensRequest](docs/UpdateApplicationTokensRequest.md)
+ - [UpdateApplicationsPropertyRequest](docs/UpdateApplicationsPropertyRequest.md)
+ - [UpdateApplicationsPropertyRequestValue](docs/UpdateApplicationsPropertyRequestValue.md)
+ - [UpdateBusinessRequest](docs/UpdateBusinessRequest.md)
+ - [UpdateCategoryRequest](docs/UpdateCategoryRequest.md)
+ - [UpdateConnectionRequest](docs/UpdateConnectionRequest.md)
+ - [UpdateEnvironementFeatureFlagOverrideRequest](docs/UpdateEnvironementFeatureFlagOverrideRequest.md)
+ - [UpdateEnvironmentVariableRequest](docs/UpdateEnvironmentVariableRequest.md)
+ - [UpdateEnvironmentVariableResponse](docs/UpdateEnvironmentVariableResponse.md)
+ - [UpdateIdentityRequest](docs/UpdateIdentityRequest.md)
+ - [UpdateOrganizationPropertiesRequest](docs/UpdateOrganizationPropertiesRequest.md)
+ - [UpdateOrganizationRequest](docs/UpdateOrganizationRequest.md)
+ - [UpdateOrganizationSessionsRequest](docs/UpdateOrganizationSessionsRequest.md)
+ - [UpdateOrganizationUsersRequest](docs/UpdateOrganizationUsersRequest.md)
+ - [UpdateOrganizationUsersRequestUsersInner](docs/UpdateOrganizationUsersRequestUsersInner.md)
+ - [UpdateOrganizationUsersResponse](docs/UpdateOrganizationUsersResponse.md)
+ - [UpdatePropertyRequest](docs/UpdatePropertyRequest.md)
+ - [UpdateRolePermissionsRequest](docs/UpdateRolePermissionsRequest.md)
+ - [UpdateRolePermissionsRequestPermissionsInner](docs/UpdateRolePermissionsRequestPermissionsInner.md)
+ - [UpdateRolePermissionsResponse](docs/UpdateRolePermissionsResponse.md)
+ - [UpdateRolesRequest](docs/UpdateRolesRequest.md)
+ - [UpdateUserRequest](docs/UpdateUserRequest.md)
+ - [UpdateUserResponse](docs/UpdateUserResponse.md)
+ - [UpdateWebHookRequest](docs/UpdateWebHookRequest.md)
+ - [UpdateWebhookResponse](docs/UpdateWebhookResponse.md)
+ - [UpdateWebhookResponseWebhook](docs/UpdateWebhookResponseWebhook.md)
+ - [User](docs/User.md)
+ - [UserIdentitiesInner](docs/UserIdentitiesInner.md)
+ - [UserIdentity](docs/UserIdentity.md)
+ - [UserIdentityResult](docs/UserIdentityResult.md)
+ - [UserProfileV2](docs/UserProfileV2.md)
+ - [UsersResponse](docs/UsersResponse.md)
+ - [UsersResponseUsersInner](docs/UsersResponseUsersInner.md)
+ - [Webhook](docs/Webhook.md)
+
+
+
+## Documentation For Authorization
+
+
+Authentication schemes defined for the API:
+
+### kindeBearerAuth
+
+- **Type**: Bearer authentication (JWT)
+
+
+## Author
+
+support@kinde.com
-## License
-By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.
\ No newline at end of file
diff --git a/docs/APIsApi.md b/docs/APIsApi.md
new file mode 100644
index 00000000..ec495314
--- /dev/null
+++ b/docs/APIsApi.md
@@ -0,0 +1,1064 @@
+# kinde_sdk.APIsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_api_application_scope**](APIsApi.md#add_api_application_scope) | **POST** /api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id} | Add scope to API application
+[**add_api_scope**](APIsApi.md#add_api_scope) | **POST** /api/v1/apis/{api_id}/scopes | Create API scope
+[**add_apis**](APIsApi.md#add_apis) | **POST** /api/v1/apis | Create API
+[**delete_api**](APIsApi.md#delete_api) | **DELETE** /api/v1/apis/{api_id} | Delete API
+[**delete_api_appliation_scope**](APIsApi.md#delete_api_appliation_scope) | **DELETE** /api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id} | Delete API application scope
+[**delete_api_scope**](APIsApi.md#delete_api_scope) | **DELETE** /api/v1/apis/{api_id}/scopes/{scope_id} | Delete API scope
+[**get_api**](APIsApi.md#get_api) | **GET** /api/v1/apis/{api_id} | Get API
+[**get_api_scope**](APIsApi.md#get_api_scope) | **GET** /api/v1/apis/{api_id}/scopes/{scope_id} | Get API scope
+[**get_api_scopes**](APIsApi.md#get_api_scopes) | **GET** /api/v1/apis/{api_id}/scopes | Get API scopes
+[**get_apis**](APIsApi.md#get_apis) | **GET** /api/v1/apis | Get APIs
+[**update_api_applications**](APIsApi.md#update_api_applications) | **PATCH** /api/v1/apis/{api_id}/applications | Authorize API applications
+[**update_api_scope**](APIsApi.md#update_api_scope) | **PATCH** /api/v1/apis/{api_id}/scopes/{scope_id} | Update API scope
+
+
+# **add_api_application_scope**
+> add_api_application_scope(api_id, application_id, scope_id)
+
+Add scope to API application
+
+Add a scope to an API application.
+
+
+ create:api_application_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ application_id = '7643b487c97545aab79257fd13a1085a' # str | Application ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Add scope to API application
+ api_instance.add_api_application_scope(api_id, application_id, scope_id)
+ except Exception as e:
+ print("Exception when calling APIsApi->add_api_application_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+ **application_id** | **str**| Application ID |
+ **scope_id** | **str**| Scope ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scope successfully added to API application | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **add_api_scope**
+> CreateApiScopesResponse add_api_scope(api_id, add_api_scope_request)
+
+Create API scope
+
+Create a new API scope.
+
+
+ create:api_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.add_api_scope_request import AddAPIScopeRequest
+from kinde_sdk.models.create_api_scopes_response import CreateApiScopesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ add_api_scope_request = kinde_sdk.AddAPIScopeRequest() # AddAPIScopeRequest |
+
+ try:
+ # Create API scope
+ api_response = api_instance.add_api_scope(api_id, add_api_scope_request)
+ print("The response of APIsApi->add_api_scope:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->add_api_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+ **add_api_scope_request** | [**AddAPIScopeRequest**](AddAPIScopeRequest.md)| |
+
+### Return type
+
+[**CreateApiScopesResponse**](CreateApiScopesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scopes successfully created | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **add_apis**
+> CreateApisResponse add_apis(add_apis_request)
+
+Create API
+
+Register a new API. For more information read [Register and manage APIs](https://docs.kinde.com/developer-tools/your-apis/register-manage-apis/).
+
+
+ create:apis
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.add_apis_request import AddAPIsRequest
+from kinde_sdk.models.create_apis_response import CreateApisResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ add_apis_request = kinde_sdk.AddAPIsRequest() # AddAPIsRequest |
+
+ try:
+ # Create API
+ api_response = api_instance.add_apis(add_apis_request)
+ print("The response of APIsApi->add_apis:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->add_apis: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **add_apis_request** | [**AddAPIsRequest**](AddAPIsRequest.md)| |
+
+### Return type
+
+[**CreateApisResponse**](CreateApisResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | APIs successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_api**
+> DeleteApiResponse delete_api(api_id)
+
+Delete API
+
+Delete an API you previously created.
+
+
+ delete:apis
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.delete_api_response import DeleteApiResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '7ccd126599aa422a771abcb341596881' # str | The API's ID.
+
+ try:
+ # Delete API
+ api_response = api_instance.delete_api(api_id)
+ print("The response of APIsApi->delete_api:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->delete_api: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| The API's ID. |
+
+### Return type
+
+[**DeleteApiResponse**](DeleteApiResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_api_appliation_scope**
+> delete_api_appliation_scope(api_id, application_id, scope_id)
+
+Delete API application scope
+
+Delete an API application scope you previously created.
+
+
+ delete:apis_application_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ application_id = '7643b487c97545aab79257fd13a1085a' # str | Application ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Delete API application scope
+ api_instance.delete_api_appliation_scope(api_id, application_id, scope_id)
+ except Exception as e:
+ print("Exception when calling APIsApi->delete_api_appliation_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+ **application_id** | **str**| Application ID |
+ **scope_id** | **str**| Scope ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scope successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_api_scope**
+> delete_api_scope(api_id, scope_id)
+
+Delete API scope
+
+Delete an API scope you previously created.
+
+
+ delete:apis_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Delete API scope
+ api_instance.delete_api_scope(api_id, scope_id)
+ except Exception as e:
+ print("Exception when calling APIsApi->delete_api_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+ **scope_id** | **str**| Scope ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scope successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_api**
+> GetApiResponse get_api(api_id)
+
+Get API
+
+Retrieve API details by ID.
+
+
+ read:apis
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_api_response import GetApiResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '7ccd126599aa422a771abcb341596881' # str | The API's ID.
+
+ try:
+ # Get API
+ api_response = api_instance.get_api(api_id)
+ print("The response of APIsApi->get_api:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->get_api: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| The API's ID. |
+
+### Return type
+
+[**GetApiResponse**](GetApiResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_api_scope**
+> GetApiScopeResponse get_api_scope(api_id, scope_id)
+
+Get API scope
+
+Retrieve API scope by API ID.
+
+
+ read:api_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_api_scope_response import GetApiScopeResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Get API scope
+ api_response = api_instance.get_api_scope(api_id, scope_id)
+ print("The response of APIsApi->get_api_scope:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->get_api_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+ **scope_id** | **str**| Scope ID |
+
+### Return type
+
+[**GetApiScopeResponse**](GetApiScopeResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scope successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_api_scopes**
+> GetApiScopesResponse get_api_scopes(api_id)
+
+Get API scopes
+
+Retrieve API scopes by API ID.
+
+
+ read:api_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_api_scopes_response import GetApiScopesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+
+ try:
+ # Get API scopes
+ api_response = api_instance.get_api_scopes(api_id)
+ print("The response of APIsApi->get_api_scopes:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->get_api_scopes: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+
+### Return type
+
+[**GetApiScopesResponse**](GetApiScopesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scopes successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_apis**
+> GetApisResponse get_apis(expand=expand)
+
+Get APIs
+
+Returns a list of your APIs. The APIs are returned sorted by name.
+
+
+ read:apis
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_apis_response import GetApisResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ expand = 'expand_example' # str | Specify additional data to retrieve. Use \"scopes\". (optional)
+
+ try:
+ # Get APIs
+ api_response = api_instance.get_apis(expand=expand)
+ print("The response of APIsApi->get_apis:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->get_apis: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **expand** | **str**| Specify additional data to retrieve. Use \"scopes\". | [optional]
+
+### Return type
+
+[**GetApisResponse**](GetApisResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A list of APIs. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_api_applications**
+> AuthorizeAppApiResponse update_api_applications(api_id, update_api_applications_request)
+
+Authorize API applications
+
+Authorize applications to be allowed to request access tokens for an API
+
+
+ update:apis
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.authorize_app_api_response import AuthorizeAppApiResponse
+from kinde_sdk.models.update_api_applications_request import UpdateAPIApplicationsRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '7ccd126599aa422a771abcb341596881' # str | The API's ID.
+ update_api_applications_request = kinde_sdk.UpdateAPIApplicationsRequest() # UpdateAPIApplicationsRequest | The applications you want to authorize.
+
+ try:
+ # Authorize API applications
+ api_response = api_instance.update_api_applications(api_id, update_api_applications_request)
+ print("The response of APIsApi->update_api_applications:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling APIsApi->update_api_applications: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| The API's ID. |
+ **update_api_applications_request** | [**UpdateAPIApplicationsRequest**](UpdateAPIApplicationsRequest.md)| The applications you want to authorize. |
+
+### Return type
+
+[**AuthorizeAppApiResponse**](AuthorizeAppApiResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Authorized applications updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_api_scope**
+> update_api_scope(api_id, scope_id, update_api_scope_request)
+
+Update API scope
+
+Update an API scope.
+
+
+ update:api_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_api_scope_request import UpdateAPIScopeRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.APIsApi(api_client)
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+ update_api_scope_request = kinde_sdk.UpdateAPIScopeRequest() # UpdateAPIScopeRequest |
+
+ try:
+ # Update API scope
+ api_instance.update_api_scope(api_id, scope_id, update_api_scope_request)
+ except Exception as e:
+ print("Exception when calling APIsApi->update_api_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **api_id** | **str**| API ID |
+ **scope_id** | **str**| Scope ID |
+ **update_api_scope_request** | [**UpdateAPIScopeRequest**](UpdateAPIScopeRequest.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scope successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/AddAPIScopeRequest.md b/docs/AddAPIScopeRequest.md
new file mode 100644
index 00000000..d05be1f3
--- /dev/null
+++ b/docs/AddAPIScopeRequest.md
@@ -0,0 +1,30 @@
+# AddAPIScopeRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | The key reference for the scope (1-64 characters, no white space). |
+**description** | **str** | Description of the api scope purpose. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.add_api_scope_request import AddAPIScopeRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddAPIScopeRequest from a JSON string
+add_api_scope_request_instance = AddAPIScopeRequest.from_json(json)
+# print the JSON string representation of the object
+print(AddAPIScopeRequest.to_json())
+
+# convert the object into a dict
+add_api_scope_request_dict = add_api_scope_request_instance.to_dict()
+# create an instance of AddAPIScopeRequest from a dict
+add_api_scope_request_from_dict = AddAPIScopeRequest.from_dict(add_api_scope_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddAPIsRequest.md b/docs/AddAPIsRequest.md
new file mode 100644
index 00000000..af02e041
--- /dev/null
+++ b/docs/AddAPIsRequest.md
@@ -0,0 +1,30 @@
+# AddAPIsRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The name of the API. (1-64 characters). |
+**audience** | **str** | A unique identifier for the API - commonly the URL. This value will be used as the `audience` parameter in authorization claims. (1-64 characters) |
+
+## Example
+
+```python
+from kinde_sdk.models.add_apis_request import AddAPIsRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddAPIsRequest from a JSON string
+add_apis_request_instance = AddAPIsRequest.from_json(json)
+# print the JSON string representation of the object
+print(AddAPIsRequest.to_json())
+
+# convert the object into a dict
+add_apis_request_dict = add_apis_request_instance.to_dict()
+# create an instance of AddAPIsRequest from a dict
+add_apis_request_from_dict = AddAPIsRequest.from_dict(add_apis_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddOrganizationUsersRequest.md b/docs/AddOrganizationUsersRequest.md
new file mode 100644
index 00000000..2c27ccb3
--- /dev/null
+++ b/docs/AddOrganizationUsersRequest.md
@@ -0,0 +1,29 @@
+# AddOrganizationUsersRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**users** | [**List[AddOrganizationUsersRequestUsersInner]**](AddOrganizationUsersRequestUsersInner.md) | Users to be added to the organization. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.add_organization_users_request import AddOrganizationUsersRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddOrganizationUsersRequest from a JSON string
+add_organization_users_request_instance = AddOrganizationUsersRequest.from_json(json)
+# print the JSON string representation of the object
+print(AddOrganizationUsersRequest.to_json())
+
+# convert the object into a dict
+add_organization_users_request_dict = add_organization_users_request_instance.to_dict()
+# create an instance of AddOrganizationUsersRequest from a dict
+add_organization_users_request_from_dict = AddOrganizationUsersRequest.from_dict(add_organization_users_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddOrganizationUsersRequestUsersInner.md b/docs/AddOrganizationUsersRequestUsersInner.md
new file mode 100644
index 00000000..e3c99fe0
--- /dev/null
+++ b/docs/AddOrganizationUsersRequestUsersInner.md
@@ -0,0 +1,31 @@
+# AddOrganizationUsersRequestUsersInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The users id. | [optional]
+**roles** | **List[str]** | Role keys to assign to the user. | [optional]
+**permissions** | **List[str]** | Permission keys to assign to the user. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.add_organization_users_request_users_inner import AddOrganizationUsersRequestUsersInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddOrganizationUsersRequestUsersInner from a JSON string
+add_organization_users_request_users_inner_instance = AddOrganizationUsersRequestUsersInner.from_json(json)
+# print the JSON string representation of the object
+print(AddOrganizationUsersRequestUsersInner.to_json())
+
+# convert the object into a dict
+add_organization_users_request_users_inner_dict = add_organization_users_request_users_inner_instance.to_dict()
+# create an instance of AddOrganizationUsersRequestUsersInner from a dict
+add_organization_users_request_users_inner_from_dict = AddOrganizationUsersRequestUsersInner.from_dict(add_organization_users_request_users_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddOrganizationUsersResponse.md b/docs/AddOrganizationUsersResponse.md
new file mode 100644
index 00000000..8548b69d
--- /dev/null
+++ b/docs/AddOrganizationUsersResponse.md
@@ -0,0 +1,31 @@
+# AddOrganizationUsersResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**users_added** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.add_organization_users_response import AddOrganizationUsersResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddOrganizationUsersResponse from a JSON string
+add_organization_users_response_instance = AddOrganizationUsersResponse.from_json(json)
+# print the JSON string representation of the object
+print(AddOrganizationUsersResponse.to_json())
+
+# convert the object into a dict
+add_organization_users_response_dict = add_organization_users_response_instance.to_dict()
+# create an instance of AddOrganizationUsersResponse from a dict
+add_organization_users_response_from_dict = AddOrganizationUsersResponse.from_dict(add_organization_users_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddRoleScopeRequest.md b/docs/AddRoleScopeRequest.md
new file mode 100644
index 00000000..c9cf1c80
--- /dev/null
+++ b/docs/AddRoleScopeRequest.md
@@ -0,0 +1,29 @@
+# AddRoleScopeRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**scope_id** | **str** | The scope identifier. |
+
+## Example
+
+```python
+from kinde_sdk.models.add_role_scope_request import AddRoleScopeRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddRoleScopeRequest from a JSON string
+add_role_scope_request_instance = AddRoleScopeRequest.from_json(json)
+# print the JSON string representation of the object
+print(AddRoleScopeRequest.to_json())
+
+# convert the object into a dict
+add_role_scope_request_dict = add_role_scope_request_instance.to_dict()
+# create an instance of AddRoleScopeRequest from a dict
+add_role_scope_request_from_dict = AddRoleScopeRequest.from_dict(add_role_scope_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddRoleScopeResponse.md b/docs/AddRoleScopeResponse.md
new file mode 100644
index 00000000..2aa97c90
--- /dev/null
+++ b/docs/AddRoleScopeResponse.md
@@ -0,0 +1,30 @@
+# AddRoleScopeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.add_role_scope_response import AddRoleScopeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AddRoleScopeResponse from a JSON string
+add_role_scope_response_instance = AddRoleScopeResponse.from_json(json)
+# print the JSON string representation of the object
+print(AddRoleScopeResponse.to_json())
+
+# convert the object into a dict
+add_role_scope_response_dict = add_role_scope_response_instance.to_dict()
+# create an instance of AddRoleScopeResponse from a dict
+add_role_scope_response_from_dict = AddRoleScopeResponse.from_dict(add_role_scope_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ApiResult.md b/docs/ApiResult.md
new file mode 100644
index 00000000..0818dede
--- /dev/null
+++ b/docs/ApiResult.md
@@ -0,0 +1,29 @@
+# ApiResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**result** | **str** | The result of the api operation. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.api_result import ApiResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ApiResult from a JSON string
+api_result_instance = ApiResult.from_json(json)
+# print the JSON string representation of the object
+print(ApiResult.to_json())
+
+# convert the object into a dict
+api_result_dict = api_result_instance.to_dict()
+# create an instance of ApiResult from a dict
+api_result_from_dict = ApiResult.from_dict(api_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Applications.md b/docs/Applications.md
new file mode 100644
index 00000000..28ecb887
--- /dev/null
+++ b/docs/Applications.md
@@ -0,0 +1,31 @@
+# Applications
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | | [optional]
+**type** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.applications import Applications
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Applications from a JSON string
+applications_instance = Applications.from_json(json)
+# print the JSON string representation of the object
+print(Applications.to_json())
+
+# convert the object into a dict
+applications_dict = applications_instance.to_dict()
+# create an instance of Applications from a dict
+applications_from_dict = Applications.from_dict(applications_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ApplicationsApi.md b/docs/ApplicationsApi.md
new file mode 100644
index 00000000..f7fb4e1e
--- /dev/null
+++ b/docs/ApplicationsApi.md
@@ -0,0 +1,978 @@
+# kinde_sdk.ApplicationsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_application**](ApplicationsApi.md#create_application) | **POST** /api/v1/applications | Create application
+[**delete_application**](ApplicationsApi.md#delete_application) | **DELETE** /api/v1/applications/{application_id} | Delete application
+[**enable_connection**](ApplicationsApi.md#enable_connection) | **POST** /api/v1/applications/{application_id}/connections/{connection_id} | Enable connection
+[**get_application**](ApplicationsApi.md#get_application) | **GET** /api/v1/applications/{application_id} | Get application
+[**get_application_connections**](ApplicationsApi.md#get_application_connections) | **GET** /api/v1/applications/{application_id}/connections | Get connections
+[**get_application_property_values**](ApplicationsApi.md#get_application_property_values) | **GET** /api/v1/applications/{application_id}/properties | Get property values
+[**get_applications**](ApplicationsApi.md#get_applications) | **GET** /api/v1/applications | Get applications
+[**remove_connection**](ApplicationsApi.md#remove_connection) | **DELETE** /api/v1/applications/{application_id}/connections/{connection_id} | Remove connection
+[**update_application**](ApplicationsApi.md#update_application) | **PATCH** /api/v1/applications/{application_id} | Update Application
+[**update_application_tokens**](ApplicationsApi.md#update_application_tokens) | **PATCH** /api/v1/applications/{application_id}/tokens | Update application tokens
+[**update_applications_property**](ApplicationsApi.md#update_applications_property) | **PUT** /api/v1/applications/{application_id}/properties/{property_key} | Update property
+
+
+# **create_application**
+> CreateApplicationResponse create_application(create_application_request)
+
+Create application
+
+Create a new client.
+
+
+ create:applications
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_application_request import CreateApplicationRequest
+from kinde_sdk.models.create_application_response import CreateApplicationResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ create_application_request = kinde_sdk.CreateApplicationRequest() # CreateApplicationRequest |
+
+ try:
+ # Create application
+ api_response = api_instance.create_application(create_application_request)
+ print("The response of ApplicationsApi->create_application:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->create_application: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_application_request** | [**CreateApplicationRequest**](CreateApplicationRequest.md)| |
+
+### Return type
+
+[**CreateApplicationResponse**](CreateApplicationResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Application successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_application**
+> SuccessResponse delete_application(application_id)
+
+Delete application
+
+Delete a client / application.
+
+
+ delete:applications
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier for the application.
+
+ try:
+ # Delete application
+ api_response = api_instance.delete_application(application_id)
+ print("The response of ApplicationsApi->delete_application:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->delete_application: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier for the application. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Application successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **enable_connection**
+> enable_connection(application_id, connection_id)
+
+Enable connection
+
+Enable an auth connection for an application.
+
+
+ create:application_connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier/client ID for the application.
+ connection_id = 'conn_0192c16abb53b44277e597d31877ba5b' # str | The identifier for the connection.
+
+ try:
+ # Enable connection
+ api_instance.enable_connection(application_id, connection_id)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->enable_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier/client ID for the application. |
+ **connection_id** | **str**| The identifier for the connection. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully enabled. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_application**
+> GetApplicationResponse get_application(application_id)
+
+Get application
+
+Gets an application given the application's ID.
+
+
+ read:applications
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_application_response import GetApplicationResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier for the application.
+
+ try:
+ # Get application
+ api_response = api_instance.get_application(application_id)
+ print("The response of ApplicationsApi->get_application:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->get_application: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier for the application. |
+
+### Return type
+
+[**GetApplicationResponse**](GetApplicationResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Application successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_application_connections**
+> GetConnectionsResponse get_application_connections(application_id)
+
+Get connections
+
+Gets all connections for an application.
+
+
+ read:application_connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier/client ID for the application.
+
+ try:
+ # Get connections
+ api_response = api_instance.get_application_connections(application_id)
+ print("The response of ApplicationsApi->get_application_connections:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->get_application_connections: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier/client ID for the application. |
+
+### Return type
+
+[**GetConnectionsResponse**](GetConnectionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Application connections successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_application_property_values**
+> GetPropertyValuesResponse get_application_property_values(application_id)
+
+Get property values
+
+Gets properties for an application by client ID.
+
+
+ read:application_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '3b0b5c6c8fcc464fab397f4969b5f482' # str | The application's ID / client ID.
+
+ try:
+ # Get property values
+ api_response = api_instance.get_application_property_values(application_id)
+ print("The response of ApplicationsApi->get_application_property_values:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->get_application_property_values: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The application's ID / client ID. |
+
+### Return type
+
+[**GetPropertyValuesResponse**](GetPropertyValuesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_applications**
+> GetApplicationsResponse get_applications(sort=sort, page_size=page_size, next_token=next_token)
+
+Get applications
+
+Get a list of applications / clients.
+
+
+ read:applications
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_applications_response import GetApplicationsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ sort = 'sort_example' # str | Field and order to sort the result by. (optional)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+
+ try:
+ # Get applications
+ api_response = api_instance.get_applications(sort=sort, page_size=page_size, next_token=next_token)
+ print("The response of ApplicationsApi->get_applications:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->get_applications: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+
+### Return type
+
+[**GetApplicationsResponse**](GetApplicationsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response with a list of applications or an empty list. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **remove_connection**
+> SuccessResponse remove_connection(application_id, connection_id)
+
+Remove connection
+
+Turn off an auth connection for an application
+
+
+ delete:application_connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier/client ID for the application.
+ connection_id = 'conn_0192c16abb53b44277e597d31877ba5b' # str | The identifier for the connection.
+
+ try:
+ # Remove connection
+ api_response = api_instance.remove_connection(application_id, connection_id)
+ print("The response of ApplicationsApi->remove_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->remove_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier/client ID for the application. |
+ **connection_id** | **str**| The identifier for the connection. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully removed. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_application**
+> update_application(application_id, update_application_request=update_application_request)
+
+Update Application
+
+Updates a client's settings. For more information, read [Applications in Kinde](https://docs.kinde.com/build/applications/about-applications)
+
+
+ update:applications
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_application_request import UpdateApplicationRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier for the application.
+ update_application_request = kinde_sdk.UpdateApplicationRequest() # UpdateApplicationRequest | Application details. (optional)
+
+ try:
+ # Update Application
+ api_instance.update_application(application_id, update_application_request=update_application_request)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->update_application: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier for the application. |
+ **update_application_request** | [**UpdateApplicationRequest**](UpdateApplicationRequest.md)| Application details. | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Application successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_application_tokens**
+> SuccessResponse update_application_tokens(application_id, update_application_tokens_request)
+
+Update application tokens
+
+Configure tokens for an application.
+
+ update:application_tokens
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_application_tokens_request import UpdateApplicationTokensRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '20bbffaa4c5e492a962273039d4ae18b' # str | The identifier/client ID for the application.
+ update_application_tokens_request = kinde_sdk.UpdateApplicationTokensRequest() # UpdateApplicationTokensRequest | Application tokens.
+
+ try:
+ # Update application tokens
+ api_response = api_instance.update_application_tokens(application_id, update_application_tokens_request)
+ print("The response of ApplicationsApi->update_application_tokens:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->update_application_tokens: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The identifier/client ID for the application. |
+ **update_application_tokens_request** | [**UpdateApplicationTokensRequest**](UpdateApplicationTokensRequest.md)| Application tokens. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Application tokens successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_applications_property**
+> SuccessResponse update_applications_property(application_id, property_key, update_applications_property_request)
+
+Update property
+
+Update application property value.
+
+
+ update:application_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_applications_property_request import UpdateApplicationsPropertyRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ApplicationsApi(api_client)
+ application_id = '3b0b5c6c8fcc464fab397f4969b5f482' # str | The application's ID / client ID.
+ property_key = 'kp_some_key' # str | The property's key.
+ update_applications_property_request = kinde_sdk.UpdateApplicationsPropertyRequest() # UpdateApplicationsPropertyRequest |
+
+ try:
+ # Update property
+ api_response = api_instance.update_applications_property(application_id, property_key, update_applications_property_request)
+ print("The response of ApplicationsApi->update_applications_property:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ApplicationsApi->update_applications_property: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **application_id** | **str**| The application's ID / client ID. |
+ **property_key** | **str**| The property's key. |
+ **update_applications_property_request** | [**UpdateApplicationsPropertyRequest**](UpdateApplicationsPropertyRequest.md)| |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Property successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/AuthorizeAppApiResponse.md b/docs/AuthorizeAppApiResponse.md
new file mode 100644
index 00000000..8866996d
--- /dev/null
+++ b/docs/AuthorizeAppApiResponse.md
@@ -0,0 +1,32 @@
+# AuthorizeAppApiResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**applications_disconnected** | **List[str]** | | [optional]
+**applications_connected** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.authorize_app_api_response import AuthorizeAppApiResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AuthorizeAppApiResponse from a JSON string
+authorize_app_api_response_instance = AuthorizeAppApiResponse.from_json(json)
+# print the JSON string representation of the object
+print(AuthorizeAppApiResponse.to_json())
+
+# convert the object into a dict
+authorize_app_api_response_dict = authorize_app_api_response_instance.to_dict()
+# create an instance of AuthorizeAppApiResponse from a dict
+authorize_app_api_response_from_dict = AuthorizeAppApiResponse.from_dict(authorize_app_api_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingAgreementsApi.md b/docs/BillingAgreementsApi.md
new file mode 100644
index 00000000..408d628a
--- /dev/null
+++ b/docs/BillingAgreementsApi.md
@@ -0,0 +1,191 @@
+# kinde_sdk.BillingAgreementsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_billing_agreement**](BillingAgreementsApi.md#create_billing_agreement) | **POST** /api/v1/billing/agreements | Create billing agreement
+[**get_billing_agreements**](BillingAgreementsApi.md#get_billing_agreements) | **GET** /api/v1/billing/agreements | Get billing agreements
+
+
+# **create_billing_agreement**
+> SuccessResponse create_billing_agreement(create_billing_agreement_request)
+
+Create billing agreement
+
+Creates a new billing agreement based on the plan code passed, and cancels the customer's existing agreements
+
+
+ create:billing_agreements
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_billing_agreement_request import CreateBillingAgreementRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BillingAgreementsApi(api_client)
+ create_billing_agreement_request = kinde_sdk.CreateBillingAgreementRequest() # CreateBillingAgreementRequest | New agreement request values
+
+ try:
+ # Create billing agreement
+ api_response = api_instance.create_billing_agreement(create_billing_agreement_request)
+ print("The response of BillingAgreementsApi->create_billing_agreement:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingAgreementsApi->create_billing_agreement: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_billing_agreement_request** | [**CreateBillingAgreementRequest**](CreateBillingAgreementRequest.md)| New agreement request values |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Billing agreement successfully changed | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_billing_agreements**
+> GetBillingAgreementsResponse get_billing_agreements(customer_id, page_size=page_size, starting_after=starting_after, ending_before=ending_before, feature_code=feature_code)
+
+Get billing agreements
+
+Returns all the agreements a billing customer currently has access to
+
+
+ read:billing_agreements
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_billing_agreements_response import GetBillingAgreementsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BillingAgreementsApi(api_client)
+ customer_id = 'customer_0195ac80a14c2ca2cec97d026d864de0' # str | The ID of the billing customer to retrieve agreements for
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'starting_after_example' # str | The ID of the billing agreement to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the billing agreement to end before. (optional)
+ feature_code = 'feature_code_example' # str | The feature code to filter by agreements only containing that feature (optional)
+
+ try:
+ # Get billing agreements
+ api_response = api_instance.get_billing_agreements(customer_id, page_size=page_size, starting_after=starting_after, ending_before=ending_before, feature_code=feature_code)
+ print("The response of BillingAgreementsApi->get_billing_agreements:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingAgreementsApi->get_billing_agreements: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **customer_id** | **str**| The ID of the billing customer to retrieve agreements for |
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the billing agreement to start after. | [optional]
+ **ending_before** | **str**| The ID of the billing agreement to end before. | [optional]
+ **feature_code** | **str**| The feature code to filter by agreements only containing that feature | [optional]
+
+### Return type
+
+[**GetBillingAgreementsResponse**](GetBillingAgreementsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Billing agreements successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/BillingApi.md b/docs/BillingApi.md
new file mode 100644
index 00000000..32fa4c44
--- /dev/null
+++ b/docs/BillingApi.md
@@ -0,0 +1,92 @@
+# kinde_sdk.BillingApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_entitlements**](BillingApi.md#get_entitlements) | **GET** /account_api/v1/entitlements | Get entitlements
+
+
+# **get_entitlements**
+> GetEntitlementsResponse get_entitlements(page_size=page_size, starting_after=starting_after)
+
+Get entitlements
+
+Returns all the entitlements a the user currently has access to
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_entitlements_response import GetEntitlementsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BillingApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'entitlement_1234567890abcdef' # str | The ID of the entitlement to start after. (optional)
+
+ try:
+ # Get entitlements
+ api_response = api_instance.get_entitlements(page_size=page_size, starting_after=starting_after)
+ print("The response of BillingApi->get_entitlements:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_entitlements: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the entitlement to start after. | [optional]
+
+### Return type
+
+[**GetEntitlementsResponse**](GetEntitlementsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Billing entitlements successfully retrieved. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/BillingEntitlementsApi.md b/docs/BillingEntitlementsApi.md
new file mode 100644
index 00000000..93ee793f
--- /dev/null
+++ b/docs/BillingEntitlementsApi.md
@@ -0,0 +1,105 @@
+# kinde_sdk.BillingEntitlementsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_billing_entitlements**](BillingEntitlementsApi.md#get_billing_entitlements) | **GET** /api/v1/billing/entitlements | Get billing entitlements
+
+
+# **get_billing_entitlements**
+> GetBillingEntitlementsResponse get_billing_entitlements(customer_id, page_size=page_size, starting_after=starting_after, ending_before=ending_before, max_value=max_value, expand=expand)
+
+Get billing entitlements
+
+Returns all the entitlements a billing customer currently has access to
+
+
+ read:billing_entitlements
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_billing_entitlements_response import GetBillingEntitlementsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BillingEntitlementsApi(api_client)
+ customer_id = 'customer_id_example' # str | The ID of the billing customer to retrieve entitlements for
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'starting_after_example' # str | The ID of the billing entitlement to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the billing entitlement to end before. (optional)
+ max_value = 'max_value_example' # str | When the maximum limit of an entitlement is null, this value is returned as the maximum limit (optional)
+ expand = 'expand_example' # str | Specify additional plan data to retrieve. Use \"plans\". (optional)
+
+ try:
+ # Get billing entitlements
+ api_response = api_instance.get_billing_entitlements(customer_id, page_size=page_size, starting_after=starting_after, ending_before=ending_before, max_value=max_value, expand=expand)
+ print("The response of BillingEntitlementsApi->get_billing_entitlements:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingEntitlementsApi->get_billing_entitlements: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **customer_id** | **str**| The ID of the billing customer to retrieve entitlements for |
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the billing entitlement to start after. | [optional]
+ **ending_before** | **str**| The ID of the billing entitlement to end before. | [optional]
+ **max_value** | **str**| When the maximum limit of an entitlement is null, this value is returned as the maximum limit | [optional]
+ **expand** | **str**| Specify additional plan data to retrieve. Use \"plans\". | [optional]
+
+### Return type
+
+[**GetBillingEntitlementsResponse**](GetBillingEntitlementsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Billing entitlements successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/BillingMeterUsageApi.md b/docs/BillingMeterUsageApi.md
new file mode 100644
index 00000000..a18afd58
--- /dev/null
+++ b/docs/BillingMeterUsageApi.md
@@ -0,0 +1,96 @@
+# kinde_sdk.BillingMeterUsageApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_meter_usage_record**](BillingMeterUsageApi.md#create_meter_usage_record) | **POST** /api/v1/billing/meter_usage | Create meter usage record
+
+
+# **create_meter_usage_record**
+> CreateMeterUsageRecordResponse create_meter_usage_record(create_meter_usage_record_request)
+
+Create meter usage record
+
+Create a new meter usage record
+
+
+ create:meter_usage
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_meter_usage_record_request import CreateMeterUsageRecordRequest
+from kinde_sdk.models.create_meter_usage_record_response import CreateMeterUsageRecordResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BillingMeterUsageApi(api_client)
+ create_meter_usage_record_request = kinde_sdk.CreateMeterUsageRecordRequest() # CreateMeterUsageRecordRequest | Meter usage record
+
+ try:
+ # Create meter usage record
+ api_response = api_instance.create_meter_usage_record(create_meter_usage_record_request)
+ print("The response of BillingMeterUsageApi->create_meter_usage_record:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingMeterUsageApi->create_meter_usage_record: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_meter_usage_record_request** | [**CreateMeterUsageRecordRequest**](CreateMeterUsageRecordRequest.md)| Meter usage record |
+
+### Return type
+
+[**CreateMeterUsageRecordResponse**](CreateMeterUsageRecordResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Meter usage record successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/BusinessApi.md b/docs/BusinessApi.md
new file mode 100644
index 00000000..bbd07537
--- /dev/null
+++ b/docs/BusinessApi.md
@@ -0,0 +1,179 @@
+# kinde_sdk.BusinessApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_business**](BusinessApi.md#get_business) | **GET** /api/v1/business | Get business
+[**update_business**](BusinessApi.md#update_business) | **PATCH** /api/v1/business | Update business
+
+
+# **get_business**
+> GetBusinessResponse get_business()
+
+Get business
+
+Get your business details.
+
+
+ read:businesses
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_business_response import GetBusinessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BusinessApi(api_client)
+
+ try:
+ # Get business
+ api_response = api_instance.get_business()
+ print("The response of BusinessApi->get_business:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BusinessApi->get_business: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetBusinessResponse**](GetBusinessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Your business details. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_business**
+> SuccessResponse update_business(update_business_request)
+
+Update business
+
+Update your business details.
+
+
+ update:businesses
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_business_request import UpdateBusinessRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.BusinessApi(api_client)
+ update_business_request = kinde_sdk.UpdateBusinessRequest() # UpdateBusinessRequest | The business details to update.
+
+ try:
+ # Update business
+ api_response = api_instance.update_business(update_business_request)
+ print("The response of BusinessApi->update_business:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BusinessApi->update_business: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **update_business_request** | [**UpdateBusinessRequest**](UpdateBusinessRequest.md)| The business details to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Business successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/CallbacksApi.md b/docs/CallbacksApi.md
new file mode 100644
index 00000000..703117a5
--- /dev/null
+++ b/docs/CallbacksApi.md
@@ -0,0 +1,720 @@
+# kinde_sdk.CallbacksApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_logout_redirect_urls**](CallbacksApi.md#add_logout_redirect_urls) | **POST** /api/v1/applications/{app_id}/auth_logout_urls | Add logout redirect URLs
+[**add_redirect_callback_urls**](CallbacksApi.md#add_redirect_callback_urls) | **POST** /api/v1/applications/{app_id}/auth_redirect_urls | Add Redirect Callback URLs
+[**delete_callback_urls**](CallbacksApi.md#delete_callback_urls) | **DELETE** /api/v1/applications/{app_id}/auth_redirect_urls | Delete Callback URLs
+[**delete_logout_urls**](CallbacksApi.md#delete_logout_urls) | **DELETE** /api/v1/applications/{app_id}/auth_logout_urls | Delete Logout URLs
+[**get_callback_urls**](CallbacksApi.md#get_callback_urls) | **GET** /api/v1/applications/{app_id}/auth_redirect_urls | List Callback URLs
+[**get_logout_urls**](CallbacksApi.md#get_logout_urls) | **GET** /api/v1/applications/{app_id}/auth_logout_urls | List logout URLs
+[**replace_logout_redirect_urls**](CallbacksApi.md#replace_logout_redirect_urls) | **PUT** /api/v1/applications/{app_id}/auth_logout_urls | Replace logout redirect URls
+[**replace_redirect_callback_urls**](CallbacksApi.md#replace_redirect_callback_urls) | **PUT** /api/v1/applications/{app_id}/auth_redirect_urls | Replace Redirect Callback URLs
+
+
+# **add_logout_redirect_urls**
+> SuccessResponse add_logout_redirect_urls(app_id, replace_logout_redirect_urls_request)
+
+Add logout redirect URLs
+
+Add additional logout redirect URLs.
+
+
+ create:application_logout_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+ replace_logout_redirect_urls_request = kinde_sdk.ReplaceLogoutRedirectURLsRequest() # ReplaceLogoutRedirectURLsRequest | Callback details.
+
+ try:
+ # Add logout redirect URLs
+ api_response = api_instance.add_logout_redirect_urls(app_id, replace_logout_redirect_urls_request)
+ print("The response of CallbacksApi->add_logout_redirect_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->add_logout_redirect_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+ **replace_logout_redirect_urls_request** | [**ReplaceLogoutRedirectURLsRequest**](ReplaceLogoutRedirectURLsRequest.md)| Callback details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Logout URLs successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **add_redirect_callback_urls**
+> SuccessResponse add_redirect_callback_urls(app_id, replace_redirect_callback_urls_request)
+
+Add Redirect Callback URLs
+
+Add additional redirect callback URLs.
+
+
+ create:applications_redirect_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+ replace_redirect_callback_urls_request = kinde_sdk.ReplaceRedirectCallbackURLsRequest() # ReplaceRedirectCallbackURLsRequest | Callback details.
+
+ try:
+ # Add Redirect Callback URLs
+ api_response = api_instance.add_redirect_callback_urls(app_id, replace_redirect_callback_urls_request)
+ print("The response of CallbacksApi->add_redirect_callback_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->add_redirect_callback_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+ **replace_redirect_callback_urls_request** | [**ReplaceRedirectCallbackURLsRequest**](ReplaceRedirectCallbackURLsRequest.md)| Callback details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Callbacks successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_callback_urls**
+> SuccessResponse delete_callback_urls(app_id, urls)
+
+Delete Callback URLs
+
+Delete callback URLs.
+
+
+ delete:applications_redirect_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+ urls = 'urls_example' # str | Urls to delete, comma separated and url encoded.
+
+ try:
+ # Delete Callback URLs
+ api_response = api_instance.delete_callback_urls(app_id, urls)
+ print("The response of CallbacksApi->delete_callback_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->delete_callback_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+ **urls** | **str**| Urls to delete, comma separated and url encoded. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Callback URLs successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_logout_urls**
+> SuccessResponse delete_logout_urls(app_id, urls)
+
+Delete Logout URLs
+
+Delete logout URLs.
+
+
+ delete:application_logout_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+ urls = 'urls_example' # str | Urls to delete, comma separated and url encoded.
+
+ try:
+ # Delete Logout URLs
+ api_response = api_instance.delete_logout_urls(app_id, urls)
+ print("The response of CallbacksApi->delete_logout_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->delete_logout_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+ **urls** | **str**| Urls to delete, comma separated and url encoded. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Logout URLs successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_callback_urls**
+> RedirectCallbackUrls get_callback_urls(app_id)
+
+List Callback URLs
+
+Returns an application's redirect callback URLs.
+
+
+ read:applications_redirect_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+
+ try:
+ # List Callback URLs
+ api_response = api_instance.get_callback_urls(app_id)
+ print("The response of CallbacksApi->get_callback_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->get_callback_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+
+### Return type
+
+[**RedirectCallbackUrls**](RedirectCallbackUrls.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Callback URLs successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_logout_urls**
+> LogoutRedirectUrls get_logout_urls(app_id)
+
+List logout URLs
+
+Returns an application's logout redirect URLs.
+
+
+ read:application_logout_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.logout_redirect_urls import LogoutRedirectUrls
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+
+ try:
+ # List logout URLs
+ api_response = api_instance.get_logout_urls(app_id)
+ print("The response of CallbacksApi->get_logout_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->get_logout_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+
+### Return type
+
+[**LogoutRedirectUrls**](LogoutRedirectUrls.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Logout URLs successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **replace_logout_redirect_urls**
+> SuccessResponse replace_logout_redirect_urls(app_id, replace_logout_redirect_urls_request)
+
+Replace logout redirect URls
+
+Replace all logout redirect URLs.
+
+
+ update:application_logout_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+ replace_logout_redirect_urls_request = kinde_sdk.ReplaceLogoutRedirectURLsRequest() # ReplaceLogoutRedirectURLsRequest | Callback details.
+
+ try:
+ # Replace logout redirect URls
+ api_response = api_instance.replace_logout_redirect_urls(app_id, replace_logout_redirect_urls_request)
+ print("The response of CallbacksApi->replace_logout_redirect_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->replace_logout_redirect_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+ **replace_logout_redirect_urls_request** | [**ReplaceLogoutRedirectURLsRequest**](ReplaceLogoutRedirectURLsRequest.md)| Callback details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Logout URLs successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **replace_redirect_callback_urls**
+> SuccessResponse replace_redirect_callback_urls(app_id, replace_redirect_callback_urls_request)
+
+Replace Redirect Callback URLs
+
+Replace all redirect callback URLs.
+
+
+ update:applications_redirect_uris
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.CallbacksApi(api_client)
+ app_id = 'app_id_example' # str | The identifier for the application.
+ replace_redirect_callback_urls_request = kinde_sdk.ReplaceRedirectCallbackURLsRequest() # ReplaceRedirectCallbackURLsRequest | Callback details.
+
+ try:
+ # Replace Redirect Callback URLs
+ api_response = api_instance.replace_redirect_callback_urls(app_id, replace_redirect_callback_urls_request)
+ print("The response of CallbacksApi->replace_redirect_callback_urls:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CallbacksApi->replace_redirect_callback_urls: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **app_id** | **str**| The identifier for the application. |
+ **replace_redirect_callback_urls_request** | [**ReplaceRedirectCallbackURLsRequest**](ReplaceRedirectCallbackURLsRequest.md)| Callback details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Callbacks successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/Category.md b/docs/Category.md
new file mode 100644
index 00000000..2ea0b629
--- /dev/null
+++ b/docs/Category.md
@@ -0,0 +1,30 @@
+# Category
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.category import Category
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Category from a JSON string
+category_instance = Category.from_json(json)
+# print the JSON string representation of the object
+print(Category.to_json())
+
+# convert the object into a dict
+category_dict = category_instance.to_dict()
+# create an instance of Category from a dict
+category_from_dict = Category.from_dict(category_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConnectedAppsAccessToken.md b/docs/ConnectedAppsAccessToken.md
new file mode 100644
index 00000000..71abff1c
--- /dev/null
+++ b/docs/ConnectedAppsAccessToken.md
@@ -0,0 +1,30 @@
+# ConnectedAppsAccessToken
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**access_token** | **str** | The access token to access a third-party provider. | [optional]
+**access_token_expiry** | **str** | The date and time that the access token expires. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.connected_apps_access_token import ConnectedAppsAccessToken
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ConnectedAppsAccessToken from a JSON string
+connected_apps_access_token_instance = ConnectedAppsAccessToken.from_json(json)
+# print the JSON string representation of the object
+print(ConnectedAppsAccessToken.to_json())
+
+# convert the object into a dict
+connected_apps_access_token_dict = connected_apps_access_token_instance.to_dict()
+# create an instance of ConnectedAppsAccessToken from a dict
+connected_apps_access_token_from_dict = ConnectedAppsAccessToken.from_dict(connected_apps_access_token_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConnectedAppsApi.md b/docs/ConnectedAppsApi.md
new file mode 100644
index 00000000..62596fab
--- /dev/null
+++ b/docs/ConnectedAppsApi.md
@@ -0,0 +1,277 @@
+# kinde_sdk.ConnectedAppsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_connected_app_auth_url**](ConnectedAppsApi.md#get_connected_app_auth_url) | **GET** /api/v1/connected_apps/auth_url | Get Connected App URL
+[**get_connected_app_token**](ConnectedAppsApi.md#get_connected_app_token) | **GET** /api/v1/connected_apps/token | Get Connected App Token
+[**revoke_connected_app_token**](ConnectedAppsApi.md#revoke_connected_app_token) | **POST** /api/v1/connected_apps/revoke | Revoke Connected App Token
+
+
+# **get_connected_app_auth_url**
+> ConnectedAppsAuthUrl get_connected_app_auth_url(key_code_ref, user_id=user_id, org_code=org_code, override_callback_url=override_callback_url)
+
+Get Connected App URL
+
+Get a URL that authenticates and authorizes a user to a third-party connected app.
+
+
+ read:connected_apps
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.connected_apps_auth_url import ConnectedAppsAuthUrl
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectedAppsApi(api_client)
+ key_code_ref = 'key_code_ref_example' # str | The unique key code reference of the connected app to authenticate against.
+ user_id = 'user_id_example' # str | The id of the user that needs to authenticate to the third-party connected app. (optional)
+ org_code = 'org_code_example' # str | The code of the Kinde organization that needs to authenticate to the third-party connected app. (optional)
+ override_callback_url = 'override_callback_url_example' # str | A URL that overrides the default callback URL setup in your connected app configuration (optional)
+
+ try:
+ # Get Connected App URL
+ api_response = api_instance.get_connected_app_auth_url(key_code_ref, user_id=user_id, org_code=org_code, override_callback_url=override_callback_url)
+ print("The response of ConnectedAppsApi->get_connected_app_auth_url:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectedAppsApi->get_connected_app_auth_url: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **key_code_ref** | **str**| The unique key code reference of the connected app to authenticate against. |
+ **user_id** | **str**| The id of the user that needs to authenticate to the third-party connected app. | [optional]
+ **org_code** | **str**| The code of the Kinde organization that needs to authenticate to the third-party connected app. | [optional]
+ **override_callback_url** | **str**| A URL that overrides the default callback URL setup in your connected app configuration | [optional]
+
+### Return type
+
+[**ConnectedAppsAuthUrl**](ConnectedAppsAuthUrl.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A URL that can be used to authenticate and a session id to identify this authentication session. | - |
+**400** | Error retrieving connected app auth url. | - |
+**403** | Invalid credentials. | - |
+**404** | Error retrieving connected app auth url. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_connected_app_token**
+> ConnectedAppsAccessToken get_connected_app_token(session_id)
+
+Get Connected App Token
+
+Get an access token that can be used to call the third-party provider linked to the connected app.
+
+
+ read:connected_apps
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.connected_apps_access_token import ConnectedAppsAccessToken
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectedAppsApi(api_client)
+ session_id = 'session_id_example' # str | The unique sesssion id representing the login session of a user.
+
+ try:
+ # Get Connected App Token
+ api_response = api_instance.get_connected_app_token(session_id)
+ print("The response of ConnectedAppsApi->get_connected_app_token:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectedAppsApi->get_connected_app_token: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **session_id** | **str**| The unique sesssion id representing the login session of a user. |
+
+### Return type
+
+[**ConnectedAppsAccessToken**](ConnectedAppsAccessToken.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | An access token that can be used to query a third-party provider, as well as the token's expiry time. | - |
+**400** | The session id provided points to an invalid session. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **revoke_connected_app_token**
+> SuccessResponse revoke_connected_app_token(session_id)
+
+Revoke Connected App Token
+
+Revoke the tokens linked to the connected app session.
+
+
+ create:connected_apps
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectedAppsApi(api_client)
+ session_id = 'session_id_example' # str | The unique sesssion id representing the login session of a user.
+
+ try:
+ # Revoke Connected App Token
+ api_response = api_instance.revoke_connected_app_token(session_id)
+ print("The response of ConnectedAppsApi->revoke_connected_app_token:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectedAppsApi->revoke_connected_app_token: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **session_id** | **str**| The unique sesssion id representing the login session of a user. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | An access token that can be used to query a third-party provider, as well as the token's expiry time. | - |
+**400** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**405** | Invalid HTTP method used. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/ConnectedAppsAuthUrl.md b/docs/ConnectedAppsAuthUrl.md
new file mode 100644
index 00000000..9a5be60b
--- /dev/null
+++ b/docs/ConnectedAppsAuthUrl.md
@@ -0,0 +1,30 @@
+# ConnectedAppsAuthUrl
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**url** | **str** | A URL that is used to authenticate an end-user against a connected app. | [optional]
+**session_id** | **str** | A unique identifier for the login session. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.connected_apps_auth_url import ConnectedAppsAuthUrl
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ConnectedAppsAuthUrl from a JSON string
+connected_apps_auth_url_instance = ConnectedAppsAuthUrl.from_json(json)
+# print the JSON string representation of the object
+print(ConnectedAppsAuthUrl.to_json())
+
+# convert the object into a dict
+connected_apps_auth_url_dict = connected_apps_auth_url_instance.to_dict()
+# create an instance of ConnectedAppsAuthUrl from a dict
+connected_apps_auth_url_from_dict = ConnectedAppsAuthUrl.from_dict(connected_apps_auth_url_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Connection.md b/docs/Connection.md
new file mode 100644
index 00000000..43f6b35f
--- /dev/null
+++ b/docs/Connection.md
@@ -0,0 +1,31 @@
+# Connection
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**connection** | [**ConnectionConnection**](ConnectionConnection.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.connection import Connection
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Connection from a JSON string
+connection_instance = Connection.from_json(json)
+# print the JSON string representation of the object
+print(Connection.to_json())
+
+# convert the object into a dict
+connection_dict = connection_instance.to_dict()
+# create an instance of Connection from a dict
+connection_from_dict = Connection.from_dict(connection_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConnectionConnection.md b/docs/ConnectionConnection.md
new file mode 100644
index 00000000..6222511d
--- /dev/null
+++ b/docs/ConnectionConnection.md
@@ -0,0 +1,32 @@
+# ConnectionConnection
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | | [optional]
+**display_name** | **str** | | [optional]
+**strategy** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.connection_connection import ConnectionConnection
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ConnectionConnection from a JSON string
+connection_connection_instance = ConnectionConnection.from_json(json)
+# print the JSON string representation of the object
+print(ConnectionConnection.to_json())
+
+# convert the object into a dict
+connection_connection_dict = connection_connection_instance.to_dict()
+# create an instance of ConnectionConnection from a dict
+connection_connection_from_dict = ConnectionConnection.from_dict(connection_connection_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConnectionsApi.md b/docs/ConnectionsApi.md
new file mode 100644
index 00000000..717f9e72
--- /dev/null
+++ b/docs/ConnectionsApi.md
@@ -0,0 +1,546 @@
+# kinde_sdk.ConnectionsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_connection**](ConnectionsApi.md#create_connection) | **POST** /api/v1/connections | Create Connection
+[**delete_connection**](ConnectionsApi.md#delete_connection) | **DELETE** /api/v1/connections/{connection_id} | Delete Connection
+[**get_connection**](ConnectionsApi.md#get_connection) | **GET** /api/v1/connections/{connection_id} | Get Connection
+[**get_connections**](ConnectionsApi.md#get_connections) | **GET** /api/v1/connections | Get connections
+[**replace_connection**](ConnectionsApi.md#replace_connection) | **PUT** /api/v1/connections/{connection_id} | Replace Connection
+[**update_connection**](ConnectionsApi.md#update_connection) | **PATCH** /api/v1/connections/{connection_id} | Update Connection
+
+
+# **create_connection**
+> CreateConnectionResponse create_connection(create_connection_request)
+
+Create Connection
+
+Create Connection.
+
+
+ create:connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_connection_request import CreateConnectionRequest
+from kinde_sdk.models.create_connection_response import CreateConnectionResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectionsApi(api_client)
+ create_connection_request = kinde_sdk.CreateConnectionRequest() # CreateConnectionRequest | Connection details.
+
+ try:
+ # Create Connection
+ api_response = api_instance.create_connection(create_connection_request)
+ print("The response of ConnectionsApi->create_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectionsApi->create_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_connection_request** | [**CreateConnectionRequest**](CreateConnectionRequest.md)| Connection details. |
+
+### Return type
+
+[**CreateConnectionResponse**](CreateConnectionResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Connection successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_connection**
+> SuccessResponse delete_connection(connection_id)
+
+Delete Connection
+
+Delete connection.
+
+
+ delete:connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectionsApi(api_client)
+ connection_id = 'connection_id_example' # str | The identifier for the connection.
+
+ try:
+ # Delete Connection
+ api_response = api_instance.delete_connection(connection_id)
+ print("The response of ConnectionsApi->delete_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectionsApi->delete_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **connection_id** | **str**| The identifier for the connection. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_connection**
+> Connection get_connection(connection_id)
+
+Get Connection
+
+Get Connection.
+
+
+ read:connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.connection import Connection
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectionsApi(api_client)
+ connection_id = 'connection_id_example' # str | The unique identifier for the connection.
+
+ try:
+ # Get Connection
+ api_response = api_instance.get_connection(connection_id)
+ print("The response of ConnectionsApi->get_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectionsApi->get_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **connection_id** | **str**| The unique identifier for the connection. |
+
+### Return type
+
+[**Connection**](Connection.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_connections**
+> GetConnectionsResponse get_connections(page_size=page_size, home_realm_domain=home_realm_domain, starting_after=starting_after, ending_before=ending_before)
+
+Get connections
+
+Returns a list of authentication connections. Optionally you can filter this by a home realm domain.
+
+
+ read:connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectionsApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ home_realm_domain = 'myapp.com' # str | Filter the results by the home realm domain. (optional)
+ starting_after = 'starting_after_example' # str | The ID of the connection to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the connection to end before. (optional)
+
+ try:
+ # Get connections
+ api_response = api_instance.get_connections(page_size=page_size, home_realm_domain=home_realm_domain, starting_after=starting_after, ending_before=ending_before)
+ print("The response of ConnectionsApi->get_connections:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectionsApi->get_connections: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **home_realm_domain** | **str**| Filter the results by the home realm domain. | [optional]
+ **starting_after** | **str**| The ID of the connection to start after. | [optional]
+ **ending_before** | **str**| The ID of the connection to end before. | [optional]
+
+### Return type
+
+[**GetConnectionsResponse**](GetConnectionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connections successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **replace_connection**
+> SuccessResponse replace_connection(connection_id, replace_connection_request)
+
+Replace Connection
+
+Replace Connection Config.
+
+
+ update:connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_connection_request import ReplaceConnectionRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectionsApi(api_client)
+ connection_id = 'connection_id_example' # str | The unique identifier for the connection.
+ replace_connection_request = kinde_sdk.ReplaceConnectionRequest() # ReplaceConnectionRequest | The complete connection configuration to replace the existing one.
+
+ try:
+ # Replace Connection
+ api_response = api_instance.replace_connection(connection_id, replace_connection_request)
+ print("The response of ConnectionsApi->replace_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectionsApi->replace_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **connection_id** | **str**| The unique identifier for the connection. |
+ **replace_connection_request** | [**ReplaceConnectionRequest**](ReplaceConnectionRequest.md)| The complete connection configuration to replace the existing one. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_connection**
+> SuccessResponse update_connection(connection_id, update_connection_request)
+
+Update Connection
+
+Update Connection.
+
+
+ update:connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_connection_request import UpdateConnectionRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.ConnectionsApi(api_client)
+ connection_id = 'connection_id_example' # str | The unique identifier for the connection.
+ update_connection_request = kinde_sdk.UpdateConnectionRequest() # UpdateConnectionRequest | The fields of the connection to update.
+
+ try:
+ # Update Connection
+ api_response = api_instance.update_connection(connection_id, update_connection_request)
+ print("The response of ConnectionsApi->update_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ConnectionsApi->update_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **connection_id** | **str**| The unique identifier for the connection. |
+ **update_connection_request** | [**UpdateConnectionRequest**](UpdateConnectionRequest.md)| The fields of the connection to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/CreateApiScopesResponse.md b/docs/CreateApiScopesResponse.md
new file mode 100644
index 00000000..4a0c041a
--- /dev/null
+++ b/docs/CreateApiScopesResponse.md
@@ -0,0 +1,31 @@
+# CreateApiScopesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | A Kinde generated message. | [optional]
+**code** | **str** | A Kinde generated status code. | [optional]
+**scope** | [**CreateApiScopesResponseScope**](CreateApiScopesResponseScope.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_api_scopes_response import CreateApiScopesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApiScopesResponse from a JSON string
+create_api_scopes_response_instance = CreateApiScopesResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateApiScopesResponse.to_json())
+
+# convert the object into a dict
+create_api_scopes_response_dict = create_api_scopes_response_instance.to_dict()
+# create an instance of CreateApiScopesResponse from a dict
+create_api_scopes_response_from_dict = CreateApiScopesResponse.from_dict(create_api_scopes_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateApiScopesResponseScope.md b/docs/CreateApiScopesResponseScope.md
new file mode 100644
index 00000000..7331bf1a
--- /dev/null
+++ b/docs/CreateApiScopesResponseScope.md
@@ -0,0 +1,29 @@
+# CreateApiScopesResponseScope
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the API scope. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_api_scopes_response_scope import CreateApiScopesResponseScope
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApiScopesResponseScope from a JSON string
+create_api_scopes_response_scope_instance = CreateApiScopesResponseScope.from_json(json)
+# print the JSON string representation of the object
+print(CreateApiScopesResponseScope.to_json())
+
+# convert the object into a dict
+create_api_scopes_response_scope_dict = create_api_scopes_response_scope_instance.to_dict()
+# create an instance of CreateApiScopesResponseScope from a dict
+create_api_scopes_response_scope_from_dict = CreateApiScopesResponseScope.from_dict(create_api_scopes_response_scope_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateApisResponse.md b/docs/CreateApisResponse.md
new file mode 100644
index 00000000..cc5f9037
--- /dev/null
+++ b/docs/CreateApisResponse.md
@@ -0,0 +1,31 @@
+# CreateApisResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | A Kinde generated message. | [optional]
+**code** | **str** | A Kinde generated status code. | [optional]
+**api** | [**CreateApisResponseApi**](CreateApisResponseApi.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_apis_response import CreateApisResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApisResponse from a JSON string
+create_apis_response_instance = CreateApisResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateApisResponse.to_json())
+
+# convert the object into a dict
+create_apis_response_dict = create_apis_response_instance.to_dict()
+# create an instance of CreateApisResponse from a dict
+create_apis_response_from_dict = CreateApisResponse.from_dict(create_apis_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateApisResponseApi.md b/docs/CreateApisResponseApi.md
new file mode 100644
index 00000000..7d6b1922
--- /dev/null
+++ b/docs/CreateApisResponseApi.md
@@ -0,0 +1,29 @@
+# CreateApisResponseApi
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the API. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_apis_response_api import CreateApisResponseApi
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApisResponseApi from a JSON string
+create_apis_response_api_instance = CreateApisResponseApi.from_json(json)
+# print the JSON string representation of the object
+print(CreateApisResponseApi.to_json())
+
+# convert the object into a dict
+create_apis_response_api_dict = create_apis_response_api_instance.to_dict()
+# create an instance of CreateApisResponseApi from a dict
+create_apis_response_api_from_dict = CreateApisResponseApi.from_dict(create_apis_response_api_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateApplicationRequest.md b/docs/CreateApplicationRequest.md
new file mode 100644
index 00000000..c5bad0ec
--- /dev/null
+++ b/docs/CreateApplicationRequest.md
@@ -0,0 +1,30 @@
+# CreateApplicationRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The application's name. |
+**type** | **str** | The application's type. Use `reg` for regular server rendered applications, `spa` for single-page applications, and `m2m` for machine-to-machine applications. |
+
+## Example
+
+```python
+from kinde_sdk.models.create_application_request import CreateApplicationRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApplicationRequest from a JSON string
+create_application_request_instance = CreateApplicationRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateApplicationRequest.to_json())
+
+# convert the object into a dict
+create_application_request_dict = create_application_request_instance.to_dict()
+# create an instance of CreateApplicationRequest from a dict
+create_application_request_from_dict = CreateApplicationRequest.from_dict(create_application_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateApplicationResponse.md b/docs/CreateApplicationResponse.md
new file mode 100644
index 00000000..e92c54bf
--- /dev/null
+++ b/docs/CreateApplicationResponse.md
@@ -0,0 +1,31 @@
+# CreateApplicationResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**application** | [**CreateApplicationResponseApplication**](CreateApplicationResponseApplication.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_application_response import CreateApplicationResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApplicationResponse from a JSON string
+create_application_response_instance = CreateApplicationResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateApplicationResponse.to_json())
+
+# convert the object into a dict
+create_application_response_dict = create_application_response_instance.to_dict()
+# create an instance of CreateApplicationResponse from a dict
+create_application_response_from_dict = CreateApplicationResponse.from_dict(create_application_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateApplicationResponseApplication.md b/docs/CreateApplicationResponseApplication.md
new file mode 100644
index 00000000..3303f075
--- /dev/null
+++ b/docs/CreateApplicationResponseApplication.md
@@ -0,0 +1,31 @@
+# CreateApplicationResponseApplication
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The application's identifier. | [optional]
+**client_id** | **str** | The application's client ID. | [optional]
+**client_secret** | **str** | The application's client secret. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_application_response_application import CreateApplicationResponseApplication
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateApplicationResponseApplication from a JSON string
+create_application_response_application_instance = CreateApplicationResponseApplication.from_json(json)
+# print the JSON string representation of the object
+print(CreateApplicationResponseApplication.to_json())
+
+# convert the object into a dict
+create_application_response_application_dict = create_application_response_application_instance.to_dict()
+# create an instance of CreateApplicationResponseApplication from a dict
+create_application_response_application_from_dict = CreateApplicationResponseApplication.from_dict(create_application_response_application_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateBillingAgreementRequest.md b/docs/CreateBillingAgreementRequest.md
new file mode 100644
index 00000000..35206e23
--- /dev/null
+++ b/docs/CreateBillingAgreementRequest.md
@@ -0,0 +1,32 @@
+# CreateBillingAgreementRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer_id** | **str** | The ID of the billing customer to create a new agreement for |
+**plan_code** | **str** | The code of the billing plan the new agreement will be based on |
+**is_invoice_now** | **bool** | Generate a final invoice for any un-invoiced metered usage. | [optional]
+**is_prorate** | **bool** | Generate a proration invoice item that credits remaining unused features. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_billing_agreement_request import CreateBillingAgreementRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateBillingAgreementRequest from a JSON string
+create_billing_agreement_request_instance = CreateBillingAgreementRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateBillingAgreementRequest.to_json())
+
+# convert the object into a dict
+create_billing_agreement_request_dict = create_billing_agreement_request_instance.to_dict()
+# create an instance of CreateBillingAgreementRequest from a dict
+create_billing_agreement_request_from_dict = CreateBillingAgreementRequest.from_dict(create_billing_agreement_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateCategoryRequest.md b/docs/CreateCategoryRequest.md
new file mode 100644
index 00000000..32493748
--- /dev/null
+++ b/docs/CreateCategoryRequest.md
@@ -0,0 +1,30 @@
+# CreateCategoryRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The name of the category. |
+**context** | **str** | The context that the category applies to. |
+
+## Example
+
+```python
+from kinde_sdk.models.create_category_request import CreateCategoryRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateCategoryRequest from a JSON string
+create_category_request_instance = CreateCategoryRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateCategoryRequest.to_json())
+
+# convert the object into a dict
+create_category_request_dict = create_category_request_instance.to_dict()
+# create an instance of CreateCategoryRequest from a dict
+create_category_request_from_dict = CreateCategoryRequest.from_dict(create_category_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateCategoryResponse.md b/docs/CreateCategoryResponse.md
new file mode 100644
index 00000000..2a5ce546
--- /dev/null
+++ b/docs/CreateCategoryResponse.md
@@ -0,0 +1,31 @@
+# CreateCategoryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**category** | [**CreateCategoryResponseCategory**](CreateCategoryResponseCategory.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_category_response import CreateCategoryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateCategoryResponse from a JSON string
+create_category_response_instance = CreateCategoryResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateCategoryResponse.to_json())
+
+# convert the object into a dict
+create_category_response_dict = create_category_response_instance.to_dict()
+# create an instance of CreateCategoryResponse from a dict
+create_category_response_from_dict = CreateCategoryResponse.from_dict(create_category_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateCategoryResponseCategory.md b/docs/CreateCategoryResponseCategory.md
new file mode 100644
index 00000000..0091db5d
--- /dev/null
+++ b/docs/CreateCategoryResponseCategory.md
@@ -0,0 +1,29 @@
+# CreateCategoryResponseCategory
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The category's ID. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_category_response_category import CreateCategoryResponseCategory
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateCategoryResponseCategory from a JSON string
+create_category_response_category_instance = CreateCategoryResponseCategory.from_json(json)
+# print the JSON string representation of the object
+print(CreateCategoryResponseCategory.to_json())
+
+# convert the object into a dict
+create_category_response_category_dict = create_category_response_category_instance.to_dict()
+# create an instance of CreateCategoryResponseCategory from a dict
+create_category_response_category_from_dict = CreateCategoryResponseCategory.from_dict(create_category_response_category_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionRequest.md b/docs/CreateConnectionRequest.md
new file mode 100644
index 00000000..140b67af
--- /dev/null
+++ b/docs/CreateConnectionRequest.md
@@ -0,0 +1,34 @@
+# CreateConnectionRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The internal name of the connection. | [optional]
+**display_name** | **str** | The public facing name of the connection. | [optional]
+**strategy** | **str** | The identity provider identifier for the connection. | [optional]
+**enabled_applications** | **List[str]** | Client IDs of applications in which this connection is to be enabled. | [optional]
+**organization_code** | **str** | Enterprise connections only - the code for organization that manages this connection. | [optional]
+**options** | [**CreateConnectionRequestOptions**](CreateConnectionRequestOptions.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_request import CreateConnectionRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionRequest from a JSON string
+create_connection_request_instance = CreateConnectionRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionRequest.to_json())
+
+# convert the object into a dict
+create_connection_request_dict = create_connection_request_instance.to_dict()
+# create an instance of CreateConnectionRequest from a dict
+create_connection_request_from_dict = CreateConnectionRequest.from_dict(create_connection_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionRequestOptions.md b/docs/CreateConnectionRequestOptions.md
new file mode 100644
index 00000000..1b7be416
--- /dev/null
+++ b/docs/CreateConnectionRequestOptions.md
@@ -0,0 +1,48 @@
+# CreateConnectionRequestOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client_id** | **str** | Client ID. | [optional]
+**client_secret** | **str** | Client secret. | [optional]
+**is_use_custom_domain** | **bool** | Use custom domain callback URL. | [optional]
+**home_realm_domains** | **List[str]** | List of domains to restrict authentication. | [optional]
+**entra_id_domain** | **str** | Domain for Entra ID. | [optional]
+**is_use_common_endpoint** | **bool** | Use https://login.windows.net/common instead of a default endpoint. | [optional]
+**is_sync_user_profile_on_login** | **bool** | Sync user profile data with IDP. | [optional]
+**is_retrieve_provider_user_groups** | **bool** | Include user group info from MS Entra ID. | [optional]
+**is_extended_attributes_required** | **bool** | Include additional user profile information. | [optional]
+**is_auto_join_organization_enabled** | **bool** | Users automatically join organization when using this connection. | [optional]
+**saml_entity_id** | **str** | SAML Entity ID. | [optional]
+**saml_acs_url** | **str** | Assertion Consumer Service URL. | [optional]
+**saml_idp_metadata_url** | **str** | URL for the IdP metadata. | [optional]
+**saml_sign_in_url** | **str** | Override the default SSO endpoint with a URL your IdP recognizes. | [optional]
+**saml_email_key_attr** | **str** | Attribute key for the user’s email. | [optional]
+**saml_first_name_key_attr** | **str** | Attribute key for the user’s first name. | [optional]
+**saml_last_name_key_attr** | **str** | Attribute key for the user’s last name. | [optional]
+**is_create_missing_user** | **bool** | Create user if they don’t exist. | [optional]
+**saml_signing_certificate** | **str** | Certificate for signing SAML requests. | [optional]
+**saml_signing_private_key** | **str** | Private key associated with the signing certificate. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_request_options import CreateConnectionRequestOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionRequestOptions from a JSON string
+create_connection_request_options_instance = CreateConnectionRequestOptions.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionRequestOptions.to_json())
+
+# convert the object into a dict
+create_connection_request_options_dict = create_connection_request_options_instance.to_dict()
+# create an instance of CreateConnectionRequestOptions from a dict
+create_connection_request_options_from_dict = CreateConnectionRequestOptions.from_dict(create_connection_request_options_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionRequestOptionsOneOf.md b/docs/CreateConnectionRequestOptionsOneOf.md
new file mode 100644
index 00000000..482afced
--- /dev/null
+++ b/docs/CreateConnectionRequestOptionsOneOf.md
@@ -0,0 +1,32 @@
+# CreateConnectionRequestOptionsOneOf
+
+Social connection options (e.g., Google SSO).
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client_id** | **str** | OAuth client ID. | [optional]
+**client_secret** | **str** | OAuth client secret. | [optional]
+**is_use_custom_domain** | **bool** | Use custom domain callback URL. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_request_options_one_of import CreateConnectionRequestOptionsOneOf
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionRequestOptionsOneOf from a JSON string
+create_connection_request_options_one_of_instance = CreateConnectionRequestOptionsOneOf.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionRequestOptionsOneOf.to_json())
+
+# convert the object into a dict
+create_connection_request_options_one_of_dict = create_connection_request_options_one_of_instance.to_dict()
+# create an instance of CreateConnectionRequestOptionsOneOf from a dict
+create_connection_request_options_one_of_from_dict = CreateConnectionRequestOptionsOneOf.from_dict(create_connection_request_options_one_of_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionRequestOptionsOneOf1.md b/docs/CreateConnectionRequestOptionsOneOf1.md
new file mode 100644
index 00000000..c936d078
--- /dev/null
+++ b/docs/CreateConnectionRequestOptionsOneOf1.md
@@ -0,0 +1,38 @@
+# CreateConnectionRequestOptionsOneOf1
+
+Azure AD connection options.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client_id** | **str** | Client ID. | [optional]
+**client_secret** | **str** | Client secret. | [optional]
+**home_realm_domains** | **List[str]** | List of domains to limit authentication. | [optional]
+**entra_id_domain** | **str** | Domain for Entra ID. | [optional]
+**is_use_common_endpoint** | **bool** | Use https://login.windows.net/common instead of a default endpoint. | [optional]
+**is_sync_user_profile_on_login** | **bool** | Sync user profile data with IDP. | [optional]
+**is_retrieve_provider_user_groups** | **bool** | Include user group info from MS Entra ID. | [optional]
+**is_extended_attributes_required** | **bool** | Include additional user profile information. | [optional]
+**is_auto_join_organization_enabled** | **bool** | Users automatically join organization when using this connection. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_request_options_one_of1 import CreateConnectionRequestOptionsOneOf1
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionRequestOptionsOneOf1 from a JSON string
+create_connection_request_options_one_of1_instance = CreateConnectionRequestOptionsOneOf1.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionRequestOptionsOneOf1.to_json())
+
+# convert the object into a dict
+create_connection_request_options_one_of1_dict = create_connection_request_options_one_of1_instance.to_dict()
+# create an instance of CreateConnectionRequestOptionsOneOf1 from a dict
+create_connection_request_options_one_of1_from_dict = CreateConnectionRequestOptionsOneOf1.from_dict(create_connection_request_options_one_of1_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionRequestOptionsOneOf2.md b/docs/CreateConnectionRequestOptionsOneOf2.md
new file mode 100644
index 00000000..c7b12c27
--- /dev/null
+++ b/docs/CreateConnectionRequestOptionsOneOf2.md
@@ -0,0 +1,41 @@
+# CreateConnectionRequestOptionsOneOf2
+
+SAML connection options (e.g., Cloudflare SAML).
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**home_realm_domains** | **List[str]** | List of domains to restrict authentication. | [optional]
+**saml_entity_id** | **str** | SAML Entity ID. | [optional]
+**saml_acs_url** | **str** | Assertion Consumer Service URL. | [optional]
+**saml_idp_metadata_url** | **str** | URL for the IdP metadata. | [optional]
+**saml_sign_in_url** | **str** | Override the default SSO endpoint with a URL your IdP recognizes. | [optional]
+**saml_email_key_attr** | **str** | Attribute key for the user’s email. | [optional]
+**saml_first_name_key_attr** | **str** | Attribute key for the user’s first name. | [optional]
+**saml_last_name_key_attr** | **str** | Attribute key for the user’s last name. | [optional]
+**is_create_missing_user** | **bool** | Create user if they don’t exist. | [optional]
+**saml_signing_certificate** | **str** | Certificate for signing SAML requests. | [optional]
+**saml_signing_private_key** | **str** | Private key associated with the signing certificate. | [optional]
+**is_auto_join_organization_enabled** | **bool** | Users automatically join organization when using this connection. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_request_options_one_of2 import CreateConnectionRequestOptionsOneOf2
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionRequestOptionsOneOf2 from a JSON string
+create_connection_request_options_one_of2_instance = CreateConnectionRequestOptionsOneOf2.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionRequestOptionsOneOf2.to_json())
+
+# convert the object into a dict
+create_connection_request_options_one_of2_dict = create_connection_request_options_one_of2_instance.to_dict()
+# create an instance of CreateConnectionRequestOptionsOneOf2 from a dict
+create_connection_request_options_one_of2_from_dict = CreateConnectionRequestOptionsOneOf2.from_dict(create_connection_request_options_one_of2_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionResponse.md b/docs/CreateConnectionResponse.md
new file mode 100644
index 00000000..b9fd5316
--- /dev/null
+++ b/docs/CreateConnectionResponse.md
@@ -0,0 +1,31 @@
+# CreateConnectionResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**connection** | [**CreateConnectionResponseConnection**](CreateConnectionResponseConnection.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_response import CreateConnectionResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionResponse from a JSON string
+create_connection_response_instance = CreateConnectionResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionResponse.to_json())
+
+# convert the object into a dict
+create_connection_response_dict = create_connection_response_instance.to_dict()
+# create an instance of CreateConnectionResponse from a dict
+create_connection_response_from_dict = CreateConnectionResponse.from_dict(create_connection_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateConnectionResponseConnection.md b/docs/CreateConnectionResponseConnection.md
new file mode 100644
index 00000000..d751c875
--- /dev/null
+++ b/docs/CreateConnectionResponseConnection.md
@@ -0,0 +1,29 @@
+# CreateConnectionResponseConnection
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The connection's ID. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_connection_response_connection import CreateConnectionResponseConnection
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateConnectionResponseConnection from a JSON string
+create_connection_response_connection_instance = CreateConnectionResponseConnection.from_json(json)
+# print the JSON string representation of the object
+print(CreateConnectionResponseConnection.to_json())
+
+# convert the object into a dict
+create_connection_response_connection_dict = create_connection_response_connection_instance.to_dict()
+# create an instance of CreateConnectionResponseConnection from a dict
+create_connection_response_connection_from_dict = CreateConnectionResponseConnection.from_dict(create_connection_response_connection_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateEnvironmentVariableRequest.md b/docs/CreateEnvironmentVariableRequest.md
new file mode 100644
index 00000000..5d5e4500
--- /dev/null
+++ b/docs/CreateEnvironmentVariableRequest.md
@@ -0,0 +1,31 @@
+# CreateEnvironmentVariableRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | The name of the environment variable (max 128 characters). |
+**value** | **str** | The value of the new environment variable (max 2048 characters). |
+**is_secret** | **bool** | Whether the environment variable is sensitive. Secrets are not-readable by you or your team after creation. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_environment_variable_request import CreateEnvironmentVariableRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateEnvironmentVariableRequest from a JSON string
+create_environment_variable_request_instance = CreateEnvironmentVariableRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateEnvironmentVariableRequest.to_json())
+
+# convert the object into a dict
+create_environment_variable_request_dict = create_environment_variable_request_instance.to_dict()
+# create an instance of CreateEnvironmentVariableRequest from a dict
+create_environment_variable_request_from_dict = CreateEnvironmentVariableRequest.from_dict(create_environment_variable_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateEnvironmentVariableResponse.md b/docs/CreateEnvironmentVariableResponse.md
new file mode 100644
index 00000000..03607e1a
--- /dev/null
+++ b/docs/CreateEnvironmentVariableResponse.md
@@ -0,0 +1,31 @@
+# CreateEnvironmentVariableResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | A Kinde generated message. | [optional]
+**code** | **str** | A Kinde generated status code. | [optional]
+**environment_variable** | [**CreateEnvironmentVariableResponseEnvironmentVariable**](CreateEnvironmentVariableResponseEnvironmentVariable.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_environment_variable_response import CreateEnvironmentVariableResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateEnvironmentVariableResponse from a JSON string
+create_environment_variable_response_instance = CreateEnvironmentVariableResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateEnvironmentVariableResponse.to_json())
+
+# convert the object into a dict
+create_environment_variable_response_dict = create_environment_variable_response_instance.to_dict()
+# create an instance of CreateEnvironmentVariableResponse from a dict
+create_environment_variable_response_from_dict = CreateEnvironmentVariableResponse.from_dict(create_environment_variable_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateEnvironmentVariableResponseEnvironmentVariable.md b/docs/CreateEnvironmentVariableResponseEnvironmentVariable.md
new file mode 100644
index 00000000..5cdf12e6
--- /dev/null
+++ b/docs/CreateEnvironmentVariableResponseEnvironmentVariable.md
@@ -0,0 +1,29 @@
+# CreateEnvironmentVariableResponseEnvironmentVariable
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the environment variable. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_environment_variable_response_environment_variable import CreateEnvironmentVariableResponseEnvironmentVariable
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateEnvironmentVariableResponseEnvironmentVariable from a JSON string
+create_environment_variable_response_environment_variable_instance = CreateEnvironmentVariableResponseEnvironmentVariable.from_json(json)
+# print the JSON string representation of the object
+print(CreateEnvironmentVariableResponseEnvironmentVariable.to_json())
+
+# convert the object into a dict
+create_environment_variable_response_environment_variable_dict = create_environment_variable_response_environment_variable_instance.to_dict()
+# create an instance of CreateEnvironmentVariableResponseEnvironmentVariable from a dict
+create_environment_variable_response_environment_variable_from_dict = CreateEnvironmentVariableResponseEnvironmentVariable.from_dict(create_environment_variable_response_environment_variable_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateFeatureFlagRequest.md b/docs/CreateFeatureFlagRequest.md
new file mode 100644
index 00000000..21b172d3
--- /dev/null
+++ b/docs/CreateFeatureFlagRequest.md
@@ -0,0 +1,34 @@
+# CreateFeatureFlagRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The name of the flag. |
+**description** | **str** | Description of the flag purpose. | [optional]
+**key** | **str** | The flag identifier to use in code. |
+**type** | **str** | The variable type. |
+**allow_override_level** | **str** | Allow the flag to be overridden at a different level. | [optional]
+**default_value** | **str** | Default value for the flag used by environments and organizations. |
+
+## Example
+
+```python
+from kinde_sdk.models.create_feature_flag_request import CreateFeatureFlagRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateFeatureFlagRequest from a JSON string
+create_feature_flag_request_instance = CreateFeatureFlagRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateFeatureFlagRequest.to_json())
+
+# convert the object into a dict
+create_feature_flag_request_dict = create_feature_flag_request_instance.to_dict()
+# create an instance of CreateFeatureFlagRequest from a dict
+create_feature_flag_request_from_dict = CreateFeatureFlagRequest.from_dict(create_feature_flag_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateIdentityResponse.md b/docs/CreateIdentityResponse.md
new file mode 100644
index 00000000..7349ddce
--- /dev/null
+++ b/docs/CreateIdentityResponse.md
@@ -0,0 +1,31 @@
+# CreateIdentityResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**identity** | [**CreateIdentityResponseIdentity**](CreateIdentityResponseIdentity.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_identity_response import CreateIdentityResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateIdentityResponse from a JSON string
+create_identity_response_instance = CreateIdentityResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateIdentityResponse.to_json())
+
+# convert the object into a dict
+create_identity_response_dict = create_identity_response_instance.to_dict()
+# create an instance of CreateIdentityResponse from a dict
+create_identity_response_from_dict = CreateIdentityResponse.from_dict(create_identity_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateIdentityResponseIdentity.md b/docs/CreateIdentityResponseIdentity.md
new file mode 100644
index 00000000..d168a219
--- /dev/null
+++ b/docs/CreateIdentityResponseIdentity.md
@@ -0,0 +1,29 @@
+# CreateIdentityResponseIdentity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The identity's ID. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_identity_response_identity import CreateIdentityResponseIdentity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateIdentityResponseIdentity from a JSON string
+create_identity_response_identity_instance = CreateIdentityResponseIdentity.from_json(json)
+# print the JSON string representation of the object
+print(CreateIdentityResponseIdentity.to_json())
+
+# convert the object into a dict
+create_identity_response_identity_dict = create_identity_response_identity_instance.to_dict()
+# create an instance of CreateIdentityResponseIdentity from a dict
+create_identity_response_identity_from_dict = CreateIdentityResponseIdentity.from_dict(create_identity_response_identity_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateMeterUsageRecordRequest.md b/docs/CreateMeterUsageRecordRequest.md
new file mode 100644
index 00000000..bc9024a0
--- /dev/null
+++ b/docs/CreateMeterUsageRecordRequest.md
@@ -0,0 +1,32 @@
+# CreateMeterUsageRecordRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer_agreement_id** | **str** | The billing agreement against which to record usage |
+**billing_feature_code** | **str** | The code of the feature within the agreement against which to record usage |
+**meter_value** | **str** | The value of usage to record |
+**meter_usage_timestamp** | **datetime** | The date and time the usage needs to be recorded for (defaults to current date/time) | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_meter_usage_record_request import CreateMeterUsageRecordRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateMeterUsageRecordRequest from a JSON string
+create_meter_usage_record_request_instance = CreateMeterUsageRecordRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateMeterUsageRecordRequest.to_json())
+
+# convert the object into a dict
+create_meter_usage_record_request_dict = create_meter_usage_record_request_instance.to_dict()
+# create an instance of CreateMeterUsageRecordRequest from a dict
+create_meter_usage_record_request_from_dict = CreateMeterUsageRecordRequest.from_dict(create_meter_usage_record_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateMeterUsageRecordResponse.md b/docs/CreateMeterUsageRecordResponse.md
new file mode 100644
index 00000000..382d2872
--- /dev/null
+++ b/docs/CreateMeterUsageRecordResponse.md
@@ -0,0 +1,30 @@
+# CreateMeterUsageRecordResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | Response message. | [optional]
+**code** | **str** | Response code. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_meter_usage_record_response import CreateMeterUsageRecordResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateMeterUsageRecordResponse from a JSON string
+create_meter_usage_record_response_instance = CreateMeterUsageRecordResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateMeterUsageRecordResponse.to_json())
+
+# convert the object into a dict
+create_meter_usage_record_response_dict = create_meter_usage_record_response_instance.to_dict()
+# create an instance of CreateMeterUsageRecordResponse from a dict
+create_meter_usage_record_response_from_dict = CreateMeterUsageRecordResponse.from_dict(create_meter_usage_record_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateOrganizationRequest.md b/docs/CreateOrganizationRequest.md
new file mode 100644
index 00000000..b6afc616
--- /dev/null
+++ b/docs/CreateOrganizationRequest.md
@@ -0,0 +1,47 @@
+# CreateOrganizationRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The organization's name. |
+**feature_flags** | **Dict[str, str]** | The organization's feature flag settings. | [optional]
+**external_id** | **str** | The organization's external identifier - commonly used when migrating from or mapping to other systems. | [optional]
+**background_color** | **str** | The organization's brand settings - background color. | [optional]
+**button_color** | **str** | The organization's brand settings - button color. | [optional]
+**button_text_color** | **str** | The organization's brand settings - button text color. | [optional]
+**link_color** | **str** | The organization's brand settings - link color. | [optional]
+**background_color_dark** | **str** | The organization's brand settings - dark mode background color. | [optional]
+**button_color_dark** | **str** | The organization's brand settings - dark mode button color. | [optional]
+**button_text_color_dark** | **str** | The organization's brand settings - dark mode button text color. | [optional]
+**link_color_dark** | **str** | The organization's brand settings - dark mode link color. | [optional]
+**theme_code** | **str** | The organization's brand settings - theme/mode 'light' | 'dark' | 'user_preference'. | [optional]
+**handle** | **str** | A unique handle for the organization - can be used for dynamic callback urls. | [optional]
+**is_allow_registrations** | **bool** | If users become members of this organization when the org code is supplied during authentication. | [optional]
+**sender_name** | **str** | The name of the organization that will be used in emails | [optional]
+**sender_email** | **str** | The email address that will be used in emails. Requires custom SMTP to be set up. | [optional]
+**is_create_billing_customer** | **bool** | If a billing customer is also created for this organization | [optional]
+**billing_email** | **str** | The email address used for billing purposes for the organization | [optional]
+**billing_plan_code** | **str** | The billing plan to put the customer on. If not specified, the default plan is used | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_organization_request import CreateOrganizationRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateOrganizationRequest from a JSON string
+create_organization_request_instance = CreateOrganizationRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateOrganizationRequest.to_json())
+
+# convert the object into a dict
+create_organization_request_dict = create_organization_request_instance.to_dict()
+# create an instance of CreateOrganizationRequest from a dict
+create_organization_request_from_dict = CreateOrganizationRequest.from_dict(create_organization_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateOrganizationResponse.md b/docs/CreateOrganizationResponse.md
new file mode 100644
index 00000000..6da3e192
--- /dev/null
+++ b/docs/CreateOrganizationResponse.md
@@ -0,0 +1,31 @@
+# CreateOrganizationResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | Response message. | [optional]
+**code** | **str** | Response code. | [optional]
+**organization** | [**CreateOrganizationResponseOrganization**](CreateOrganizationResponseOrganization.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_organization_response import CreateOrganizationResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateOrganizationResponse from a JSON string
+create_organization_response_instance = CreateOrganizationResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateOrganizationResponse.to_json())
+
+# convert the object into a dict
+create_organization_response_dict = create_organization_response_instance.to_dict()
+# create an instance of CreateOrganizationResponse from a dict
+create_organization_response_from_dict = CreateOrganizationResponse.from_dict(create_organization_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateOrganizationResponseOrganization.md b/docs/CreateOrganizationResponseOrganization.md
new file mode 100644
index 00000000..42257742
--- /dev/null
+++ b/docs/CreateOrganizationResponseOrganization.md
@@ -0,0 +1,30 @@
+# CreateOrganizationResponseOrganization
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | The organization's unique code. | [optional]
+**billing_customer_id** | **str** | The billing customer id if the organization was created with the is_create_billing_customer as true | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_organization_response_organization import CreateOrganizationResponseOrganization
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateOrganizationResponseOrganization from a JSON string
+create_organization_response_organization_instance = CreateOrganizationResponseOrganization.from_json(json)
+# print the JSON string representation of the object
+print(CreateOrganizationResponseOrganization.to_json())
+
+# convert the object into a dict
+create_organization_response_organization_dict = create_organization_response_organization_instance.to_dict()
+# create an instance of CreateOrganizationResponseOrganization from a dict
+create_organization_response_organization_from_dict = CreateOrganizationResponseOrganization.from_dict(create_organization_response_organization_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateOrganizationUserPermissionRequest.md b/docs/CreateOrganizationUserPermissionRequest.md
new file mode 100644
index 00000000..a9881c24
--- /dev/null
+++ b/docs/CreateOrganizationUserPermissionRequest.md
@@ -0,0 +1,29 @@
+# CreateOrganizationUserPermissionRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**permission_id** | **str** | The permission id. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_organization_user_permission_request import CreateOrganizationUserPermissionRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateOrganizationUserPermissionRequest from a JSON string
+create_organization_user_permission_request_instance = CreateOrganizationUserPermissionRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateOrganizationUserPermissionRequest.to_json())
+
+# convert the object into a dict
+create_organization_user_permission_request_dict = create_organization_user_permission_request_instance.to_dict()
+# create an instance of CreateOrganizationUserPermissionRequest from a dict
+create_organization_user_permission_request_from_dict = CreateOrganizationUserPermissionRequest.from_dict(create_organization_user_permission_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateOrganizationUserRoleRequest.md b/docs/CreateOrganizationUserRoleRequest.md
new file mode 100644
index 00000000..d26b4251
--- /dev/null
+++ b/docs/CreateOrganizationUserRoleRequest.md
@@ -0,0 +1,29 @@
+# CreateOrganizationUserRoleRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**role_id** | **str** | The role id. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_organization_user_role_request import CreateOrganizationUserRoleRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateOrganizationUserRoleRequest from a JSON string
+create_organization_user_role_request_instance = CreateOrganizationUserRoleRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateOrganizationUserRoleRequest.to_json())
+
+# convert the object into a dict
+create_organization_user_role_request_dict = create_organization_user_role_request_instance.to_dict()
+# create an instance of CreateOrganizationUserRoleRequest from a dict
+create_organization_user_role_request_from_dict = CreateOrganizationUserRoleRequest.from_dict(create_organization_user_role_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreatePermissionRequest.md b/docs/CreatePermissionRequest.md
new file mode 100644
index 00000000..4a01ff70
--- /dev/null
+++ b/docs/CreatePermissionRequest.md
@@ -0,0 +1,31 @@
+# CreatePermissionRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The permission's name. | [optional]
+**description** | **str** | The permission's description. | [optional]
+**key** | **str** | The permission identifier to use in code. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreatePermissionRequest from a JSON string
+create_permission_request_instance = CreatePermissionRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreatePermissionRequest.to_json())
+
+# convert the object into a dict
+create_permission_request_dict = create_permission_request_instance.to_dict()
+# create an instance of CreatePermissionRequest from a dict
+create_permission_request_from_dict = CreatePermissionRequest.from_dict(create_permission_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreatePropertyRequest.md b/docs/CreatePropertyRequest.md
new file mode 100644
index 00000000..56b4bd44
--- /dev/null
+++ b/docs/CreatePropertyRequest.md
@@ -0,0 +1,35 @@
+# CreatePropertyRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The name of the property. |
+**description** | **str** | Description of the property purpose. | [optional]
+**key** | **str** | The property identifier to use in code. |
+**type** | **str** | The property type. |
+**context** | **str** | The context that the property applies to. |
+**is_private** | **bool** | Whether the property can be included in id and access tokens. |
+**category_id** | **str** | Which category the property belongs to. |
+
+## Example
+
+```python
+from kinde_sdk.models.create_property_request import CreatePropertyRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreatePropertyRequest from a JSON string
+create_property_request_instance = CreatePropertyRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreatePropertyRequest.to_json())
+
+# convert the object into a dict
+create_property_request_dict = create_property_request_instance.to_dict()
+# create an instance of CreatePropertyRequest from a dict
+create_property_request_from_dict = CreatePropertyRequest.from_dict(create_property_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreatePropertyResponse.md b/docs/CreatePropertyResponse.md
new file mode 100644
index 00000000..45a9e017
--- /dev/null
+++ b/docs/CreatePropertyResponse.md
@@ -0,0 +1,31 @@
+# CreatePropertyResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**var_property** | [**CreatePropertyResponseProperty**](CreatePropertyResponseProperty.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_property_response import CreatePropertyResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreatePropertyResponse from a JSON string
+create_property_response_instance = CreatePropertyResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreatePropertyResponse.to_json())
+
+# convert the object into a dict
+create_property_response_dict = create_property_response_instance.to_dict()
+# create an instance of CreatePropertyResponse from a dict
+create_property_response_from_dict = CreatePropertyResponse.from_dict(create_property_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreatePropertyResponseProperty.md b/docs/CreatePropertyResponseProperty.md
new file mode 100644
index 00000000..46f6af6e
--- /dev/null
+++ b/docs/CreatePropertyResponseProperty.md
@@ -0,0 +1,29 @@
+# CreatePropertyResponseProperty
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The property's ID. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_property_response_property import CreatePropertyResponseProperty
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreatePropertyResponseProperty from a JSON string
+create_property_response_property_instance = CreatePropertyResponseProperty.from_json(json)
+# print the JSON string representation of the object
+print(CreatePropertyResponseProperty.to_json())
+
+# convert the object into a dict
+create_property_response_property_dict = create_property_response_property_instance.to_dict()
+# create an instance of CreatePropertyResponseProperty from a dict
+create_property_response_property_from_dict = CreatePropertyResponseProperty.from_dict(create_property_response_property_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateRoleRequest.md b/docs/CreateRoleRequest.md
new file mode 100644
index 00000000..ef91e8c6
--- /dev/null
+++ b/docs/CreateRoleRequest.md
@@ -0,0 +1,32 @@
+# CreateRoleRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The role's name. | [optional]
+**description** | **str** | The role's description. | [optional]
+**key** | **str** | The role identifier to use in code. | [optional]
+**is_default_role** | **bool** | Set role as default for new users. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_role_request import CreateRoleRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateRoleRequest from a JSON string
+create_role_request_instance = CreateRoleRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateRoleRequest.to_json())
+
+# convert the object into a dict
+create_role_request_dict = create_role_request_instance.to_dict()
+# create an instance of CreateRoleRequest from a dict
+create_role_request_from_dict = CreateRoleRequest.from_dict(create_role_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateRolesResponse.md b/docs/CreateRolesResponse.md
new file mode 100644
index 00000000..557b158c
--- /dev/null
+++ b/docs/CreateRolesResponse.md
@@ -0,0 +1,31 @@
+# CreateRolesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**role** | [**CreateRolesResponseRole**](CreateRolesResponseRole.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_roles_response import CreateRolesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateRolesResponse from a JSON string
+create_roles_response_instance = CreateRolesResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateRolesResponse.to_json())
+
+# convert the object into a dict
+create_roles_response_dict = create_roles_response_instance.to_dict()
+# create an instance of CreateRolesResponse from a dict
+create_roles_response_from_dict = CreateRolesResponse.from_dict(create_roles_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateRolesResponseRole.md b/docs/CreateRolesResponseRole.md
new file mode 100644
index 00000000..cf2c16cd
--- /dev/null
+++ b/docs/CreateRolesResponseRole.md
@@ -0,0 +1,29 @@
+# CreateRolesResponseRole
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The role's ID. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_roles_response_role import CreateRolesResponseRole
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateRolesResponseRole from a JSON string
+create_roles_response_role_instance = CreateRolesResponseRole.from_json(json)
+# print the JSON string representation of the object
+print(CreateRolesResponseRole.to_json())
+
+# convert the object into a dict
+create_roles_response_role_dict = create_roles_response_role_instance.to_dict()
+# create an instance of CreateRolesResponseRole from a dict
+create_roles_response_role_from_dict = CreateRolesResponseRole.from_dict(create_roles_response_role_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateSubscriberSuccessResponse.md b/docs/CreateSubscriberSuccessResponse.md
new file mode 100644
index 00000000..ad345f84
--- /dev/null
+++ b/docs/CreateSubscriberSuccessResponse.md
@@ -0,0 +1,29 @@
+# CreateSubscriberSuccessResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**subscriber** | [**CreateSubscriberSuccessResponseSubscriber**](CreateSubscriberSuccessResponseSubscriber.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_subscriber_success_response import CreateSubscriberSuccessResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateSubscriberSuccessResponse from a JSON string
+create_subscriber_success_response_instance = CreateSubscriberSuccessResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateSubscriberSuccessResponse.to_json())
+
+# convert the object into a dict
+create_subscriber_success_response_dict = create_subscriber_success_response_instance.to_dict()
+# create an instance of CreateSubscriberSuccessResponse from a dict
+create_subscriber_success_response_from_dict = CreateSubscriberSuccessResponse.from_dict(create_subscriber_success_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateSubscriberSuccessResponseSubscriber.md b/docs/CreateSubscriberSuccessResponseSubscriber.md
new file mode 100644
index 00000000..8325123c
--- /dev/null
+++ b/docs/CreateSubscriberSuccessResponseSubscriber.md
@@ -0,0 +1,29 @@
+# CreateSubscriberSuccessResponseSubscriber
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**subscriber_id** | **str** | A unique identifier for the subscriber. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_subscriber_success_response_subscriber import CreateSubscriberSuccessResponseSubscriber
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateSubscriberSuccessResponseSubscriber from a JSON string
+create_subscriber_success_response_subscriber_instance = CreateSubscriberSuccessResponseSubscriber.from_json(json)
+# print the JSON string representation of the object
+print(CreateSubscriberSuccessResponseSubscriber.to_json())
+
+# convert the object into a dict
+create_subscriber_success_response_subscriber_dict = create_subscriber_success_response_subscriber_instance.to_dict()
+# create an instance of CreateSubscriberSuccessResponseSubscriber from a dict
+create_subscriber_success_response_subscriber_from_dict = CreateSubscriberSuccessResponseSubscriber.from_dict(create_subscriber_success_response_subscriber_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateUserIdentityRequest.md b/docs/CreateUserIdentityRequest.md
new file mode 100644
index 00000000..991501f2
--- /dev/null
+++ b/docs/CreateUserIdentityRequest.md
@@ -0,0 +1,32 @@
+# CreateUserIdentityRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | **str** | The email address, social identity, or username of the user. | [optional]
+**type** | **str** | The identity type | [optional]
+**phone_country_id** | **str** | The country code for the phone number, only required when identity type is 'phone'. | [optional]
+**connection_id** | **str** | The social or enterprise connection ID, only required when identity type is 'social' or 'enterprise'. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_user_identity_request import CreateUserIdentityRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateUserIdentityRequest from a JSON string
+create_user_identity_request_instance = CreateUserIdentityRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateUserIdentityRequest.to_json())
+
+# convert the object into a dict
+create_user_identity_request_dict = create_user_identity_request_instance.to_dict()
+# create an instance of CreateUserIdentityRequest from a dict
+create_user_identity_request_from_dict = CreateUserIdentityRequest.from_dict(create_user_identity_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateUserRequest.md b/docs/CreateUserRequest.md
new file mode 100644
index 00000000..86a405ab
--- /dev/null
+++ b/docs/CreateUserRequest.md
@@ -0,0 +1,32 @@
+# CreateUserRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**profile** | [**CreateUserRequestProfile**](CreateUserRequestProfile.md) | | [optional]
+**organization_code** | **str** | The unique code associated with the organization you want the user to join. | [optional]
+**provided_id** | **str** | An external id to reference the user. | [optional]
+**identities** | [**List[CreateUserRequestIdentitiesInner]**](CreateUserRequestIdentitiesInner.md) | Array of identities to assign to the created user | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_user_request import CreateUserRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateUserRequest from a JSON string
+create_user_request_instance = CreateUserRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateUserRequest.to_json())
+
+# convert the object into a dict
+create_user_request_dict = create_user_request_instance.to_dict()
+# create an instance of CreateUserRequest from a dict
+create_user_request_from_dict = CreateUserRequest.from_dict(create_user_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateUserRequestIdentitiesInner.md b/docs/CreateUserRequestIdentitiesInner.md
new file mode 100644
index 00000000..c9811183
--- /dev/null
+++ b/docs/CreateUserRequestIdentitiesInner.md
@@ -0,0 +1,32 @@
+# CreateUserRequestIdentitiesInner
+
+The result of the user creation operation.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | The type of identity to create, e.g. email, username, or phone. | [optional]
+**is_verified** | **bool** | Set whether an email or phone identity is verified or not. | [optional]
+**details** | [**CreateUserRequestIdentitiesInnerDetails**](CreateUserRequestIdentitiesInnerDetails.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_user_request_identities_inner import CreateUserRequestIdentitiesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateUserRequestIdentitiesInner from a JSON string
+create_user_request_identities_inner_instance = CreateUserRequestIdentitiesInner.from_json(json)
+# print the JSON string representation of the object
+print(CreateUserRequestIdentitiesInner.to_json())
+
+# convert the object into a dict
+create_user_request_identities_inner_dict = create_user_request_identities_inner_instance.to_dict()
+# create an instance of CreateUserRequestIdentitiesInner from a dict
+create_user_request_identities_inner_from_dict = CreateUserRequestIdentitiesInner.from_dict(create_user_request_identities_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateUserRequestIdentitiesInnerDetails.md b/docs/CreateUserRequestIdentitiesInnerDetails.md
new file mode 100644
index 00000000..c09947fd
--- /dev/null
+++ b/docs/CreateUserRequestIdentitiesInnerDetails.md
@@ -0,0 +1,33 @@
+# CreateUserRequestIdentitiesInnerDetails
+
+Additional details required to create the user.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**email** | **str** | The email address of the user. | [optional]
+**phone** | **str** | The phone number of the user. | [optional]
+**phone_country_id** | **str** | The country code for the phone number. | [optional]
+**username** | **str** | The username of the user. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_user_request_identities_inner_details import CreateUserRequestIdentitiesInnerDetails
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateUserRequestIdentitiesInnerDetails from a JSON string
+create_user_request_identities_inner_details_instance = CreateUserRequestIdentitiesInnerDetails.from_json(json)
+# print the JSON string representation of the object
+print(CreateUserRequestIdentitiesInnerDetails.to_json())
+
+# convert the object into a dict
+create_user_request_identities_inner_details_dict = create_user_request_identities_inner_details_instance.to_dict()
+# create an instance of CreateUserRequestIdentitiesInnerDetails from a dict
+create_user_request_identities_inner_details_from_dict = CreateUserRequestIdentitiesInnerDetails.from_dict(create_user_request_identities_inner_details_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateUserRequestProfile.md b/docs/CreateUserRequestProfile.md
new file mode 100644
index 00000000..6f489f63
--- /dev/null
+++ b/docs/CreateUserRequestProfile.md
@@ -0,0 +1,32 @@
+# CreateUserRequestProfile
+
+Basic information required to create a user.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**given_name** | **str** | User's first name. | [optional]
+**family_name** | **str** | User's last name. | [optional]
+**picture** | **str** | The user's profile picture. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_user_request_profile import CreateUserRequestProfile
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateUserRequestProfile from a JSON string
+create_user_request_profile_instance = CreateUserRequestProfile.from_json(json)
+# print the JSON string representation of the object
+print(CreateUserRequestProfile.to_json())
+
+# convert the object into a dict
+create_user_request_profile_dict = create_user_request_profile_instance.to_dict()
+# create an instance of CreateUserRequestProfile from a dict
+create_user_request_profile_from_dict = CreateUserRequestProfile.from_dict(create_user_request_profile_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateUserResponse.md b/docs/CreateUserResponse.md
new file mode 100644
index 00000000..9c0b81d9
--- /dev/null
+++ b/docs/CreateUserResponse.md
@@ -0,0 +1,31 @@
+# CreateUserResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the user in Kinde. | [optional]
+**created** | **bool** | True if the user was successfully created. | [optional]
+**identities** | [**List[UserIdentity]**](UserIdentity.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_user_response import CreateUserResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateUserResponse from a JSON string
+create_user_response_instance = CreateUserResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateUserResponse.to_json())
+
+# convert the object into a dict
+create_user_response_dict = create_user_response_instance.to_dict()
+# create an instance of CreateUserResponse from a dict
+create_user_response_from_dict = CreateUserResponse.from_dict(create_user_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateWebHookRequest.md b/docs/CreateWebHookRequest.md
new file mode 100644
index 00000000..2c8bc9e1
--- /dev/null
+++ b/docs/CreateWebHookRequest.md
@@ -0,0 +1,32 @@
+# CreateWebHookRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**endpoint** | **str** | The webhook endpoint url |
+**event_types** | **List[str]** | Array of event type keys |
+**name** | **str** | The webhook name |
+**description** | **str** | The webhook description | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_web_hook_request import CreateWebHookRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateWebHookRequest from a JSON string
+create_web_hook_request_instance = CreateWebHookRequest.from_json(json)
+# print the JSON string representation of the object
+print(CreateWebHookRequest.to_json())
+
+# convert the object into a dict
+create_web_hook_request_dict = create_web_hook_request_instance.to_dict()
+# create an instance of CreateWebHookRequest from a dict
+create_web_hook_request_from_dict = CreateWebHookRequest.from_dict(create_web_hook_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateWebhookResponse.md b/docs/CreateWebhookResponse.md
new file mode 100644
index 00000000..cbb1a992
--- /dev/null
+++ b/docs/CreateWebhookResponse.md
@@ -0,0 +1,31 @@
+# CreateWebhookResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**webhook** | [**CreateWebhookResponseWebhook**](CreateWebhookResponseWebhook.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_webhook_response import CreateWebhookResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateWebhookResponse from a JSON string
+create_webhook_response_instance = CreateWebhookResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreateWebhookResponse.to_json())
+
+# convert the object into a dict
+create_webhook_response_dict = create_webhook_response_instance.to_dict()
+# create an instance of CreateWebhookResponse from a dict
+create_webhook_response_from_dict = CreateWebhookResponse.from_dict(create_webhook_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateWebhookResponseWebhook.md b/docs/CreateWebhookResponseWebhook.md
new file mode 100644
index 00000000..c344c481
--- /dev/null
+++ b/docs/CreateWebhookResponseWebhook.md
@@ -0,0 +1,30 @@
+# CreateWebhookResponseWebhook
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**endpoint** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.create_webhook_response_webhook import CreateWebhookResponseWebhook
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateWebhookResponseWebhook from a JSON string
+create_webhook_response_webhook_instance = CreateWebhookResponseWebhook.from_json(json)
+# print the JSON string representation of the object
+print(CreateWebhookResponseWebhook.to_json())
+
+# convert the object into a dict
+create_webhook_response_webhook_dict = create_webhook_response_webhook_instance.to_dict()
+# create an instance of CreateWebhookResponseWebhook from a dict
+create_webhook_response_webhook_from_dict = CreateWebhookResponseWebhook.from_dict(create_webhook_response_webhook_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeleteApiResponse.md b/docs/DeleteApiResponse.md
new file mode 100644
index 00000000..87de4c1e
--- /dev/null
+++ b/docs/DeleteApiResponse.md
@@ -0,0 +1,30 @@
+# DeleteApiResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.delete_api_response import DeleteApiResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DeleteApiResponse from a JSON string
+delete_api_response_instance = DeleteApiResponse.from_json(json)
+# print the JSON string representation of the object
+print(DeleteApiResponse.to_json())
+
+# convert the object into a dict
+delete_api_response_dict = delete_api_response_instance.to_dict()
+# create an instance of DeleteApiResponse from a dict
+delete_api_response_from_dict = DeleteApiResponse.from_dict(delete_api_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeleteEnvironmentVariableResponse.md b/docs/DeleteEnvironmentVariableResponse.md
new file mode 100644
index 00000000..59193c1f
--- /dev/null
+++ b/docs/DeleteEnvironmentVariableResponse.md
@@ -0,0 +1,30 @@
+# DeleteEnvironmentVariableResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | A Kinde generated message. | [optional]
+**code** | **str** | A Kinde generated status code. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.delete_environment_variable_response import DeleteEnvironmentVariableResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DeleteEnvironmentVariableResponse from a JSON string
+delete_environment_variable_response_instance = DeleteEnvironmentVariableResponse.from_json(json)
+# print the JSON string representation of the object
+print(DeleteEnvironmentVariableResponse.to_json())
+
+# convert the object into a dict
+delete_environment_variable_response_dict = delete_environment_variable_response_instance.to_dict()
+# create an instance of DeleteEnvironmentVariableResponse from a dict
+delete_environment_variable_response_from_dict = DeleteEnvironmentVariableResponse.from_dict(delete_environment_variable_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeleteRoleScopeResponse.md b/docs/DeleteRoleScopeResponse.md
new file mode 100644
index 00000000..2d57d93a
--- /dev/null
+++ b/docs/DeleteRoleScopeResponse.md
@@ -0,0 +1,30 @@
+# DeleteRoleScopeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.delete_role_scope_response import DeleteRoleScopeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DeleteRoleScopeResponse from a JSON string
+delete_role_scope_response_instance = DeleteRoleScopeResponse.from_json(json)
+# print the JSON string representation of the object
+print(DeleteRoleScopeResponse.to_json())
+
+# convert the object into a dict
+delete_role_scope_response_dict = delete_role_scope_response_instance.to_dict()
+# create an instance of DeleteRoleScopeResponse from a dict
+delete_role_scope_response_from_dict = DeleteRoleScopeResponse.from_dict(delete_role_scope_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeleteWebhookResponse.md b/docs/DeleteWebhookResponse.md
new file mode 100644
index 00000000..e24d6e19
--- /dev/null
+++ b/docs/DeleteWebhookResponse.md
@@ -0,0 +1,30 @@
+# DeleteWebhookResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.delete_webhook_response import DeleteWebhookResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DeleteWebhookResponse from a JSON string
+delete_webhook_response_instance = DeleteWebhookResponse.from_json(json)
+# print the JSON string representation of the object
+print(DeleteWebhookResponse.to_json())
+
+# convert the object into a dict
+delete_webhook_response_dict = delete_webhook_response_instance.to_dict()
+# create an instance of DeleteWebhookResponse from a dict
+delete_webhook_response_from_dict = DeleteWebhookResponse.from_dict(delete_webhook_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/EnvironmentVariable.md b/docs/EnvironmentVariable.md
new file mode 100644
index 00000000..6e9cd86d
--- /dev/null
+++ b/docs/EnvironmentVariable.md
@@ -0,0 +1,33 @@
+# EnvironmentVariable
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the environment variable. | [optional]
+**key** | **str** | The name of the environment variable. | [optional]
+**value** | **str** | The value of the environment variable. | [optional]
+**is_secret** | **bool** | Whether the environment variable is sensitive. | [optional]
+**created_on** | **str** | The date the environment variable was created. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.environment_variable import EnvironmentVariable
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EnvironmentVariable from a JSON string
+environment_variable_instance = EnvironmentVariable.from_json(json)
+# print the JSON string representation of the object
+print(EnvironmentVariable.to_json())
+
+# convert the object into a dict
+environment_variable_dict = environment_variable_instance.to_dict()
+# create an instance of EnvironmentVariable from a dict
+environment_variable_from_dict = EnvironmentVariable.from_dict(environment_variable_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/EnvironmentVariablesApi.md b/docs/EnvironmentVariablesApi.md
new file mode 100644
index 00000000..c20459e3
--- /dev/null
+++ b/docs/EnvironmentVariablesApi.md
@@ -0,0 +1,443 @@
+# kinde_sdk.EnvironmentVariablesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_environment_variable**](EnvironmentVariablesApi.md#create_environment_variable) | **POST** /api/v1/environment_variables | Create environment variable
+[**delete_environment_variable**](EnvironmentVariablesApi.md#delete_environment_variable) | **DELETE** /api/v1/environment_variables/{variable_id} | Delete environment variable
+[**get_environment_variable**](EnvironmentVariablesApi.md#get_environment_variable) | **GET** /api/v1/environment_variables/{variable_id} | Get environment variable
+[**get_environment_variables**](EnvironmentVariablesApi.md#get_environment_variables) | **GET** /api/v1/environment_variables | Get environment variables
+[**update_environment_variable**](EnvironmentVariablesApi.md#update_environment_variable) | **PATCH** /api/v1/environment_variables/{variable_id} | Update environment variable
+
+
+# **create_environment_variable**
+> CreateEnvironmentVariableResponse create_environment_variable(create_environment_variable_request)
+
+Create environment variable
+
+Create a new environment variable. This feature is in beta and admin UI is not yet available.
+
+
+ create:environment_variables
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_environment_variable_request import CreateEnvironmentVariableRequest
+from kinde_sdk.models.create_environment_variable_response import CreateEnvironmentVariableResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentVariablesApi(api_client)
+ create_environment_variable_request = kinde_sdk.CreateEnvironmentVariableRequest() # CreateEnvironmentVariableRequest | The environment variable details.
+
+ try:
+ # Create environment variable
+ api_response = api_instance.create_environment_variable(create_environment_variable_request)
+ print("The response of EnvironmentVariablesApi->create_environment_variable:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentVariablesApi->create_environment_variable: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_environment_variable_request** | [**CreateEnvironmentVariableRequest**](CreateEnvironmentVariableRequest.md)| The environment variable details. |
+
+### Return type
+
+[**CreateEnvironmentVariableResponse**](CreateEnvironmentVariableResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Environment variable successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_environment_variable**
+> DeleteEnvironmentVariableResponse delete_environment_variable(variable_id)
+
+Delete environment variable
+
+Delete an environment variable you previously created. This feature is in beta and admin UI is not yet available.
+
+
+ delete:environment_variables
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.delete_environment_variable_response import DeleteEnvironmentVariableResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentVariablesApi(api_client)
+ variable_id = 'env_var_0192b1941f125645fa15bf28a662a0b3' # str | The environment variable's ID.
+
+ try:
+ # Delete environment variable
+ api_response = api_instance.delete_environment_variable(variable_id)
+ print("The response of EnvironmentVariablesApi->delete_environment_variable:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentVariablesApi->delete_environment_variable: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **variable_id** | **str**| The environment variable's ID. |
+
+### Return type
+
+[**DeleteEnvironmentVariableResponse**](DeleteEnvironmentVariableResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Environment variable successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_environment_variable**
+> GetEnvironmentVariableResponse get_environment_variable(variable_id)
+
+Get environment variable
+
+Retrieve environment variable details by ID. This feature is in beta and admin UI is not yet available.
+
+
+ read:environment_variables
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_environment_variable_response import GetEnvironmentVariableResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentVariablesApi(api_client)
+ variable_id = 'env_var_0192b1941f125645fa15bf28a662a0b3' # str | The environment variable's ID.
+
+ try:
+ # Get environment variable
+ api_response = api_instance.get_environment_variable(variable_id)
+ print("The response of EnvironmentVariablesApi->get_environment_variable:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentVariablesApi->get_environment_variable: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **variable_id** | **str**| The environment variable's ID. |
+
+### Return type
+
+[**GetEnvironmentVariableResponse**](GetEnvironmentVariableResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Environment variable successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_environment_variables**
+> GetEnvironmentVariablesResponse get_environment_variables()
+
+Get environment variables
+
+Get environment variables. This feature is in beta and admin UI is not yet available.
+
+
+ read:environment_variables
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_environment_variables_response import GetEnvironmentVariablesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentVariablesApi(api_client)
+
+ try:
+ # Get environment variables
+ api_response = api_instance.get_environment_variables()
+ print("The response of EnvironmentVariablesApi->get_environment_variables:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentVariablesApi->get_environment_variables: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetEnvironmentVariablesResponse**](GetEnvironmentVariablesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response with a list of environment variables or an empty list. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_environment_variable**
+> UpdateEnvironmentVariableResponse update_environment_variable(variable_id, update_environment_variable_request)
+
+Update environment variable
+
+Update an environment variable you previously created. This feature is in beta and admin UI is not yet available.
+
+
+ update:environment_variables
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_environment_variable_request import UpdateEnvironmentVariableRequest
+from kinde_sdk.models.update_environment_variable_response import UpdateEnvironmentVariableResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentVariablesApi(api_client)
+ variable_id = 'env_var_0192b1941f125645fa15bf28a662a0b3' # str | The environment variable's ID.
+ update_environment_variable_request = kinde_sdk.UpdateEnvironmentVariableRequest() # UpdateEnvironmentVariableRequest | The new details for the environment variable
+
+ try:
+ # Update environment variable
+ api_response = api_instance.update_environment_variable(variable_id, update_environment_variable_request)
+ print("The response of EnvironmentVariablesApi->update_environment_variable:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentVariablesApi->update_environment_variable: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **variable_id** | **str**| The environment variable's ID. |
+ **update_environment_variable_request** | [**UpdateEnvironmentVariableRequest**](UpdateEnvironmentVariableRequest.md)| The new details for the environment variable |
+
+### Return type
+
+[**UpdateEnvironmentVariableResponse**](UpdateEnvironmentVariableResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Environment variable successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/EnvironmentsApi.md b/docs/EnvironmentsApi.md
new file mode 100644
index 00000000..590ebafe
--- /dev/null
+++ b/docs/EnvironmentsApi.md
@@ -0,0 +1,694 @@
+# kinde_sdk.EnvironmentsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_logo**](EnvironmentsApi.md#add_logo) | **PUT** /api/v1/environment/logos/{type} | Add logo
+[**delete_environement_feature_flag_override**](EnvironmentsApi.md#delete_environement_feature_flag_override) | **DELETE** /api/v1/environment/feature_flags/{feature_flag_key} | Delete Environment Feature Flag Override
+[**delete_environement_feature_flag_overrides**](EnvironmentsApi.md#delete_environement_feature_flag_overrides) | **DELETE** /api/v1/environment/feature_flags | Delete Environment Feature Flag Overrides
+[**delete_logo**](EnvironmentsApi.md#delete_logo) | **DELETE** /api/v1/environment/logos/{type} | Delete logo
+[**get_environement_feature_flags**](EnvironmentsApi.md#get_environement_feature_flags) | **GET** /api/v1/environment/feature_flags | List Environment Feature Flags
+[**get_environment**](EnvironmentsApi.md#get_environment) | **GET** /api/v1/environment | Get environment
+[**read_logo**](EnvironmentsApi.md#read_logo) | **GET** /api/v1/environment/logos | Read logo details
+[**update_environement_feature_flag_override**](EnvironmentsApi.md#update_environement_feature_flag_override) | **PATCH** /api/v1/environment/feature_flags/{feature_flag_key} | Update Environment Feature Flag Override
+
+
+# **add_logo**
+> SuccessResponse add_logo(type, logo)
+
+Add logo
+
+Add environment logo
+
+
+ update:environments
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+ type = 'dark' # str | The type of logo to add.
+ logo = None # bytearray | The logo file to upload.
+
+ try:
+ # Add logo
+ api_response = api_instance.add_logo(type, logo)
+ print("The response of EnvironmentsApi->add_logo:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->add_logo: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| The type of logo to add. |
+ **logo** | **bytearray**| The logo file to upload. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Logo successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_environement_feature_flag_override**
+> SuccessResponse delete_environement_feature_flag_override(feature_flag_key)
+
+Delete Environment Feature Flag Override
+
+Delete environment feature flag override.
+
+
+ delete:environment_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+ feature_flag_key = 'feature_flag_key_example' # str | The identifier for the feature flag.
+
+ try:
+ # Delete Environment Feature Flag Override
+ api_response = api_instance.delete_environement_feature_flag_override(feature_flag_key)
+ print("The response of EnvironmentsApi->delete_environement_feature_flag_override:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->delete_environement_feature_flag_override: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **feature_flag_key** | **str**| The identifier for the feature flag. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag deleted successfully. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_environement_feature_flag_overrides**
+> SuccessResponse delete_environement_feature_flag_overrides()
+
+Delete Environment Feature Flag Overrides
+
+Delete all environment feature flag overrides.
+
+
+ delete:environment_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+
+ try:
+ # Delete Environment Feature Flag Overrides
+ api_response = api_instance.delete_environement_feature_flag_overrides()
+ print("The response of EnvironmentsApi->delete_environement_feature_flag_overrides:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->delete_environement_feature_flag_overrides: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag overrides deleted successfully. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_logo**
+> SuccessResponse delete_logo(type)
+
+Delete logo
+
+Delete environment logo
+
+
+ update:environments
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+ type = 'dark' # str | The type of logo to delete.
+
+ try:
+ # Delete logo
+ api_response = api_instance.delete_logo(type)
+ print("The response of EnvironmentsApi->delete_logo:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->delete_logo: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| The type of logo to delete. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Logo successfully deleted | - |
+**204** | No logo found to delete | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_environement_feature_flags**
+> GetEnvironmentFeatureFlagsResponse get_environement_feature_flags()
+
+List Environment Feature Flags
+
+Get environment feature flags.
+
+
+ read:environment_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+
+ try:
+ # List Environment Feature Flags
+ api_response = api_instance.get_environement_feature_flags()
+ print("The response of EnvironmentsApi->get_environement_feature_flags:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->get_environement_feature_flags: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetEnvironmentFeatureFlagsResponse**](GetEnvironmentFeatureFlagsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flags retrieved successfully. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_environment**
+> GetEnvironmentResponse get_environment()
+
+Get environment
+
+Gets the current environment.
+
+
+ read:environments
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_environment_response import GetEnvironmentResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+
+ try:
+ # Get environment
+ api_response = api_instance.get_environment()
+ print("The response of EnvironmentsApi->get_environment:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->get_environment: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetEnvironmentResponse**](GetEnvironmentResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Environment successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **read_logo**
+> ReadEnvLogoResponse read_logo()
+
+Read logo details
+
+Read environment logo details
+
+
+ read:environments
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.read_env_logo_response import ReadEnvLogoResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+
+ try:
+ # Read logo details
+ api_response = api_instance.read_logo()
+ print("The response of EnvironmentsApi->read_logo:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->read_logo: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**ReadEnvLogoResponse**](ReadEnvLogoResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_environement_feature_flag_override**
+> SuccessResponse update_environement_feature_flag_override(feature_flag_key, update_environement_feature_flag_override_request)
+
+Update Environment Feature Flag Override
+
+Update environment feature flag override.
+
+
+ update:environment_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_environement_feature_flag_override_request import UpdateEnvironementFeatureFlagOverrideRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.EnvironmentsApi(api_client)
+ feature_flag_key = 'feature_flag_key_example' # str | The identifier for the feature flag.
+ update_environement_feature_flag_override_request = kinde_sdk.UpdateEnvironementFeatureFlagOverrideRequest() # UpdateEnvironementFeatureFlagOverrideRequest | Flag details.
+
+ try:
+ # Update Environment Feature Flag Override
+ api_response = api_instance.update_environement_feature_flag_override(feature_flag_key, update_environement_feature_flag_override_request)
+ print("The response of EnvironmentsApi->update_environement_feature_flag_override:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentsApi->update_environement_feature_flag_override: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **feature_flag_key** | **str**| The identifier for the feature flag. |
+ **update_environement_feature_flag_override_request** | [**UpdateEnvironementFeatureFlagOverrideRequest**](UpdateEnvironementFeatureFlagOverrideRequest.md)| Flag details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag override successful | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/Error.md b/docs/Error.md
new file mode 100644
index 00000000..b9042583
--- /dev/null
+++ b/docs/Error.md
@@ -0,0 +1,30 @@
+# Error
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Error code. | [optional]
+**message** | **str** | Error message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.error import Error
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Error from a JSON string
+error_instance = Error.from_json(json)
+# print the JSON string representation of the object
+print(Error.to_json())
+
+# convert the object into a dict
+error_dict = error_instance.to_dict()
+# create an instance of Error from a dict
+error_from_dict = Error.from_dict(error_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ErrorResponse.md b/docs/ErrorResponse.md
new file mode 100644
index 00000000..c8e1c3c8
--- /dev/null
+++ b/docs/ErrorResponse.md
@@ -0,0 +1,29 @@
+# ErrorResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**errors** | [**List[Error]**](Error.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.error_response import ErrorResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ErrorResponse from a JSON string
+error_response_instance = ErrorResponse.from_json(json)
+# print the JSON string representation of the object
+print(ErrorResponse.to_json())
+
+# convert the object into a dict
+error_response_dict = error_response_instance.to_dict()
+# create an instance of ErrorResponse from a dict
+error_response_from_dict = ErrorResponse.from_dict(error_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/EventType.md b/docs/EventType.md
new file mode 100644
index 00000000..b2dc0ebb
--- /dev/null
+++ b/docs/EventType.md
@@ -0,0 +1,33 @@
+# EventType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**code** | **str** | | [optional]
+**name** | **str** | | [optional]
+**origin** | **str** | | [optional]
+**var_schema** | **object** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.event_type import EventType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventType from a JSON string
+event_type_instance = EventType.from_json(json)
+# print the JSON string representation of the object
+print(EventType.to_json())
+
+# convert the object into a dict
+event_type_dict = event_type_instance.to_dict()
+# create an instance of EventType from a dict
+event_type_from_dict = EventType.from_dict(event_type_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/FeatureFlags0Api.md b/docs/FeatureFlags0Api.md
new file mode 100644
index 00000000..1b44bec0
--- /dev/null
+++ b/docs/FeatureFlags0Api.md
@@ -0,0 +1,92 @@
+# kinde_sdk.FeatureFlagsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_feature_flags**](FeatureFlagsApi.md#get_feature_flags) | **GET** /account_api/v1/feature_flags | Get feature flags
+
+
+# **get_feature_flags**
+> GetFeatureFlagsResponse get_feature_flags(page_size=page_size, starting_after=starting_after)
+
+Get feature flags
+
+Returns all the feature flags that affect the user
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_feature_flags_response import GetFeatureFlagsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.FeatureFlagsApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'flag_1234567890abcdef' # str | The ID of the flag to start after. (optional)
+
+ try:
+ # Get feature flags
+ api_response = api_instance.get_feature_flags(page_size=page_size, starting_after=starting_after)
+ print("The response of FeatureFlagsApi->get_feature_flags:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling FeatureFlagsApi->get_feature_flags: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the flag to start after. | [optional]
+
+### Return type
+
+[**GetFeatureFlagsResponse**](GetFeatureFlagsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flags successfully retrieved. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/FeatureFlagsApi.md b/docs/FeatureFlagsApi.md
new file mode 100644
index 00000000..f663b71a
--- /dev/null
+++ b/docs/FeatureFlagsApi.md
@@ -0,0 +1,280 @@
+# kinde_sdk.FeatureFlagsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_feature_flag**](FeatureFlagsApi.md#create_feature_flag) | **POST** /api/v1/feature_flags | Create Feature Flag
+[**delete_feature_flag**](FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /api/v1/feature_flags/{feature_flag_key} | Delete Feature Flag
+[**update_feature_flag**](FeatureFlagsApi.md#update_feature_flag) | **PUT** /api/v1/feature_flags/{feature_flag_key} | Replace Feature Flag
+
+
+# **create_feature_flag**
+> SuccessResponse create_feature_flag(create_feature_flag_request)
+
+Create Feature Flag
+
+Create feature flag.
+
+
+ create:feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_feature_flag_request import CreateFeatureFlagRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.FeatureFlagsApi(api_client)
+ create_feature_flag_request = kinde_sdk.CreateFeatureFlagRequest() # CreateFeatureFlagRequest | Flag details.
+
+ try:
+ # Create Feature Flag
+ api_response = api_instance.create_feature_flag(create_feature_flag_request)
+ print("The response of FeatureFlagsApi->create_feature_flag:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling FeatureFlagsApi->create_feature_flag: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_feature_flag_request** | [**CreateFeatureFlagRequest**](CreateFeatureFlagRequest.md)| Flag details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Feature flag successfully created | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_feature_flag**
+> SuccessResponse delete_feature_flag(feature_flag_key)
+
+Delete Feature Flag
+
+Delete feature flag
+
+
+ delete:feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.FeatureFlagsApi(api_client)
+ feature_flag_key = 'feature_flag_key_example' # str | The identifier for the feature flag.
+
+ try:
+ # Delete Feature Flag
+ api_response = api_instance.delete_feature_flag(feature_flag_key)
+ print("The response of FeatureFlagsApi->delete_feature_flag:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling FeatureFlagsApi->delete_feature_flag: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **feature_flag_key** | **str**| The identifier for the feature flag. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_feature_flag**
+> SuccessResponse update_feature_flag(feature_flag_key, name, description, type, allow_override_level, default_value)
+
+Replace Feature Flag
+
+Update feature flag.
+
+
+ update:feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.FeatureFlagsApi(api_client)
+ feature_flag_key = 'feature_flag_key_example' # str | The key identifier for the feature flag.
+ name = 'name_example' # str | The name of the flag.
+ description = 'description_example' # str | Description of the flag purpose.
+ type = 'type_example' # str | The variable type
+ allow_override_level = 'allow_override_level_example' # str | Allow the flag to be overridden at a different level.
+ default_value = 'default_value_example' # str | Default value for the flag used by environments and organizations.
+
+ try:
+ # Replace Feature Flag
+ api_response = api_instance.update_feature_flag(feature_flag_key, name, description, type, allow_override_level, default_value)
+ print("The response of FeatureFlagsApi->update_feature_flag:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling FeatureFlagsApi->update_feature_flag: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **feature_flag_key** | **str**| The key identifier for the feature flag. |
+ **name** | **str**| The name of the flag. |
+ **description** | **str**| Description of the flag purpose. |
+ **type** | **str**| The variable type |
+ **allow_override_level** | **str**| Allow the flag to be overridden at a different level. |
+ **default_value** | **str**| Default value for the flag used by environments and organizations. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/GetApiResponse.md b/docs/GetApiResponse.md
new file mode 100644
index 00000000..94aab286
--- /dev/null
+++ b/docs/GetApiResponse.md
@@ -0,0 +1,31 @@
+# GetApiResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**api** | [**GetApiResponseApi**](GetApiResponseApi.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_response import GetApiResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiResponse from a JSON string
+get_api_response_instance = GetApiResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetApiResponse.to_json())
+
+# convert the object into a dict
+get_api_response_dict = get_api_response_instance.to_dict()
+# create an instance of GetApiResponse from a dict
+get_api_response_from_dict = GetApiResponse.from_dict(get_api_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApiResponseApi.md b/docs/GetApiResponseApi.md
new file mode 100644
index 00000000..8481202e
--- /dev/null
+++ b/docs/GetApiResponseApi.md
@@ -0,0 +1,34 @@
+# GetApiResponseApi
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the API. | [optional]
+**name** | **str** | The API’s name. | [optional]
+**audience** | **str** | A unique identifier for the API - commonly the URL. This value will be used as the `audience` parameter in authorization claims. | [optional]
+**is_management_api** | **bool** | Whether or not it is the Kinde management API. | [optional]
+**scopes** | [**List[GetApiResponseApiScopesInner]**](GetApiResponseApiScopesInner.md) | | [optional]
+**applications** | [**List[GetApiResponseApiApplicationsInner]**](GetApiResponseApiApplicationsInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_response_api import GetApiResponseApi
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiResponseApi from a JSON string
+get_api_response_api_instance = GetApiResponseApi.from_json(json)
+# print the JSON string representation of the object
+print(GetApiResponseApi.to_json())
+
+# convert the object into a dict
+get_api_response_api_dict = get_api_response_api_instance.to_dict()
+# create an instance of GetApiResponseApi from a dict
+get_api_response_api_from_dict = GetApiResponseApi.from_dict(get_api_response_api_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApiResponseApiApplicationsInner.md b/docs/GetApiResponseApiApplicationsInner.md
new file mode 100644
index 00000000..8c6fabee
--- /dev/null
+++ b/docs/GetApiResponseApiApplicationsInner.md
@@ -0,0 +1,32 @@
+# GetApiResponseApiApplicationsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The Client ID of the application. | [optional]
+**name** | **str** | The application's name. | [optional]
+**type** | **str** | The application's type. | [optional]
+**is_active** | **bool** | Whether or not the application is authorized to access the API | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_response_api_applications_inner import GetApiResponseApiApplicationsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiResponseApiApplicationsInner from a JSON string
+get_api_response_api_applications_inner_instance = GetApiResponseApiApplicationsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetApiResponseApiApplicationsInner.to_json())
+
+# convert the object into a dict
+get_api_response_api_applications_inner_dict = get_api_response_api_applications_inner_instance.to_dict()
+# create an instance of GetApiResponseApiApplicationsInner from a dict
+get_api_response_api_applications_inner_from_dict = GetApiResponseApiApplicationsInner.from_dict(get_api_response_api_applications_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApiResponseApiScopesInner.md b/docs/GetApiResponseApiScopesInner.md
new file mode 100644
index 00000000..bd9fc5ed
--- /dev/null
+++ b/docs/GetApiResponseApiScopesInner.md
@@ -0,0 +1,30 @@
+# GetApiResponseApiScopesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The ID of the scope. | [optional]
+**key** | **str** | The reference key for the scope. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_response_api_scopes_inner import GetApiResponseApiScopesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiResponseApiScopesInner from a JSON string
+get_api_response_api_scopes_inner_instance = GetApiResponseApiScopesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetApiResponseApiScopesInner.to_json())
+
+# convert the object into a dict
+get_api_response_api_scopes_inner_dict = get_api_response_api_scopes_inner_instance.to_dict()
+# create an instance of GetApiResponseApiScopesInner from a dict
+get_api_response_api_scopes_inner_from_dict = GetApiResponseApiScopesInner.from_dict(get_api_response_api_scopes_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApiScopeResponse.md b/docs/GetApiScopeResponse.md
new file mode 100644
index 00000000..dc96abb9
--- /dev/null
+++ b/docs/GetApiScopeResponse.md
@@ -0,0 +1,31 @@
+# GetApiScopeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**scope** | [**GetApiScopesResponseScopesInner**](GetApiScopesResponseScopesInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_scope_response import GetApiScopeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiScopeResponse from a JSON string
+get_api_scope_response_instance = GetApiScopeResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetApiScopeResponse.to_json())
+
+# convert the object into a dict
+get_api_scope_response_dict = get_api_scope_response_instance.to_dict()
+# create an instance of GetApiScopeResponse from a dict
+get_api_scope_response_from_dict = GetApiScopeResponse.from_dict(get_api_scope_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApiScopesResponse.md b/docs/GetApiScopesResponse.md
new file mode 100644
index 00000000..e7ef2ded
--- /dev/null
+++ b/docs/GetApiScopesResponse.md
@@ -0,0 +1,31 @@
+# GetApiScopesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**scopes** | [**List[GetApiScopesResponseScopesInner]**](GetApiScopesResponseScopesInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_scopes_response import GetApiScopesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiScopesResponse from a JSON string
+get_api_scopes_response_instance = GetApiScopesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetApiScopesResponse.to_json())
+
+# convert the object into a dict
+get_api_scopes_response_dict = get_api_scopes_response_instance.to_dict()
+# create an instance of GetApiScopesResponse from a dict
+get_api_scopes_response_from_dict = GetApiScopesResponse.from_dict(get_api_scopes_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApiScopesResponseScopesInner.md b/docs/GetApiScopesResponseScopesInner.md
new file mode 100644
index 00000000..d0ee31d6
--- /dev/null
+++ b/docs/GetApiScopesResponseScopesInner.md
@@ -0,0 +1,31 @@
+# GetApiScopesResponseScopesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the API scope. | [optional]
+**key** | **str** | The scope's reference key. | [optional]
+**description** | **str** | Explanation of the scope purpose. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_api_scopes_response_scopes_inner import GetApiScopesResponseScopesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApiScopesResponseScopesInner from a JSON string
+get_api_scopes_response_scopes_inner_instance = GetApiScopesResponseScopesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetApiScopesResponseScopesInner.to_json())
+
+# convert the object into a dict
+get_api_scopes_response_scopes_inner_dict = get_api_scopes_response_scopes_inner_instance.to_dict()
+# create an instance of GetApiScopesResponseScopesInner from a dict
+get_api_scopes_response_scopes_inner_from_dict = GetApiScopesResponseScopesInner.from_dict(get_api_scopes_response_scopes_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApisResponse.md b/docs/GetApisResponse.md
new file mode 100644
index 00000000..85a8a89d
--- /dev/null
+++ b/docs/GetApisResponse.md
@@ -0,0 +1,32 @@
+# GetApisResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+**apis** | [**List[GetApisResponseApisInner]**](GetApisResponseApisInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_apis_response import GetApisResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApisResponse from a JSON string
+get_apis_response_instance = GetApisResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetApisResponse.to_json())
+
+# convert the object into a dict
+get_apis_response_dict = get_apis_response_instance.to_dict()
+# create an instance of GetApisResponse from a dict
+get_apis_response_from_dict = GetApisResponse.from_dict(get_apis_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApisResponseApisInner.md b/docs/GetApisResponseApisInner.md
new file mode 100644
index 00000000..01f58a5f
--- /dev/null
+++ b/docs/GetApisResponseApisInner.md
@@ -0,0 +1,33 @@
+# GetApisResponseApisInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the API. | [optional]
+**name** | **str** | The API’s name. | [optional]
+**audience** | **str** | A unique identifier for the API - commonly the URL. This value will be used as the `audience` parameter in authorization claims. | [optional]
+**is_management_api** | **bool** | Whether or not it is the Kinde management API. | [optional]
+**scopes** | [**List[GetApisResponseApisInnerScopesInner]**](GetApisResponseApisInnerScopesInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_apis_response_apis_inner import GetApisResponseApisInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApisResponseApisInner from a JSON string
+get_apis_response_apis_inner_instance = GetApisResponseApisInner.from_json(json)
+# print the JSON string representation of the object
+print(GetApisResponseApisInner.to_json())
+
+# convert the object into a dict
+get_apis_response_apis_inner_dict = get_apis_response_apis_inner_instance.to_dict()
+# create an instance of GetApisResponseApisInner from a dict
+get_apis_response_apis_inner_from_dict = GetApisResponseApisInner.from_dict(get_apis_response_apis_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApisResponseApisInnerScopesInner.md b/docs/GetApisResponseApisInnerScopesInner.md
new file mode 100644
index 00000000..7bb29140
--- /dev/null
+++ b/docs/GetApisResponseApisInnerScopesInner.md
@@ -0,0 +1,30 @@
+# GetApisResponseApisInnerScopesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**key** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_apis_response_apis_inner_scopes_inner import GetApisResponseApisInnerScopesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApisResponseApisInnerScopesInner from a JSON string
+get_apis_response_apis_inner_scopes_inner_instance = GetApisResponseApisInnerScopesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetApisResponseApisInnerScopesInner.to_json())
+
+# convert the object into a dict
+get_apis_response_apis_inner_scopes_inner_dict = get_apis_response_apis_inner_scopes_inner_instance.to_dict()
+# create an instance of GetApisResponseApisInnerScopesInner from a dict
+get_apis_response_apis_inner_scopes_inner_from_dict = GetApisResponseApisInnerScopesInner.from_dict(get_apis_response_apis_inner_scopes_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApplicationResponse.md b/docs/GetApplicationResponse.md
new file mode 100644
index 00000000..0a70f9da
--- /dev/null
+++ b/docs/GetApplicationResponse.md
@@ -0,0 +1,31 @@
+# GetApplicationResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**application** | [**GetApplicationResponseApplication**](GetApplicationResponseApplication.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_application_response import GetApplicationResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApplicationResponse from a JSON string
+get_application_response_instance = GetApplicationResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetApplicationResponse.to_json())
+
+# convert the object into a dict
+get_application_response_dict = get_application_response_instance.to_dict()
+# create an instance of GetApplicationResponse from a dict
+get_application_response_from_dict = GetApplicationResponse.from_dict(get_application_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApplicationResponseApplication.md b/docs/GetApplicationResponseApplication.md
new file mode 100644
index 00000000..29862c55
--- /dev/null
+++ b/docs/GetApplicationResponseApplication.md
@@ -0,0 +1,36 @@
+# GetApplicationResponseApplication
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The application's identifier. | [optional]
+**name** | **str** | The application's name. | [optional]
+**type** | **str** | The application's type. | [optional]
+**client_id** | **str** | The application's client ID. | [optional]
+**client_secret** | **str** | The application's client secret. | [optional]
+**login_uri** | **str** | The default login route for resolving session issues. | [optional]
+**homepage_uri** | **str** | The homepage link to your application. | [optional]
+**has_cancel_button** | **bool** | Whether the application has a cancel button to allow users to exit the auth flow [Beta]. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_application_response_application import GetApplicationResponseApplication
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApplicationResponseApplication from a JSON string
+get_application_response_application_instance = GetApplicationResponseApplication.from_json(json)
+# print the JSON string representation of the object
+print(GetApplicationResponseApplication.to_json())
+
+# convert the object into a dict
+get_application_response_application_dict = get_application_response_application_instance.to_dict()
+# create an instance of GetApplicationResponseApplication from a dict
+get_application_response_application_from_dict = GetApplicationResponseApplication.from_dict(get_application_response_application_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetApplicationsResponse.md b/docs/GetApplicationsResponse.md
new file mode 100644
index 00000000..bf1ceab2
--- /dev/null
+++ b/docs/GetApplicationsResponse.md
@@ -0,0 +1,32 @@
+# GetApplicationsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**applications** | [**List[Applications]**](Applications.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_applications_response import GetApplicationsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetApplicationsResponse from a JSON string
+get_applications_response_instance = GetApplicationsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetApplicationsResponse.to_json())
+
+# convert the object into a dict
+get_applications_response_dict = get_applications_response_instance.to_dict()
+# create an instance of GetApplicationsResponse from a dict
+get_applications_response_from_dict = GetApplicationsResponse.from_dict(get_applications_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBillingAgreementsResponse.md b/docs/GetBillingAgreementsResponse.md
new file mode 100644
index 00000000..d74165ae
--- /dev/null
+++ b/docs/GetBillingAgreementsResponse.md
@@ -0,0 +1,32 @@
+# GetBillingAgreementsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+**agreements** | [**List[GetBillingAgreementsResponseAgreementsInner]**](GetBillingAgreementsResponseAgreementsInner.md) | A list of billing agreements | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_billing_agreements_response import GetBillingAgreementsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBillingAgreementsResponse from a JSON string
+get_billing_agreements_response_instance = GetBillingAgreementsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetBillingAgreementsResponse.to_json())
+
+# convert the object into a dict
+get_billing_agreements_response_dict = get_billing_agreements_response_instance.to_dict()
+# create an instance of GetBillingAgreementsResponse from a dict
+get_billing_agreements_response_from_dict = GetBillingAgreementsResponse.from_dict(get_billing_agreements_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBillingAgreementsResponseAgreementsInner.md b/docs/GetBillingAgreementsResponseAgreementsInner.md
new file mode 100644
index 00000000..c5f4574a
--- /dev/null
+++ b/docs/GetBillingAgreementsResponseAgreementsInner.md
@@ -0,0 +1,33 @@
+# GetBillingAgreementsResponseAgreementsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly id of an agreement | [optional]
+**plan_code** | **str** | The plan code the billing customer is subscribed to | [optional]
+**expires_on** | **datetime** | The date the agreement expired (and was no longer active) | [optional]
+**billing_group_id** | **str** | The friendly id of the billing group this agreement's plan is part of | [optional]
+**entitlements** | [**List[GetBillingAgreementsResponseAgreementsInnerEntitlementsInner]**](GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md) | A list of billing entitlements that is part of this agreement | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner import GetBillingAgreementsResponseAgreementsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBillingAgreementsResponseAgreementsInner from a JSON string
+get_billing_agreements_response_agreements_inner_instance = GetBillingAgreementsResponseAgreementsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetBillingAgreementsResponseAgreementsInner.to_json())
+
+# convert the object into a dict
+get_billing_agreements_response_agreements_inner_dict = get_billing_agreements_response_agreements_inner_instance.to_dict()
+# create an instance of GetBillingAgreementsResponseAgreementsInner from a dict
+get_billing_agreements_response_agreements_inner_from_dict = GetBillingAgreementsResponseAgreementsInner.from_dict(get_billing_agreements_response_agreements_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md b/docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md
new file mode 100644
index 00000000..fc347ea4
--- /dev/null
+++ b/docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md
@@ -0,0 +1,30 @@
+# GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**feature_code** | **str** | The feature code of the feature corresponding to this entitlement | [optional]
+**entitlement_id** | **str** | The friendly id of an entitlement | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner import GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBillingAgreementsResponseAgreementsInnerEntitlementsInner from a JSON string
+get_billing_agreements_response_agreements_inner_entitlements_inner_instance = GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.to_json())
+
+# convert the object into a dict
+get_billing_agreements_response_agreements_inner_entitlements_inner_dict = get_billing_agreements_response_agreements_inner_entitlements_inner_instance.to_dict()
+# create an instance of GetBillingAgreementsResponseAgreementsInnerEntitlementsInner from a dict
+get_billing_agreements_response_agreements_inner_entitlements_inner_from_dict = GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.from_dict(get_billing_agreements_response_agreements_inner_entitlements_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBillingEntitlementsResponse.md b/docs/GetBillingEntitlementsResponse.md
new file mode 100644
index 00000000..503a43a5
--- /dev/null
+++ b/docs/GetBillingEntitlementsResponse.md
@@ -0,0 +1,33 @@
+# GetBillingEntitlementsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+**entitlements** | [**List[GetBillingEntitlementsResponseEntitlementsInner]**](GetBillingEntitlementsResponseEntitlementsInner.md) | A list of entitlements | [optional]
+**plans** | [**List[GetBillingEntitlementsResponsePlansInner]**](GetBillingEntitlementsResponsePlansInner.md) | A list of plans. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_billing_entitlements_response import GetBillingEntitlementsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBillingEntitlementsResponse from a JSON string
+get_billing_entitlements_response_instance = GetBillingEntitlementsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetBillingEntitlementsResponse.to_json())
+
+# convert the object into a dict
+get_billing_entitlements_response_dict = get_billing_entitlements_response_instance.to_dict()
+# create an instance of GetBillingEntitlementsResponse from a dict
+get_billing_entitlements_response_from_dict = GetBillingEntitlementsResponse.from_dict(get_billing_entitlements_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBillingEntitlementsResponseEntitlementsInner.md b/docs/GetBillingEntitlementsResponseEntitlementsInner.md
new file mode 100644
index 00000000..b47db6b6
--- /dev/null
+++ b/docs/GetBillingEntitlementsResponseEntitlementsInner.md
@@ -0,0 +1,36 @@
+# GetBillingEntitlementsResponseEntitlementsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly id of an entitlement | [optional]
+**fixed_charge** | **int** | The price charged if this is an entitlement for a fixed charged | [optional]
+**price_name** | **str** | The name of the price associated with the entitlement | [optional]
+**unit_amount** | **int** | The price charged for this entitlement in cents | [optional]
+**feature_code** | **str** | The feature code of the feature corresponding to this entitlement | [optional]
+**feature_name** | **str** | The feature name of the feature corresponding to this entitlement | [optional]
+**entitlement_limit_max** | **int** | The maximum number of units of the feature the customer is entitled to | [optional]
+**entitlement_limit_min** | **int** | The minimum number of units of the feature the customer is entitled to | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_billing_entitlements_response_entitlements_inner import GetBillingEntitlementsResponseEntitlementsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBillingEntitlementsResponseEntitlementsInner from a JSON string
+get_billing_entitlements_response_entitlements_inner_instance = GetBillingEntitlementsResponseEntitlementsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetBillingEntitlementsResponseEntitlementsInner.to_json())
+
+# convert the object into a dict
+get_billing_entitlements_response_entitlements_inner_dict = get_billing_entitlements_response_entitlements_inner_instance.to_dict()
+# create an instance of GetBillingEntitlementsResponseEntitlementsInner from a dict
+get_billing_entitlements_response_entitlements_inner_from_dict = GetBillingEntitlementsResponseEntitlementsInner.from_dict(get_billing_entitlements_response_entitlements_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBillingEntitlementsResponsePlansInner.md b/docs/GetBillingEntitlementsResponsePlansInner.md
new file mode 100644
index 00000000..81f64738
--- /dev/null
+++ b/docs/GetBillingEntitlementsResponsePlansInner.md
@@ -0,0 +1,30 @@
+# GetBillingEntitlementsResponsePlansInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | The plan code the billing customer is subscribed to | [optional]
+**subscribed_on** | **datetime** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_billing_entitlements_response_plans_inner import GetBillingEntitlementsResponsePlansInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBillingEntitlementsResponsePlansInner from a JSON string
+get_billing_entitlements_response_plans_inner_instance = GetBillingEntitlementsResponsePlansInner.from_json(json)
+# print the JSON string representation of the object
+print(GetBillingEntitlementsResponsePlansInner.to_json())
+
+# convert the object into a dict
+get_billing_entitlements_response_plans_inner_dict = get_billing_entitlements_response_plans_inner_instance.to_dict()
+# create an instance of GetBillingEntitlementsResponsePlansInner from a dict
+get_billing_entitlements_response_plans_inner_from_dict = GetBillingEntitlementsResponsePlansInner.from_dict(get_billing_entitlements_response_plans_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBusinessResponse.md b/docs/GetBusinessResponse.md
new file mode 100644
index 00000000..fbe2380d
--- /dev/null
+++ b/docs/GetBusinessResponse.md
@@ -0,0 +1,31 @@
+# GetBusinessResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**business** | [**GetBusinessResponseBusiness**](GetBusinessResponseBusiness.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_business_response import GetBusinessResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBusinessResponse from a JSON string
+get_business_response_instance = GetBusinessResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetBusinessResponse.to_json())
+
+# convert the object into a dict
+get_business_response_dict = get_business_response_instance.to_dict()
+# create an instance of GetBusinessResponse from a dict
+get_business_response_from_dict = GetBusinessResponse.from_dict(get_business_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetBusinessResponseBusiness.md b/docs/GetBusinessResponseBusiness.md
new file mode 100644
index 00000000..43f0954f
--- /dev/null
+++ b/docs/GetBusinessResponseBusiness.md
@@ -0,0 +1,39 @@
+# GetBusinessResponseBusiness
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | The unique ID for the business. | [optional]
+**name** | **str** | Your business's name. | [optional]
+**phone** | **str** | Phone number associated with business. | [optional]
+**email** | **str** | Email address associated with business. | [optional]
+**industry** | **str** | The industry your business is in. | [optional]
+**timezone** | **str** | The timezone your business is in. | [optional]
+**privacy_url** | **str** | Your Privacy policy URL. | [optional]
+**terms_url** | **str** | Your Terms and Conditions URL. | [optional]
+**has_clickwrap** | **bool** | Whether your business uses clickwrap agreements. | [optional]
+**has_kinde_branding** | **bool** | Whether your business shows Kinde branding. | [optional]
+**created_on** | **str** | Date of business creation in ISO 8601 format. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_business_response_business import GetBusinessResponseBusiness
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetBusinessResponseBusiness from a JSON string
+get_business_response_business_instance = GetBusinessResponseBusiness.from_json(json)
+# print the JSON string representation of the object
+print(GetBusinessResponseBusiness.to_json())
+
+# convert the object into a dict
+get_business_response_business_dict = get_business_response_business_instance.to_dict()
+# create an instance of GetBusinessResponseBusiness from a dict
+get_business_response_business_from_dict = GetBusinessResponseBusiness.from_dict(get_business_response_business_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetCategoriesResponse.md b/docs/GetCategoriesResponse.md
new file mode 100644
index 00000000..a6a58d6d
--- /dev/null
+++ b/docs/GetCategoriesResponse.md
@@ -0,0 +1,32 @@
+# GetCategoriesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**categories** | [**List[Category]**](Category.md) | | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_categories_response import GetCategoriesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetCategoriesResponse from a JSON string
+get_categories_response_instance = GetCategoriesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetCategoriesResponse.to_json())
+
+# convert the object into a dict
+get_categories_response_dict = get_categories_response_instance.to_dict()
+# create an instance of GetCategoriesResponse from a dict
+get_categories_response_from_dict = GetCategoriesResponse.from_dict(get_categories_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetConnectionsResponse.md b/docs/GetConnectionsResponse.md
new file mode 100644
index 00000000..28fa77e6
--- /dev/null
+++ b/docs/GetConnectionsResponse.md
@@ -0,0 +1,32 @@
+# GetConnectionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**connections** | [**List[Connection]**](Connection.md) | | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetConnectionsResponse from a JSON string
+get_connections_response_instance = GetConnectionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetConnectionsResponse.to_json())
+
+# convert the object into a dict
+get_connections_response_dict = get_connections_response_instance.to_dict()
+# create an instance of GetConnectionsResponse from a dict
+get_connections_response_from_dict = GetConnectionsResponse.from_dict(get_connections_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEntitlementsResponse.md b/docs/GetEntitlementsResponse.md
new file mode 100644
index 00000000..db5a810f
--- /dev/null
+++ b/docs/GetEntitlementsResponse.md
@@ -0,0 +1,30 @@
+# GetEntitlementsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GetEntitlementsResponseData**](GetEntitlementsResponseData.md) | | [optional]
+**metadata** | [**GetEntitlementsResponseMetadata**](GetEntitlementsResponseMetadata.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_entitlements_response import GetEntitlementsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEntitlementsResponse from a JSON string
+get_entitlements_response_instance = GetEntitlementsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEntitlementsResponse.to_json())
+
+# convert the object into a dict
+get_entitlements_response_dict = get_entitlements_response_instance.to_dict()
+# create an instance of GetEntitlementsResponse from a dict
+get_entitlements_response_from_dict = GetEntitlementsResponse.from_dict(get_entitlements_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEntitlementsResponseData.md b/docs/GetEntitlementsResponseData.md
new file mode 100644
index 00000000..331b6d14
--- /dev/null
+++ b/docs/GetEntitlementsResponseData.md
@@ -0,0 +1,31 @@
+# GetEntitlementsResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**org_code** | **str** | The organization code the entitlements are associated with. | [optional]
+**plans** | [**List[GetEntitlementsResponseDataPlansInner]**](GetEntitlementsResponseDataPlansInner.md) | A list of plans the user is subscribed to | [optional]
+**entitlements** | [**List[GetEntitlementsResponseDataEntitlementsInner]**](GetEntitlementsResponseDataEntitlementsInner.md) | A list of entitlements | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_entitlements_response_data import GetEntitlementsResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEntitlementsResponseData from a JSON string
+get_entitlements_response_data_instance = GetEntitlementsResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GetEntitlementsResponseData.to_json())
+
+# convert the object into a dict
+get_entitlements_response_data_dict = get_entitlements_response_data_instance.to_dict()
+# create an instance of GetEntitlementsResponseData from a dict
+get_entitlements_response_data_from_dict = GetEntitlementsResponseData.from_dict(get_entitlements_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEntitlementsResponseDataEntitlementsInner.md b/docs/GetEntitlementsResponseDataEntitlementsInner.md
new file mode 100644
index 00000000..c32e754b
--- /dev/null
+++ b/docs/GetEntitlementsResponseDataEntitlementsInner.md
@@ -0,0 +1,36 @@
+# GetEntitlementsResponseDataEntitlementsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly id of an entitlement | [optional]
+**fixed_charge** | **int** | The price charged if this is an entitlement for a fixed charged | [optional]
+**price_name** | **str** | The name of the price associated with the entitlement | [optional]
+**unit_amount** | **int** | The price charged for this entitlement in cents | [optional]
+**feature_code** | **str** | The feature code of the feature corresponding to this entitlement | [optional]
+**feature_name** | **str** | The feature name of the feature corresponding to this entitlement | [optional]
+**entitlement_limit_max** | **int** | The maximum number of units of the feature the customer is entitled to | [optional]
+**entitlement_limit_min** | **int** | The minimum number of units of the feature the customer is entitled to | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_entitlements_response_data_entitlements_inner import GetEntitlementsResponseDataEntitlementsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEntitlementsResponseDataEntitlementsInner from a JSON string
+get_entitlements_response_data_entitlements_inner_instance = GetEntitlementsResponseDataEntitlementsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetEntitlementsResponseDataEntitlementsInner.to_json())
+
+# convert the object into a dict
+get_entitlements_response_data_entitlements_inner_dict = get_entitlements_response_data_entitlements_inner_instance.to_dict()
+# create an instance of GetEntitlementsResponseDataEntitlementsInner from a dict
+get_entitlements_response_data_entitlements_inner_from_dict = GetEntitlementsResponseDataEntitlementsInner.from_dict(get_entitlements_response_data_entitlements_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEntitlementsResponseDataPlansInner.md b/docs/GetEntitlementsResponseDataPlansInner.md
new file mode 100644
index 00000000..9c0d2cbd
--- /dev/null
+++ b/docs/GetEntitlementsResponseDataPlansInner.md
@@ -0,0 +1,30 @@
+# GetEntitlementsResponseDataPlansInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | A unique code for the plan | [optional]
+**subscribed_on** | **datetime** | The date the user subscribed to the plan | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_entitlements_response_data_plans_inner import GetEntitlementsResponseDataPlansInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEntitlementsResponseDataPlansInner from a JSON string
+get_entitlements_response_data_plans_inner_instance = GetEntitlementsResponseDataPlansInner.from_json(json)
+# print the JSON string representation of the object
+print(GetEntitlementsResponseDataPlansInner.to_json())
+
+# convert the object into a dict
+get_entitlements_response_data_plans_inner_dict = get_entitlements_response_data_plans_inner_instance.to_dict()
+# create an instance of GetEntitlementsResponseDataPlansInner from a dict
+get_entitlements_response_data_plans_inner_from_dict = GetEntitlementsResponseDataPlansInner.from_dict(get_entitlements_response_data_plans_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEntitlementsResponseMetadata.md b/docs/GetEntitlementsResponseMetadata.md
new file mode 100644
index 00000000..62d7248a
--- /dev/null
+++ b/docs/GetEntitlementsResponseMetadata.md
@@ -0,0 +1,30 @@
+# GetEntitlementsResponseMetadata
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**has_more** | **bool** | Whether more records exist. | [optional]
+**next_page_starting_after** | **str** | The ID of the last record on the current page. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_entitlements_response_metadata import GetEntitlementsResponseMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEntitlementsResponseMetadata from a JSON string
+get_entitlements_response_metadata_instance = GetEntitlementsResponseMetadata.from_json(json)
+# print the JSON string representation of the object
+print(GetEntitlementsResponseMetadata.to_json())
+
+# convert the object into a dict
+get_entitlements_response_metadata_dict = get_entitlements_response_metadata_instance.to_dict()
+# create an instance of GetEntitlementsResponseMetadata from a dict
+get_entitlements_response_metadata_from_dict = GetEntitlementsResponseMetadata.from_dict(get_entitlements_response_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentFeatureFlagsResponse.md b/docs/GetEnvironmentFeatureFlagsResponse.md
new file mode 100644
index 00000000..4c612527
--- /dev/null
+++ b/docs/GetEnvironmentFeatureFlagsResponse.md
@@ -0,0 +1,32 @@
+# GetEnvironmentFeatureFlagsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**feature_flags** | [**Dict[str, GetOrganizationFeatureFlagsResponseFeatureFlagsValue]**](GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md) | The environment's feature flag settings. | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentFeatureFlagsResponse from a JSON string
+get_environment_feature_flags_response_instance = GetEnvironmentFeatureFlagsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentFeatureFlagsResponse.to_json())
+
+# convert the object into a dict
+get_environment_feature_flags_response_dict = get_environment_feature_flags_response_instance.to_dict()
+# create an instance of GetEnvironmentFeatureFlagsResponse from a dict
+get_environment_feature_flags_response_from_dict = GetEnvironmentFeatureFlagsResponse.from_dict(get_environment_feature_flags_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentResponse.md b/docs/GetEnvironmentResponse.md
new file mode 100644
index 00000000..e387e7be
--- /dev/null
+++ b/docs/GetEnvironmentResponse.md
@@ -0,0 +1,31 @@
+# GetEnvironmentResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**environment** | [**GetEnvironmentResponseEnvironment**](GetEnvironmentResponseEnvironment.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_response import GetEnvironmentResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentResponse from a JSON string
+get_environment_response_instance = GetEnvironmentResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentResponse.to_json())
+
+# convert the object into a dict
+get_environment_response_dict = get_environment_response_instance.to_dict()
+# create an instance of GetEnvironmentResponse from a dict
+get_environment_response_from_dict = GetEnvironmentResponse.from_dict(get_environment_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentResponseEnvironment.md b/docs/GetEnvironmentResponseEnvironment.md
new file mode 100644
index 00000000..f3a8f552
--- /dev/null
+++ b/docs/GetEnvironmentResponseEnvironment.md
@@ -0,0 +1,54 @@
+# GetEnvironmentResponseEnvironment
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | The unique identifier for the environment. | [optional]
+**name** | **str** | The environment's name. | [optional]
+**hotjar_site_id** | **str** | Your HotJar site ID. | [optional]
+**google_analytics_tag** | **str** | Your Google Analytics tag. | [optional]
+**is_default** | **bool** | Whether the environment is the default. Typically this is your production environment. | [optional]
+**is_live** | **bool** | Whether the environment is live. | [optional]
+**kinde_domain** | **str** | Your domain on Kinde | [optional]
+**custom_domain** | **str** | Your custom domain for the environment | [optional]
+**logo** | **str** | The organization's logo URL. | [optional]
+**logo_dark** | **str** | The organization's logo URL to be used for dark themes. | [optional]
+**favicon_svg** | **str** | The organization's SVG favicon URL. Optimal format for most browsers | [optional]
+**favicon_fallback** | **str** | The favicon URL to be used as a fallback in browsers that don’t support SVG, add a PNG | [optional]
+**link_color** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**background_color** | [**GetEnvironmentResponseEnvironmentBackgroundColor**](GetEnvironmentResponseEnvironmentBackgroundColor.md) | | [optional]
+**button_color** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_text_color** | [**GetEnvironmentResponseEnvironmentBackgroundColor**](GetEnvironmentResponseEnvironmentBackgroundColor.md) | | [optional]
+**link_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**background_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_text_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_border_radius** | **int** | The border radius for buttons. Value is px, Kinde transforms to rem for rendering | [optional]
+**card_border_radius** | **int** | The border radius for cards. Value is px, Kinde transforms to rem for rendering | [optional]
+**input_border_radius** | **int** | The border radius for inputs. Value is px, Kinde transforms to rem for rendering | [optional]
+**theme_code** | **str** | Whether the environment is forced into light mode, dark mode or user preference | [optional]
+**color_scheme** | **str** | The color scheme for the environment used for meta tags based on the theme code | [optional]
+**created_on** | **str** | Date of environment creation in ISO 8601 format. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_response_environment import GetEnvironmentResponseEnvironment
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentResponseEnvironment from a JSON string
+get_environment_response_environment_instance = GetEnvironmentResponseEnvironment.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentResponseEnvironment.to_json())
+
+# convert the object into a dict
+get_environment_response_environment_dict = get_environment_response_environment_instance.to_dict()
+# create an instance of GetEnvironmentResponseEnvironment from a dict
+get_environment_response_environment_from_dict = GetEnvironmentResponseEnvironment.from_dict(get_environment_response_environment_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentResponseEnvironmentBackgroundColor.md b/docs/GetEnvironmentResponseEnvironmentBackgroundColor.md
new file mode 100644
index 00000000..918c0b47
--- /dev/null
+++ b/docs/GetEnvironmentResponseEnvironmentBackgroundColor.md
@@ -0,0 +1,31 @@
+# GetEnvironmentResponseEnvironmentBackgroundColor
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**raw** | **str** | | [optional]
+**hex** | **str** | | [optional]
+**hsl** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_response_environment_background_color import GetEnvironmentResponseEnvironmentBackgroundColor
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentResponseEnvironmentBackgroundColor from a JSON string
+get_environment_response_environment_background_color_instance = GetEnvironmentResponseEnvironmentBackgroundColor.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentResponseEnvironmentBackgroundColor.to_json())
+
+# convert the object into a dict
+get_environment_response_environment_background_color_dict = get_environment_response_environment_background_color_instance.to_dict()
+# create an instance of GetEnvironmentResponseEnvironmentBackgroundColor from a dict
+get_environment_response_environment_background_color_from_dict = GetEnvironmentResponseEnvironmentBackgroundColor.from_dict(get_environment_response_environment_background_color_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentResponseEnvironmentLinkColor.md b/docs/GetEnvironmentResponseEnvironmentLinkColor.md
new file mode 100644
index 00000000..5da6d3cc
--- /dev/null
+++ b/docs/GetEnvironmentResponseEnvironmentLinkColor.md
@@ -0,0 +1,31 @@
+# GetEnvironmentResponseEnvironmentLinkColor
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**raw** | **str** | | [optional]
+**hex** | **str** | | [optional]
+**hsl** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_response_environment_link_color import GetEnvironmentResponseEnvironmentLinkColor
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentResponseEnvironmentLinkColor from a JSON string
+get_environment_response_environment_link_color_instance = GetEnvironmentResponseEnvironmentLinkColor.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentResponseEnvironmentLinkColor.to_json())
+
+# convert the object into a dict
+get_environment_response_environment_link_color_dict = get_environment_response_environment_link_color_instance.to_dict()
+# create an instance of GetEnvironmentResponseEnvironmentLinkColor from a dict
+get_environment_response_environment_link_color_from_dict = GetEnvironmentResponseEnvironmentLinkColor.from_dict(get_environment_response_environment_link_color_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentVariableResponse.md b/docs/GetEnvironmentVariableResponse.md
new file mode 100644
index 00000000..b512824c
--- /dev/null
+++ b/docs/GetEnvironmentVariableResponse.md
@@ -0,0 +1,31 @@
+# GetEnvironmentVariableResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**environment_variable** | [**EnvironmentVariable**](EnvironmentVariable.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_variable_response import GetEnvironmentVariableResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentVariableResponse from a JSON string
+get_environment_variable_response_instance = GetEnvironmentVariableResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentVariableResponse.to_json())
+
+# convert the object into a dict
+get_environment_variable_response_dict = get_environment_variable_response_instance.to_dict()
+# create an instance of GetEnvironmentVariableResponse from a dict
+get_environment_variable_response_from_dict = GetEnvironmentVariableResponse.from_dict(get_environment_variable_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEnvironmentVariablesResponse.md b/docs/GetEnvironmentVariablesResponse.md
new file mode 100644
index 00000000..37faca02
--- /dev/null
+++ b/docs/GetEnvironmentVariablesResponse.md
@@ -0,0 +1,32 @@
+# GetEnvironmentVariablesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+**environment_variables** | [**List[EnvironmentVariable]**](EnvironmentVariable.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_environment_variables_response import GetEnvironmentVariablesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEnvironmentVariablesResponse from a JSON string
+get_environment_variables_response_instance = GetEnvironmentVariablesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEnvironmentVariablesResponse.to_json())
+
+# convert the object into a dict
+get_environment_variables_response_dict = get_environment_variables_response_instance.to_dict()
+# create an instance of GetEnvironmentVariablesResponse from a dict
+get_environment_variables_response_from_dict = GetEnvironmentVariablesResponse.from_dict(get_environment_variables_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEventResponse.md b/docs/GetEventResponse.md
new file mode 100644
index 00000000..22cf5cd5
--- /dev/null
+++ b/docs/GetEventResponse.md
@@ -0,0 +1,31 @@
+# GetEventResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**event** | [**GetEventResponseEvent**](GetEventResponseEvent.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_event_response import GetEventResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEventResponse from a JSON string
+get_event_response_instance = GetEventResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEventResponse.to_json())
+
+# convert the object into a dict
+get_event_response_dict = get_event_response_instance.to_dict()
+# create an instance of GetEventResponse from a dict
+get_event_response_from_dict = GetEventResponse.from_dict(get_event_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEventResponseEvent.md b/docs/GetEventResponseEvent.md
new file mode 100644
index 00000000..1b1e0f89
--- /dev/null
+++ b/docs/GetEventResponseEvent.md
@@ -0,0 +1,33 @@
+# GetEventResponseEvent
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | | [optional]
+**source** | **str** | | [optional]
+**event_id** | **str** | | [optional]
+**timestamp** | **int** | Timestamp in ISO 8601 format. | [optional]
+**data** | **object** | Event specific data object. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_event_response_event import GetEventResponseEvent
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEventResponseEvent from a JSON string
+get_event_response_event_instance = GetEventResponseEvent.from_json(json)
+# print the JSON string representation of the object
+print(GetEventResponseEvent.to_json())
+
+# convert the object into a dict
+get_event_response_event_dict = get_event_response_event_instance.to_dict()
+# create an instance of GetEventResponseEvent from a dict
+get_event_response_event_from_dict = GetEventResponseEvent.from_dict(get_event_response_event_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetEventTypesResponse.md b/docs/GetEventTypesResponse.md
new file mode 100644
index 00000000..91ab5eb1
--- /dev/null
+++ b/docs/GetEventTypesResponse.md
@@ -0,0 +1,31 @@
+# GetEventTypesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**event_types** | [**List[EventType]**](EventType.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_event_types_response import GetEventTypesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetEventTypesResponse from a JSON string
+get_event_types_response_instance = GetEventTypesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetEventTypesResponse.to_json())
+
+# convert the object into a dict
+get_event_types_response_dict = get_event_types_response_instance.to_dict()
+# create an instance of GetEventTypesResponse from a dict
+get_event_types_response_from_dict = GetEventTypesResponse.from_dict(get_event_types_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetFeatureFlagsResponse.md b/docs/GetFeatureFlagsResponse.md
new file mode 100644
index 00000000..4d10764e
--- /dev/null
+++ b/docs/GetFeatureFlagsResponse.md
@@ -0,0 +1,29 @@
+# GetFeatureFlagsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GetFeatureFlagsResponseData**](GetFeatureFlagsResponseData.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_feature_flags_response import GetFeatureFlagsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetFeatureFlagsResponse from a JSON string
+get_feature_flags_response_instance = GetFeatureFlagsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetFeatureFlagsResponse.to_json())
+
+# convert the object into a dict
+get_feature_flags_response_dict = get_feature_flags_response_instance.to_dict()
+# create an instance of GetFeatureFlagsResponse from a dict
+get_feature_flags_response_from_dict = GetFeatureFlagsResponse.from_dict(get_feature_flags_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetFeatureFlagsResponseData.md b/docs/GetFeatureFlagsResponseData.md
new file mode 100644
index 00000000..b93b5ff6
--- /dev/null
+++ b/docs/GetFeatureFlagsResponseData.md
@@ -0,0 +1,29 @@
+# GetFeatureFlagsResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**feature_flags** | [**List[GetFeatureFlagsResponseDataFeatureFlagsInner]**](GetFeatureFlagsResponseDataFeatureFlagsInner.md) | A list of feature flags | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_feature_flags_response_data import GetFeatureFlagsResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetFeatureFlagsResponseData from a JSON string
+get_feature_flags_response_data_instance = GetFeatureFlagsResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GetFeatureFlagsResponseData.to_json())
+
+# convert the object into a dict
+get_feature_flags_response_data_dict = get_feature_flags_response_data_instance.to_dict()
+# create an instance of GetFeatureFlagsResponseData from a dict
+get_feature_flags_response_data_from_dict = GetFeatureFlagsResponseData.from_dict(get_feature_flags_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetFeatureFlagsResponseDataFeatureFlagsInner.md b/docs/GetFeatureFlagsResponseDataFeatureFlagsInner.md
new file mode 100644
index 00000000..fd5a70d5
--- /dev/null
+++ b/docs/GetFeatureFlagsResponseDataFeatureFlagsInner.md
@@ -0,0 +1,33 @@
+# GetFeatureFlagsResponseDataFeatureFlagsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly ID of an flag | [optional]
+**name** | **str** | The name of the flag | [optional]
+**key** | **str** | The key of the flag | [optional]
+**type** | **str** | The type of the flag | [optional]
+**value** | [**StringBooleanIntegerObject**](StringBooleanIntegerObject.md) | The value of the flag | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner import GetFeatureFlagsResponseDataFeatureFlagsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetFeatureFlagsResponseDataFeatureFlagsInner from a JSON string
+get_feature_flags_response_data_feature_flags_inner_instance = GetFeatureFlagsResponseDataFeatureFlagsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetFeatureFlagsResponseDataFeatureFlagsInner.to_json())
+
+# convert the object into a dict
+get_feature_flags_response_data_feature_flags_inner_dict = get_feature_flags_response_data_feature_flags_inner_instance.to_dict()
+# create an instance of GetFeatureFlagsResponseDataFeatureFlagsInner from a dict
+get_feature_flags_response_data_feature_flags_inner_from_dict = GetFeatureFlagsResponseDataFeatureFlagsInner.from_dict(get_feature_flags_response_data_feature_flags_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetIdentitiesResponse.md b/docs/GetIdentitiesResponse.md
new file mode 100644
index 00000000..d7a27f87
--- /dev/null
+++ b/docs/GetIdentitiesResponse.md
@@ -0,0 +1,32 @@
+# GetIdentitiesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**identities** | [**List[Identity]**](Identity.md) | | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_identities_response import GetIdentitiesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetIdentitiesResponse from a JSON string
+get_identities_response_instance = GetIdentitiesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetIdentitiesResponse.to_json())
+
+# convert the object into a dict
+get_identities_response_dict = get_identities_response_instance.to_dict()
+# create an instance of GetIdentitiesResponse from a dict
+get_identities_response_from_dict = GetIdentitiesResponse.from_dict(get_identities_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetIndustriesResponse.md b/docs/GetIndustriesResponse.md
new file mode 100644
index 00000000..ae0925e4
--- /dev/null
+++ b/docs/GetIndustriesResponse.md
@@ -0,0 +1,31 @@
+# GetIndustriesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**industries** | [**List[GetIndustriesResponseIndustriesInner]**](GetIndustriesResponseIndustriesInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_industries_response import GetIndustriesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetIndustriesResponse from a JSON string
+get_industries_response_instance = GetIndustriesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetIndustriesResponse.to_json())
+
+# convert the object into a dict
+get_industries_response_dict = get_industries_response_instance.to_dict()
+# create an instance of GetIndustriesResponse from a dict
+get_industries_response_from_dict = GetIndustriesResponse.from_dict(get_industries_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetIndustriesResponseIndustriesInner.md b/docs/GetIndustriesResponseIndustriesInner.md
new file mode 100644
index 00000000..6d7b3095
--- /dev/null
+++ b/docs/GetIndustriesResponseIndustriesInner.md
@@ -0,0 +1,30 @@
+# GetIndustriesResponseIndustriesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | The unique key for the industry. | [optional]
+**name** | **str** | The display name for the industry. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_industries_response_industries_inner import GetIndustriesResponseIndustriesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetIndustriesResponseIndustriesInner from a JSON string
+get_industries_response_industries_inner_instance = GetIndustriesResponseIndustriesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetIndustriesResponseIndustriesInner.to_json())
+
+# convert the object into a dict
+get_industries_response_industries_inner_dict = get_industries_response_industries_inner_instance.to_dict()
+# create an instance of GetIndustriesResponseIndustriesInner from a dict
+get_industries_response_industries_inner_from_dict = GetIndustriesResponseIndustriesInner.from_dict(get_industries_response_industries_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationFeatureFlagsResponse.md b/docs/GetOrganizationFeatureFlagsResponse.md
new file mode 100644
index 00000000..5447adcf
--- /dev/null
+++ b/docs/GetOrganizationFeatureFlagsResponse.md
@@ -0,0 +1,31 @@
+# GetOrganizationFeatureFlagsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**feature_flags** | [**Dict[str, GetOrganizationFeatureFlagsResponseFeatureFlagsValue]**](GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md) | The environment's feature flag settings. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationFeatureFlagsResponse from a JSON string
+get_organization_feature_flags_response_instance = GetOrganizationFeatureFlagsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationFeatureFlagsResponse.to_json())
+
+# convert the object into a dict
+get_organization_feature_flags_response_dict = get_organization_feature_flags_response_instance.to_dict()
+# create an instance of GetOrganizationFeatureFlagsResponse from a dict
+get_organization_feature_flags_response_from_dict = GetOrganizationFeatureFlagsResponse.from_dict(get_organization_feature_flags_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md b/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md
new file mode 100644
index 00000000..929ed8a3
--- /dev/null
+++ b/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md
@@ -0,0 +1,30 @@
+# GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | | [optional]
+**value** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value import GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationFeatureFlagsResponseFeatureFlagsValue from a JSON string
+get_organization_feature_flags_response_feature_flags_value_instance = GetOrganizationFeatureFlagsResponseFeatureFlagsValue.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationFeatureFlagsResponseFeatureFlagsValue.to_json())
+
+# convert the object into a dict
+get_organization_feature_flags_response_feature_flags_value_dict = get_organization_feature_flags_response_feature_flags_value_instance.to_dict()
+# create an instance of GetOrganizationFeatureFlagsResponseFeatureFlagsValue from a dict
+get_organization_feature_flags_response_feature_flags_value_from_dict = GetOrganizationFeatureFlagsResponseFeatureFlagsValue.from_dict(get_organization_feature_flags_response_feature_flags_value_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationResponse.md b/docs/GetOrganizationResponse.md
new file mode 100644
index 00000000..1fd4fa6e
--- /dev/null
+++ b/docs/GetOrganizationResponse.md
@@ -0,0 +1,56 @@
+# GetOrganizationResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | The unique identifier for the organization. | [optional]
+**name** | **str** | The organization's name. | [optional]
+**handle** | **str** | A unique handle for the organization - can be used for dynamic callback urls. | [optional]
+**is_default** | **bool** | Whether the organization is the default organization. | [optional]
+**external_id** | **str** | The organization's external identifier - commonly used when migrating from or mapping to other systems. | [optional]
+**is_auto_membership_enabled** | **bool** | If users become members of this organization when the org code is supplied during authentication. | [optional]
+**logo** | **str** | The organization's logo URL. | [optional]
+**logo_dark** | **str** | The organization's logo URL to be used for dark themes. | [optional]
+**favicon_svg** | **str** | The organization's SVG favicon URL. Optimal format for most browsers | [optional]
+**favicon_fallback** | **str** | The favicon URL to be used as a fallback in browsers that don’t support SVG, add a PNG | [optional]
+**link_color** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**background_color** | [**GetEnvironmentResponseEnvironmentBackgroundColor**](GetEnvironmentResponseEnvironmentBackgroundColor.md) | | [optional]
+**button_color** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_text_color** | [**GetEnvironmentResponseEnvironmentBackgroundColor**](GetEnvironmentResponseEnvironmentBackgroundColor.md) | | [optional]
+**link_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**background_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_text_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_color_dark** | [**GetEnvironmentResponseEnvironmentLinkColor**](GetEnvironmentResponseEnvironmentLinkColor.md) | | [optional]
+**button_border_radius** | **int** | The border radius for buttons. Value is px, Kinde transforms to rem for rendering | [optional]
+**card_border_radius** | **int** | The border radius for cards. Value is px, Kinde transforms to rem for rendering | [optional]
+**input_border_radius** | **int** | The border radius for inputs. Value is px, Kinde transforms to rem for rendering | [optional]
+**theme_code** | **str** | Whether the environment is forced into light mode, dark mode or user preference | [optional]
+**color_scheme** | **str** | The color scheme for the environment used for meta tags based on the theme code | [optional]
+**created_on** | **str** | Date of organization creation in ISO 8601 format. | [optional]
+**is_allow_registrations** | **bool** | Deprecated - Use 'is_auto_membership_enabled' instead | [optional]
+**sender_name** | **str** | The name of the organization that will be used in emails | [optional]
+**sender_email** | **str** | The email address that will be used in emails. Requires custom SMTP to be set up. | [optional]
+**billing** | [**GetOrganizationResponseBilling**](GetOrganizationResponseBilling.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organization_response import GetOrganizationResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationResponse from a JSON string
+get_organization_response_instance = GetOrganizationResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationResponse.to_json())
+
+# convert the object into a dict
+get_organization_response_dict = get_organization_response_instance.to_dict()
+# create an instance of GetOrganizationResponse from a dict
+get_organization_response_from_dict = GetOrganizationResponse.from_dict(get_organization_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationResponseBilling.md b/docs/GetOrganizationResponseBilling.md
new file mode 100644
index 00000000..b0b0e17f
--- /dev/null
+++ b/docs/GetOrganizationResponseBilling.md
@@ -0,0 +1,31 @@
+# GetOrganizationResponseBilling
+
+The billing information if the organization is a billing customer.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_customer_id** | **str** | | [optional]
+**agreements** | [**List[GetOrganizationResponseBillingAgreementsInner]**](GetOrganizationResponseBillingAgreementsInner.md) | The billing agreements the billing customer is currently subscribed to | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organization_response_billing import GetOrganizationResponseBilling
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationResponseBilling from a JSON string
+get_organization_response_billing_instance = GetOrganizationResponseBilling.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationResponseBilling.to_json())
+
+# convert the object into a dict
+get_organization_response_billing_dict = get_organization_response_billing_instance.to_dict()
+# create an instance of GetOrganizationResponseBilling from a dict
+get_organization_response_billing_from_dict = GetOrganizationResponseBilling.from_dict(get_organization_response_billing_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationResponseBillingAgreementsInner.md b/docs/GetOrganizationResponseBillingAgreementsInner.md
new file mode 100644
index 00000000..fad10ce0
--- /dev/null
+++ b/docs/GetOrganizationResponseBillingAgreementsInner.md
@@ -0,0 +1,30 @@
+# GetOrganizationResponseBillingAgreementsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**plan_code** | **str** | The code of the plan from which this agreement is taken from | [optional]
+**agreement_id** | **str** | The id of the billing agreement in Kinde | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organization_response_billing_agreements_inner import GetOrganizationResponseBillingAgreementsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationResponseBillingAgreementsInner from a JSON string
+get_organization_response_billing_agreements_inner_instance = GetOrganizationResponseBillingAgreementsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationResponseBillingAgreementsInner.to_json())
+
+# convert the object into a dict
+get_organization_response_billing_agreements_inner_dict = get_organization_response_billing_agreements_inner_instance.to_dict()
+# create an instance of GetOrganizationResponseBillingAgreementsInner from a dict
+get_organization_response_billing_agreements_inner_from_dict = GetOrganizationResponseBillingAgreementsInner.from_dict(get_organization_response_billing_agreements_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationUsersResponse.md b/docs/GetOrganizationUsersResponse.md
new file mode 100644
index 00000000..d4d246db
--- /dev/null
+++ b/docs/GetOrganizationUsersResponse.md
@@ -0,0 +1,32 @@
+# GetOrganizationUsersResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**organization_users** | [**List[OrganizationUser]**](OrganizationUser.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organization_users_response import GetOrganizationUsersResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationUsersResponse from a JSON string
+get_organization_users_response_instance = GetOrganizationUsersResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationUsersResponse.to_json())
+
+# convert the object into a dict
+get_organization_users_response_dict = get_organization_users_response_instance.to_dict()
+# create an instance of GetOrganizationUsersResponse from a dict
+get_organization_users_response_from_dict = GetOrganizationUsersResponse.from_dict(get_organization_users_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationsResponse.md b/docs/GetOrganizationsResponse.md
new file mode 100644
index 00000000..aa5b49f7
--- /dev/null
+++ b/docs/GetOrganizationsResponse.md
@@ -0,0 +1,32 @@
+# GetOrganizationsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**organizations** | [**List[OrganizationItemSchema]**](OrganizationItemSchema.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organizations_response import GetOrganizationsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationsResponse from a JSON string
+get_organizations_response_instance = GetOrganizationsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationsResponse.to_json())
+
+# convert the object into a dict
+get_organizations_response_dict = get_organizations_response_instance.to_dict()
+# create an instance of GetOrganizationsResponse from a dict
+get_organizations_response_from_dict = GetOrganizationsResponse.from_dict(get_organizations_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationsUserPermissionsResponse.md b/docs/GetOrganizationsUserPermissionsResponse.md
new file mode 100644
index 00000000..af94b154
--- /dev/null
+++ b/docs/GetOrganizationsUserPermissionsResponse.md
@@ -0,0 +1,31 @@
+# GetOrganizationsUserPermissionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**permissions** | [**List[OrganizationUserPermission]**](OrganizationUserPermission.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationsUserPermissionsResponse from a JSON string
+get_organizations_user_permissions_response_instance = GetOrganizationsUserPermissionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationsUserPermissionsResponse.to_json())
+
+# convert the object into a dict
+get_organizations_user_permissions_response_dict = get_organizations_user_permissions_response_instance.to_dict()
+# create an instance of GetOrganizationsUserPermissionsResponse from a dict
+get_organizations_user_permissions_response_from_dict = GetOrganizationsUserPermissionsResponse.from_dict(get_organizations_user_permissions_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetOrganizationsUserRolesResponse.md b/docs/GetOrganizationsUserRolesResponse.md
new file mode 100644
index 00000000..e2e8beeb
--- /dev/null
+++ b/docs/GetOrganizationsUserRolesResponse.md
@@ -0,0 +1,32 @@
+# GetOrganizationsUserRolesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**roles** | [**List[OrganizationUserRole]**](OrganizationUserRole.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizationsUserRolesResponse from a JSON string
+get_organizations_user_roles_response_instance = GetOrganizationsUserRolesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizationsUserRolesResponse.to_json())
+
+# convert the object into a dict
+get_organizations_user_roles_response_dict = get_organizations_user_roles_response_instance.to_dict()
+# create an instance of GetOrganizationsUserRolesResponse from a dict
+get_organizations_user_roles_response_from_dict = GetOrganizationsUserRolesResponse.from_dict(get_organizations_user_roles_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetPermissionsResponse.md b/docs/GetPermissionsResponse.md
new file mode 100644
index 00000000..97e35872
--- /dev/null
+++ b/docs/GetPermissionsResponse.md
@@ -0,0 +1,32 @@
+# GetPermissionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**permissions** | [**List[Permissions]**](Permissions.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_permissions_response import GetPermissionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetPermissionsResponse from a JSON string
+get_permissions_response_instance = GetPermissionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetPermissionsResponse.to_json())
+
+# convert the object into a dict
+get_permissions_response_dict = get_permissions_response_instance.to_dict()
+# create an instance of GetPermissionsResponse from a dict
+get_permissions_response_from_dict = GetPermissionsResponse.from_dict(get_permissions_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetPortalLink.md b/docs/GetPortalLink.md
new file mode 100644
index 00000000..f143f08b
--- /dev/null
+++ b/docs/GetPortalLink.md
@@ -0,0 +1,29 @@
+# GetPortalLink
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**url** | **str** | Unique URL to redirect the user to. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_portal_link import GetPortalLink
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetPortalLink from a JSON string
+get_portal_link_instance = GetPortalLink.from_json(json)
+# print the JSON string representation of the object
+print(GetPortalLink.to_json())
+
+# convert the object into a dict
+get_portal_link_dict = get_portal_link_instance.to_dict()
+# create an instance of GetPortalLink from a dict
+get_portal_link_from_dict = GetPortalLink.from_dict(get_portal_link_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetPropertiesResponse.md b/docs/GetPropertiesResponse.md
new file mode 100644
index 00000000..d20def85
--- /dev/null
+++ b/docs/GetPropertiesResponse.md
@@ -0,0 +1,32 @@
+# GetPropertiesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**properties** | [**List[ModelProperty]**](ModelProperty.md) | | [optional]
+**has_more** | **bool** | Whether more records exist. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_properties_response import GetPropertiesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetPropertiesResponse from a JSON string
+get_properties_response_instance = GetPropertiesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetPropertiesResponse.to_json())
+
+# convert the object into a dict
+get_properties_response_dict = get_properties_response_instance.to_dict()
+# create an instance of GetPropertiesResponse from a dict
+get_properties_response_from_dict = GetPropertiesResponse.from_dict(get_properties_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetPropertyValuesResponse.md b/docs/GetPropertyValuesResponse.md
new file mode 100644
index 00000000..1041960e
--- /dev/null
+++ b/docs/GetPropertyValuesResponse.md
@@ -0,0 +1,32 @@
+# GetPropertyValuesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**properties** | [**List[PropertyValue]**](PropertyValue.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetPropertyValuesResponse from a JSON string
+get_property_values_response_instance = GetPropertyValuesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetPropertyValuesResponse.to_json())
+
+# convert the object into a dict
+get_property_values_response_dict = get_property_values_response_instance.to_dict()
+# create an instance of GetPropertyValuesResponse from a dict
+get_property_values_response_from_dict = GetPropertyValuesResponse.from_dict(get_property_values_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetRedirectCallbackUrlsResponse.md b/docs/GetRedirectCallbackUrlsResponse.md
new file mode 100644
index 00000000..98e631e8
--- /dev/null
+++ b/docs/GetRedirectCallbackUrlsResponse.md
@@ -0,0 +1,29 @@
+# GetRedirectCallbackUrlsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**redirect_urls** | [**List[RedirectCallbackUrls]**](RedirectCallbackUrls.md) | An application's redirect callback URLs. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_redirect_callback_urls_response import GetRedirectCallbackUrlsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetRedirectCallbackUrlsResponse from a JSON string
+get_redirect_callback_urls_response_instance = GetRedirectCallbackUrlsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetRedirectCallbackUrlsResponse.to_json())
+
+# convert the object into a dict
+get_redirect_callback_urls_response_dict = get_redirect_callback_urls_response_instance.to_dict()
+# create an instance of GetRedirectCallbackUrlsResponse from a dict
+get_redirect_callback_urls_response_from_dict = GetRedirectCallbackUrlsResponse.from_dict(get_redirect_callback_urls_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetRoleResponse.md b/docs/GetRoleResponse.md
new file mode 100644
index 00000000..0239a338
--- /dev/null
+++ b/docs/GetRoleResponse.md
@@ -0,0 +1,31 @@
+# GetRoleResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**role** | [**GetRoleResponseRole**](GetRoleResponseRole.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_role_response import GetRoleResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetRoleResponse from a JSON string
+get_role_response_instance = GetRoleResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetRoleResponse.to_json())
+
+# convert the object into a dict
+get_role_response_dict = get_role_response_instance.to_dict()
+# create an instance of GetRoleResponse from a dict
+get_role_response_from_dict = GetRoleResponse.from_dict(get_role_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetRoleResponseRole.md b/docs/GetRoleResponseRole.md
new file mode 100644
index 00000000..4baa8a19
--- /dev/null
+++ b/docs/GetRoleResponseRole.md
@@ -0,0 +1,33 @@
+# GetRoleResponseRole
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The role's ID. | [optional]
+**key** | **str** | The role identifier to use in code. | [optional]
+**name** | **str** | The role's name. | [optional]
+**description** | **str** | The role's description. | [optional]
+**is_default_role** | **bool** | Whether the role is the default role. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_role_response_role import GetRoleResponseRole
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetRoleResponseRole from a JSON string
+get_role_response_role_instance = GetRoleResponseRole.from_json(json)
+# print the JSON string representation of the object
+print(GetRoleResponseRole.to_json())
+
+# convert the object into a dict
+get_role_response_role_dict = get_role_response_role_instance.to_dict()
+# create an instance of GetRoleResponseRole from a dict
+get_role_response_role_from_dict = GetRoleResponseRole.from_dict(get_role_response_role_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetRolesResponse.md b/docs/GetRolesResponse.md
new file mode 100644
index 00000000..6c29993f
--- /dev/null
+++ b/docs/GetRolesResponse.md
@@ -0,0 +1,32 @@
+# GetRolesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**roles** | [**List[Roles]**](Roles.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_roles_response import GetRolesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetRolesResponse from a JSON string
+get_roles_response_instance = GetRolesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetRolesResponse.to_json())
+
+# convert the object into a dict
+get_roles_response_dict = get_roles_response_instance.to_dict()
+# create an instance of GetRolesResponse from a dict
+get_roles_response_from_dict = GetRolesResponse.from_dict(get_roles_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetSubscriberResponse.md b/docs/GetSubscriberResponse.md
new file mode 100644
index 00000000..da8a1ab0
--- /dev/null
+++ b/docs/GetSubscriberResponse.md
@@ -0,0 +1,31 @@
+# GetSubscriberResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**subscribers** | [**List[Subscriber]**](Subscriber.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_subscriber_response import GetSubscriberResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetSubscriberResponse from a JSON string
+get_subscriber_response_instance = GetSubscriberResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetSubscriberResponse.to_json())
+
+# convert the object into a dict
+get_subscriber_response_dict = get_subscriber_response_instance.to_dict()
+# create an instance of GetSubscriberResponse from a dict
+get_subscriber_response_from_dict = GetSubscriberResponse.from_dict(get_subscriber_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetSubscribersResponse.md b/docs/GetSubscribersResponse.md
new file mode 100644
index 00000000..4170e2e7
--- /dev/null
+++ b/docs/GetSubscribersResponse.md
@@ -0,0 +1,32 @@
+# GetSubscribersResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**subscribers** | [**List[SubscribersSubscriber]**](SubscribersSubscriber.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_subscribers_response import GetSubscribersResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetSubscribersResponse from a JSON string
+get_subscribers_response_instance = GetSubscribersResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetSubscribersResponse.to_json())
+
+# convert the object into a dict
+get_subscribers_response_dict = get_subscribers_response_instance.to_dict()
+# create an instance of GetSubscribersResponse from a dict
+get_subscribers_response_from_dict = GetSubscribersResponse.from_dict(get_subscribers_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetTimezonesResponse.md b/docs/GetTimezonesResponse.md
new file mode 100644
index 00000000..015c21c9
--- /dev/null
+++ b/docs/GetTimezonesResponse.md
@@ -0,0 +1,31 @@
+# GetTimezonesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**timezones** | [**List[GetTimezonesResponseTimezonesInner]**](GetTimezonesResponseTimezonesInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_timezones_response import GetTimezonesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetTimezonesResponse from a JSON string
+get_timezones_response_instance = GetTimezonesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetTimezonesResponse.to_json())
+
+# convert the object into a dict
+get_timezones_response_dict = get_timezones_response_instance.to_dict()
+# create an instance of GetTimezonesResponse from a dict
+get_timezones_response_from_dict = GetTimezonesResponse.from_dict(get_timezones_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetTimezonesResponseTimezonesInner.md b/docs/GetTimezonesResponseTimezonesInner.md
new file mode 100644
index 00000000..4d47dcaa
--- /dev/null
+++ b/docs/GetTimezonesResponseTimezonesInner.md
@@ -0,0 +1,30 @@
+# GetTimezonesResponseTimezonesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | The unique key for the timezone. | [optional]
+**name** | **str** | The display name for the timezone. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_timezones_response_timezones_inner import GetTimezonesResponseTimezonesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetTimezonesResponseTimezonesInner from a JSON string
+get_timezones_response_timezones_inner_instance = GetTimezonesResponseTimezonesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetTimezonesResponseTimezonesInner.to_json())
+
+# convert the object into a dict
+get_timezones_response_timezones_inner_dict = get_timezones_response_timezones_inner_instance.to_dict()
+# create an instance of GetTimezonesResponseTimezonesInner from a dict
+get_timezones_response_timezones_inner_from_dict = GetTimezonesResponseTimezonesInner.from_dict(get_timezones_response_timezones_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserMfaResponse.md b/docs/GetUserMfaResponse.md
new file mode 100644
index 00000000..3e54ae26
--- /dev/null
+++ b/docs/GetUserMfaResponse.md
@@ -0,0 +1,31 @@
+# GetUserMfaResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**mfa** | [**GetUserMfaResponseMfa**](GetUserMfaResponseMfa.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserMfaResponse from a JSON string
+get_user_mfa_response_instance = GetUserMfaResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetUserMfaResponse.to_json())
+
+# convert the object into a dict
+get_user_mfa_response_dict = get_user_mfa_response_instance.to_dict()
+# create an instance of GetUserMfaResponse from a dict
+get_user_mfa_response_from_dict = GetUserMfaResponse.from_dict(get_user_mfa_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserMfaResponseMfa.md b/docs/GetUserMfaResponseMfa.md
new file mode 100644
index 00000000..12a60a0e
--- /dev/null
+++ b/docs/GetUserMfaResponseMfa.md
@@ -0,0 +1,35 @@
+# GetUserMfaResponseMfa
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The MFA's identifier. | [optional]
+**type** | **str** | The type of MFA (e.g. email, SMS, authenticator app). | [optional]
+**created_on** | **datetime** | The timestamp when the MFA was created. | [optional]
+**name** | **str** | The identifier used for MFA (e.g. email address, phone number). | [optional]
+**is_verified** | **bool** | Whether the MFA is verified or not. | [optional]
+**usage_count** | **int** | The number of times MFA has been used. | [optional]
+**last_used_on** | **datetime** | The timestamp when the MFA was last used. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_mfa_response_mfa import GetUserMfaResponseMfa
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserMfaResponseMfa from a JSON string
+get_user_mfa_response_mfa_instance = GetUserMfaResponseMfa.from_json(json)
+# print the JSON string representation of the object
+print(GetUserMfaResponseMfa.to_json())
+
+# convert the object into a dict
+get_user_mfa_response_mfa_dict = get_user_mfa_response_mfa_instance.to_dict()
+# create an instance of GetUserMfaResponseMfa from a dict
+get_user_mfa_response_mfa_from_dict = GetUserMfaResponseMfa.from_dict(get_user_mfa_response_mfa_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPermissionsResponse.md b/docs/GetUserPermissionsResponse.md
new file mode 100644
index 00000000..8c0aa388
--- /dev/null
+++ b/docs/GetUserPermissionsResponse.md
@@ -0,0 +1,30 @@
+# GetUserPermissionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GetUserPermissionsResponseData**](GetUserPermissionsResponseData.md) | | [optional]
+**metadata** | [**GetUserPermissionsResponseMetadata**](GetUserPermissionsResponseMetadata.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_permissions_response import GetUserPermissionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPermissionsResponse from a JSON string
+get_user_permissions_response_instance = GetUserPermissionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPermissionsResponse.to_json())
+
+# convert the object into a dict
+get_user_permissions_response_dict = get_user_permissions_response_instance.to_dict()
+# create an instance of GetUserPermissionsResponse from a dict
+get_user_permissions_response_from_dict = GetUserPermissionsResponse.from_dict(get_user_permissions_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPermissionsResponseData.md b/docs/GetUserPermissionsResponseData.md
new file mode 100644
index 00000000..556f1af3
--- /dev/null
+++ b/docs/GetUserPermissionsResponseData.md
@@ -0,0 +1,30 @@
+# GetUserPermissionsResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**org_code** | **str** | The organization code the roles are associated with. | [optional]
+**permissions** | [**List[GetUserPermissionsResponseDataPermissionsInner]**](GetUserPermissionsResponseDataPermissionsInner.md) | A list of permissions | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_permissions_response_data import GetUserPermissionsResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPermissionsResponseData from a JSON string
+get_user_permissions_response_data_instance = GetUserPermissionsResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPermissionsResponseData.to_json())
+
+# convert the object into a dict
+get_user_permissions_response_data_dict = get_user_permissions_response_data_instance.to_dict()
+# create an instance of GetUserPermissionsResponseData from a dict
+get_user_permissions_response_data_from_dict = GetUserPermissionsResponseData.from_dict(get_user_permissions_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPermissionsResponseDataPermissionsInner.md b/docs/GetUserPermissionsResponseDataPermissionsInner.md
new file mode 100644
index 00000000..4bbc80ea
--- /dev/null
+++ b/docs/GetUserPermissionsResponseDataPermissionsInner.md
@@ -0,0 +1,31 @@
+# GetUserPermissionsResponseDataPermissionsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly ID of a permission | [optional]
+**name** | **str** | The name of the permission | [optional]
+**key** | **str** | The key of the permission | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_permissions_response_data_permissions_inner import GetUserPermissionsResponseDataPermissionsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPermissionsResponseDataPermissionsInner from a JSON string
+get_user_permissions_response_data_permissions_inner_instance = GetUserPermissionsResponseDataPermissionsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPermissionsResponseDataPermissionsInner.to_json())
+
+# convert the object into a dict
+get_user_permissions_response_data_permissions_inner_dict = get_user_permissions_response_data_permissions_inner_instance.to_dict()
+# create an instance of GetUserPermissionsResponseDataPermissionsInner from a dict
+get_user_permissions_response_data_permissions_inner_from_dict = GetUserPermissionsResponseDataPermissionsInner.from_dict(get_user_permissions_response_data_permissions_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPermissionsResponseMetadata.md b/docs/GetUserPermissionsResponseMetadata.md
new file mode 100644
index 00000000..6441e809
--- /dev/null
+++ b/docs/GetUserPermissionsResponseMetadata.md
@@ -0,0 +1,30 @@
+# GetUserPermissionsResponseMetadata
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**has_more** | **bool** | Whether more records exist. | [optional]
+**next_page_starting_after** | **str** | The ID of the last record on the current page. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_permissions_response_metadata import GetUserPermissionsResponseMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPermissionsResponseMetadata from a JSON string
+get_user_permissions_response_metadata_instance = GetUserPermissionsResponseMetadata.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPermissionsResponseMetadata.to_json())
+
+# convert the object into a dict
+get_user_permissions_response_metadata_dict = get_user_permissions_response_metadata_instance.to_dict()
+# create an instance of GetUserPermissionsResponseMetadata from a dict
+get_user_permissions_response_metadata_from_dict = GetUserPermissionsResponseMetadata.from_dict(get_user_permissions_response_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPropertiesResponse.md b/docs/GetUserPropertiesResponse.md
new file mode 100644
index 00000000..f108ce88
--- /dev/null
+++ b/docs/GetUserPropertiesResponse.md
@@ -0,0 +1,30 @@
+# GetUserPropertiesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GetUserPropertiesResponseData**](GetUserPropertiesResponseData.md) | | [optional]
+**metadata** | [**GetUserPropertiesResponseMetadata**](GetUserPropertiesResponseMetadata.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_properties_response import GetUserPropertiesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPropertiesResponse from a JSON string
+get_user_properties_response_instance = GetUserPropertiesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPropertiesResponse.to_json())
+
+# convert the object into a dict
+get_user_properties_response_dict = get_user_properties_response_instance.to_dict()
+# create an instance of GetUserPropertiesResponse from a dict
+get_user_properties_response_from_dict = GetUserPropertiesResponse.from_dict(get_user_properties_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPropertiesResponseData.md b/docs/GetUserPropertiesResponseData.md
new file mode 100644
index 00000000..499007d8
--- /dev/null
+++ b/docs/GetUserPropertiesResponseData.md
@@ -0,0 +1,29 @@
+# GetUserPropertiesResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**properties** | [**List[GetUserPropertiesResponseDataPropertiesInner]**](GetUserPropertiesResponseDataPropertiesInner.md) | A list of properties | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_properties_response_data import GetUserPropertiesResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPropertiesResponseData from a JSON string
+get_user_properties_response_data_instance = GetUserPropertiesResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPropertiesResponseData.to_json())
+
+# convert the object into a dict
+get_user_properties_response_data_dict = get_user_properties_response_data_instance.to_dict()
+# create an instance of GetUserPropertiesResponseData from a dict
+get_user_properties_response_data_from_dict = GetUserPropertiesResponseData.from_dict(get_user_properties_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPropertiesResponseDataPropertiesInner.md b/docs/GetUserPropertiesResponseDataPropertiesInner.md
new file mode 100644
index 00000000..321a5b26
--- /dev/null
+++ b/docs/GetUserPropertiesResponseDataPropertiesInner.md
@@ -0,0 +1,32 @@
+# GetUserPropertiesResponseDataPropertiesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly ID of a property | [optional]
+**name** | **str** | The name of the property | [optional]
+**key** | **str** | The key of the property | [optional]
+**value** | [**StringBooleanInteger**](StringBooleanInteger.md) | The value of the property | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_properties_response_data_properties_inner import GetUserPropertiesResponseDataPropertiesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPropertiesResponseDataPropertiesInner from a JSON string
+get_user_properties_response_data_properties_inner_instance = GetUserPropertiesResponseDataPropertiesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPropertiesResponseDataPropertiesInner.to_json())
+
+# convert the object into a dict
+get_user_properties_response_data_properties_inner_dict = get_user_properties_response_data_properties_inner_instance.to_dict()
+# create an instance of GetUserPropertiesResponseDataPropertiesInner from a dict
+get_user_properties_response_data_properties_inner_from_dict = GetUserPropertiesResponseDataPropertiesInner.from_dict(get_user_properties_response_data_properties_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserPropertiesResponseMetadata.md b/docs/GetUserPropertiesResponseMetadata.md
new file mode 100644
index 00000000..0d3ddea5
--- /dev/null
+++ b/docs/GetUserPropertiesResponseMetadata.md
@@ -0,0 +1,30 @@
+# GetUserPropertiesResponseMetadata
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**has_more** | **bool** | Whether more records exist. | [optional]
+**next_page_starting_after** | **str** | The ID of the last record on the current page. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_properties_response_metadata import GetUserPropertiesResponseMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserPropertiesResponseMetadata from a JSON string
+get_user_properties_response_metadata_instance = GetUserPropertiesResponseMetadata.from_json(json)
+# print the JSON string representation of the object
+print(GetUserPropertiesResponseMetadata.to_json())
+
+# convert the object into a dict
+get_user_properties_response_metadata_dict = get_user_properties_response_metadata_instance.to_dict()
+# create an instance of GetUserPropertiesResponseMetadata from a dict
+get_user_properties_response_metadata_from_dict = GetUserPropertiesResponseMetadata.from_dict(get_user_properties_response_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserRolesResponse.md b/docs/GetUserRolesResponse.md
new file mode 100644
index 00000000..e9f66dba
--- /dev/null
+++ b/docs/GetUserRolesResponse.md
@@ -0,0 +1,30 @@
+# GetUserRolesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GetUserRolesResponseData**](GetUserRolesResponseData.md) | | [optional]
+**metadata** | [**GetUserRolesResponseMetadata**](GetUserRolesResponseMetadata.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_roles_response import GetUserRolesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserRolesResponse from a JSON string
+get_user_roles_response_instance = GetUserRolesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetUserRolesResponse.to_json())
+
+# convert the object into a dict
+get_user_roles_response_dict = get_user_roles_response_instance.to_dict()
+# create an instance of GetUserRolesResponse from a dict
+get_user_roles_response_from_dict = GetUserRolesResponse.from_dict(get_user_roles_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserRolesResponseData.md b/docs/GetUserRolesResponseData.md
new file mode 100644
index 00000000..ff299a23
--- /dev/null
+++ b/docs/GetUserRolesResponseData.md
@@ -0,0 +1,30 @@
+# GetUserRolesResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**org_code** | **str** | The organization code the roles are associated with. | [optional]
+**roles** | [**List[GetUserRolesResponseDataRolesInner]**](GetUserRolesResponseDataRolesInner.md) | A list of roles | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_roles_response_data import GetUserRolesResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserRolesResponseData from a JSON string
+get_user_roles_response_data_instance = GetUserRolesResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GetUserRolesResponseData.to_json())
+
+# convert the object into a dict
+get_user_roles_response_data_dict = get_user_roles_response_data_instance.to_dict()
+# create an instance of GetUserRolesResponseData from a dict
+get_user_roles_response_data_from_dict = GetUserRolesResponseData.from_dict(get_user_roles_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserRolesResponseDataRolesInner.md b/docs/GetUserRolesResponseDataRolesInner.md
new file mode 100644
index 00000000..523f6418
--- /dev/null
+++ b/docs/GetUserRolesResponseDataRolesInner.md
@@ -0,0 +1,31 @@
+# GetUserRolesResponseDataRolesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The friendly ID of a role | [optional]
+**name** | **str** | The name of the role | [optional]
+**key** | **str** | The key of the role | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_roles_response_data_roles_inner import GetUserRolesResponseDataRolesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserRolesResponseDataRolesInner from a JSON string
+get_user_roles_response_data_roles_inner_instance = GetUserRolesResponseDataRolesInner.from_json(json)
+# print the JSON string representation of the object
+print(GetUserRolesResponseDataRolesInner.to_json())
+
+# convert the object into a dict
+get_user_roles_response_data_roles_inner_dict = get_user_roles_response_data_roles_inner_instance.to_dict()
+# create an instance of GetUserRolesResponseDataRolesInner from a dict
+get_user_roles_response_data_roles_inner_from_dict = GetUserRolesResponseDataRolesInner.from_dict(get_user_roles_response_data_roles_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserRolesResponseMetadata.md b/docs/GetUserRolesResponseMetadata.md
new file mode 100644
index 00000000..ce75f1f8
--- /dev/null
+++ b/docs/GetUserRolesResponseMetadata.md
@@ -0,0 +1,30 @@
+# GetUserRolesResponseMetadata
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**has_more** | **bool** | Whether more records exist. | [optional]
+**next_page_starting_after** | **str** | The ID of the last record on the current page. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_roles_response_metadata import GetUserRolesResponseMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserRolesResponseMetadata from a JSON string
+get_user_roles_response_metadata_instance = GetUserRolesResponseMetadata.from_json(json)
+# print the JSON string representation of the object
+print(GetUserRolesResponseMetadata.to_json())
+
+# convert the object into a dict
+get_user_roles_response_metadata_dict = get_user_roles_response_metadata_instance.to_dict()
+# create an instance of GetUserRolesResponseMetadata from a dict
+get_user_roles_response_metadata_from_dict = GetUserRolesResponseMetadata.from_dict(get_user_roles_response_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserSessionsResponse.md b/docs/GetUserSessionsResponse.md
new file mode 100644
index 00000000..a94b5970
--- /dev/null
+++ b/docs/GetUserSessionsResponse.md
@@ -0,0 +1,32 @@
+# GetUserSessionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | | [optional]
+**message** | **str** | | [optional]
+**has_more** | **bool** | | [optional]
+**sessions** | [**List[GetUserSessionsResponseSessionsInner]**](GetUserSessionsResponseSessionsInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_sessions_response import GetUserSessionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserSessionsResponse from a JSON string
+get_user_sessions_response_instance = GetUserSessionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetUserSessionsResponse.to_json())
+
+# convert the object into a dict
+get_user_sessions_response_dict = get_user_sessions_response_instance.to_dict()
+# create an instance of GetUserSessionsResponse from a dict
+get_user_sessions_response_from_dict = GetUserSessionsResponse.from_dict(get_user_sessions_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetUserSessionsResponseSessionsInner.md b/docs/GetUserSessionsResponseSessionsInner.md
new file mode 100644
index 00000000..85d628cd
--- /dev/null
+++ b/docs/GetUserSessionsResponseSessionsInner.md
@@ -0,0 +1,40 @@
+# GetUserSessionsResponseSessionsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**user_id** | **str** | The unique identifier of the user associated with the session. | [optional]
+**org_code** | **str** | The organization code associated with the session, if applicable. | [optional]
+**client_id** | **str** | The client ID used to initiate the session. | [optional]
+**expires_on** | **datetime** | The timestamp indicating when the session will expire. | [optional]
+**session_id** | **str** | The unique identifier of the session. | [optional]
+**started_on** | **datetime** | The timestamp when the session was initiated. | [optional]
+**updated_on** | **datetime** | The timestamp of the last update to the session. | [optional]
+**connection_id** | **str** | The identifier of the connection through which the session was established. | [optional]
+**last_ip_address** | **str** | The last known IP address of the user during this session. | [optional]
+**last_user_agent** | **str** | The last known user agent (browser or app) used during this session. | [optional]
+**initial_ip_address** | **str** | The IP address from which the session was initially started. | [optional]
+**initial_user_agent** | **str** | The user agent (browser or app) used when the session was first created. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_user_sessions_response_sessions_inner import GetUserSessionsResponseSessionsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetUserSessionsResponseSessionsInner from a JSON string
+get_user_sessions_response_sessions_inner_instance = GetUserSessionsResponseSessionsInner.from_json(json)
+# print the JSON string representation of the object
+print(GetUserSessionsResponseSessionsInner.to_json())
+
+# convert the object into a dict
+get_user_sessions_response_sessions_inner_dict = get_user_sessions_response_sessions_inner_instance.to_dict()
+# create an instance of GetUserSessionsResponseSessionsInner from a dict
+get_user_sessions_response_sessions_inner_from_dict = GetUserSessionsResponseSessionsInner.from_dict(get_user_sessions_response_sessions_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetWebhooksResponse.md b/docs/GetWebhooksResponse.md
new file mode 100644
index 00000000..efa9107f
--- /dev/null
+++ b/docs/GetWebhooksResponse.md
@@ -0,0 +1,31 @@
+# GetWebhooksResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**webhooks** | [**List[Webhook]**](Webhook.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.get_webhooks_response import GetWebhooksResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetWebhooksResponse from a JSON string
+get_webhooks_response_instance = GetWebhooksResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetWebhooksResponse.to_json())
+
+# convert the object into a dict
+get_webhooks_response_dict = get_webhooks_response_instance.to_dict()
+# create an instance of GetWebhooksResponse from a dict
+get_webhooks_response_from_dict = GetWebhooksResponse.from_dict(get_webhooks_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IdentitiesApi.md b/docs/IdentitiesApi.md
new file mode 100644
index 00000000..dbf319e5
--- /dev/null
+++ b/docs/IdentitiesApi.md
@@ -0,0 +1,272 @@
+# kinde_sdk.IdentitiesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**delete_identity**](IdentitiesApi.md#delete_identity) | **DELETE** /api/v1/identities/{identity_id} | Delete identity
+[**get_identity**](IdentitiesApi.md#get_identity) | **GET** /api/v1/identities/{identity_id} | Get identity
+[**update_identity**](IdentitiesApi.md#update_identity) | **PATCH** /api/v1/identities/{identity_id} | Update identity
+
+
+# **delete_identity**
+> SuccessResponse delete_identity(identity_id)
+
+Delete identity
+
+Delete identity by ID.
+
+
+ delete:identities
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.IdentitiesApi(api_client)
+ identity_id = 'identity_id_example' # str | The unique identifier for the identity.
+
+ try:
+ # Delete identity
+ api_response = api_instance.delete_identity(identity_id)
+ print("The response of IdentitiesApi->delete_identity:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling IdentitiesApi->delete_identity: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **identity_id** | **str**| The unique identifier for the identity. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Identity successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_identity**
+> Identity get_identity(identity_id)
+
+Get identity
+
+Returns an identity by ID
+
+
+ read:identities
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.identity import Identity
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.IdentitiesApi(api_client)
+ identity_id = 'identity_id_example' # str | The unique identifier for the identity.
+
+ try:
+ # Get identity
+ api_response = api_instance.get_identity(identity_id)
+ print("The response of IdentitiesApi->get_identity:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling IdentitiesApi->get_identity: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **identity_id** | **str**| The unique identifier for the identity. |
+
+### Return type
+
+[**Identity**](Identity.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Identity successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_identity**
+> SuccessResponse update_identity(identity_id, update_identity_request)
+
+Update identity
+
+Update identity by ID.
+
+
+ update:identities
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_identity_request import UpdateIdentityRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.IdentitiesApi(api_client)
+ identity_id = 'identity_id_example' # str | The unique identifier for the identity.
+ update_identity_request = kinde_sdk.UpdateIdentityRequest() # UpdateIdentityRequest | The fields of the identity to update.
+
+ try:
+ # Update identity
+ api_response = api_instance.update_identity(identity_id, update_identity_request)
+ print("The response of IdentitiesApi->update_identity:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling IdentitiesApi->update_identity: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **identity_id** | **str**| The unique identifier for the identity. |
+ **update_identity_request** | [**UpdateIdentityRequest**](UpdateIdentityRequest.md)| The fields of the identity to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Identity successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/Identity.md b/docs/Identity.md
new file mode 100644
index 00000000..f30782f7
--- /dev/null
+++ b/docs/Identity.md
@@ -0,0 +1,37 @@
+# Identity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the identity | [optional]
+**type** | **str** | The type of identity | [optional]
+**is_confirmed** | **bool** | Whether the identity is confirmed | [optional]
+**created_on** | **str** | Date of user creation in ISO 8601 format | [optional]
+**last_login_on** | **str** | Date of last login in ISO 8601 format | [optional]
+**total_logins** | **int** | | [optional]
+**name** | **str** | The value of the identity | [optional]
+**email** | **str** | The associated email of the identity | [optional]
+**is_primary** | **bool** | Whether the identity is the primary identity for the user | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.identity import Identity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Identity from a JSON string
+identity_instance = Identity.from_json(json)
+# print the JSON string representation of the object
+print(Identity.to_json())
+
+# convert the object into a dict
+identity_dict = identity_instance.to_dict()
+# create an instance of Identity from a dict
+identity_from_dict = Identity.from_dict(identity_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IndustriesApi.md b/docs/IndustriesApi.md
new file mode 100644
index 00000000..47d3fe4f
--- /dev/null
+++ b/docs/IndustriesApi.md
@@ -0,0 +1,91 @@
+# kinde_sdk.IndustriesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_industries**](IndustriesApi.md#get_industries) | **GET** /api/v1/industries | Get industries
+
+
+# **get_industries**
+> GetIndustriesResponse get_industries()
+
+Get industries
+
+Get a list of industries and associated industry keys.
+
+
+ read:industries
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_industries_response import GetIndustriesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.IndustriesApi(api_client)
+
+ try:
+ # Get industries
+ api_response = api_instance.get_industries()
+ print("The response of IndustriesApi->get_industries:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling IndustriesApi->get_industries: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetIndustriesResponse**](GetIndustriesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A list of industries. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/LogoutRedirectUrls.md b/docs/LogoutRedirectUrls.md
new file mode 100644
index 00000000..224b9f3b
--- /dev/null
+++ b/docs/LogoutRedirectUrls.md
@@ -0,0 +1,31 @@
+# LogoutRedirectUrls
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**logout_urls** | **List[str]** | An application's logout URLs. | [optional]
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.logout_redirect_urls import LogoutRedirectUrls
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of LogoutRedirectUrls from a JSON string
+logout_redirect_urls_instance = LogoutRedirectUrls.from_json(json)
+# print the JSON string representation of the object
+print(LogoutRedirectUrls.to_json())
+
+# convert the object into a dict
+logout_redirect_urls_dict = logout_redirect_urls_instance.to_dict()
+# create an instance of LogoutRedirectUrls from a dict
+logout_redirect_urls_from_dict = LogoutRedirectUrls.from_dict(logout_redirect_urls_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/MFAApi.md b/docs/MFAApi.md
new file mode 100644
index 00000000..8518c8ed
--- /dev/null
+++ b/docs/MFAApi.md
@@ -0,0 +1,96 @@
+# kinde_sdk.MFAApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**replace_mfa**](MFAApi.md#replace_mfa) | **PUT** /api/v1/mfa | Replace MFA Configuration
+
+
+# **replace_mfa**
+> SuccessResponse replace_mfa(replace_mfa_request)
+
+Replace MFA Configuration
+
+Replace MFA Configuration.
+
+
+ update:mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_mfa_request import ReplaceMFARequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.MFAApi(api_client)
+ replace_mfa_request = kinde_sdk.ReplaceMFARequest() # ReplaceMFARequest | MFA details.
+
+ try:
+ # Replace MFA Configuration
+ api_response = api_instance.replace_mfa(replace_mfa_request)
+ print("The response of MFAApi->replace_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MFAApi->replace_mfa: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **replace_mfa_request** | [**ReplaceMFARequest**](ReplaceMFARequest.md)| MFA details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | MFA Configuration updated successfully. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/ModelProperty.md b/docs/ModelProperty.md
new file mode 100644
index 00000000..b59558a6
--- /dev/null
+++ b/docs/ModelProperty.md
@@ -0,0 +1,34 @@
+# ModelProperty
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**key** | **str** | | [optional]
+**name** | **str** | | [optional]
+**is_private** | **bool** | | [optional]
+**description** | **str** | | [optional]
+**is_kinde_property** | **bool** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.model_property import ModelProperty
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ModelProperty from a JSON string
+model_property_instance = ModelProperty.from_json(json)
+# print the JSON string representation of the object
+print(ModelProperty.to_json())
+
+# convert the object into a dict
+model_property_dict = model_property_instance.to_dict()
+# create an instance of ModelProperty from a dict
+model_property_from_dict = ModelProperty.from_dict(model_property_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/NotFoundResponse.md b/docs/NotFoundResponse.md
new file mode 100644
index 00000000..e1050fdf
--- /dev/null
+++ b/docs/NotFoundResponse.md
@@ -0,0 +1,29 @@
+# NotFoundResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**errors** | [**NotFoundResponseErrors**](NotFoundResponseErrors.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.not_found_response import NotFoundResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of NotFoundResponse from a JSON string
+not_found_response_instance = NotFoundResponse.from_json(json)
+# print the JSON string representation of the object
+print(NotFoundResponse.to_json())
+
+# convert the object into a dict
+not_found_response_dict = not_found_response_instance.to_dict()
+# create an instance of NotFoundResponse from a dict
+not_found_response_from_dict = NotFoundResponse.from_dict(not_found_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/NotFoundResponseErrors.md b/docs/NotFoundResponseErrors.md
new file mode 100644
index 00000000..874f57ff
--- /dev/null
+++ b/docs/NotFoundResponseErrors.md
@@ -0,0 +1,30 @@
+# NotFoundResponseErrors
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | | [optional]
+**message** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.not_found_response_errors import NotFoundResponseErrors
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of NotFoundResponseErrors from a JSON string
+not_found_response_errors_instance = NotFoundResponseErrors.from_json(json)
+# print the JSON string representation of the object
+print(NotFoundResponseErrors.to_json())
+
+# convert the object into a dict
+not_found_response_errors_dict = not_found_response_errors_instance.to_dict()
+# create an instance of NotFoundResponseErrors from a dict
+not_found_response_errors_from_dict = NotFoundResponseErrors.from_dict(not_found_response_errors_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OAuthApi.md b/docs/OAuthApi.md
new file mode 100644
index 00000000..99d18041
--- /dev/null
+++ b/docs/OAuthApi.md
@@ -0,0 +1,256 @@
+# kinde_sdk.OAuthApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_user_profile_v2**](OAuthApi.md#get_user_profile_v2) | **GET** /oauth2/v2/user_profile | Get user profile
+[**token_introspection**](OAuthApi.md#token_introspection) | **POST** /oauth2/introspect | Introspect
+[**token_revocation**](OAuthApi.md#token_revocation) | **POST** /oauth2/revoke | Revoke token
+
+
+# **get_user_profile_v2**
+> UserProfileV2 get_user_profile_v2()
+
+Get user profile
+
+This endpoint returns a user's ID, names, profile picture URL and email of the currently logged in user.
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.user_profile_v2 import UserProfileV2
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OAuthApi(api_client)
+
+ try:
+ # Get user profile
+ api_response = api_instance.get_user_profile_v2()
+ print("The response of OAuthApi->get_user_profile_v2:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OAuthApi->get_user_profile_v2: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**UserProfileV2**](UserProfileV2.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Details of logged in user. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **token_introspection**
+> TokenIntrospect token_introspection(token, token_type_hint=token_type_hint)
+
+Introspect
+
+Retrieve information about the provided token.
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.token_introspect import TokenIntrospect
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OAuthApi(api_client)
+ token = 'token_example' # str | The token to be introspected.
+ token_type_hint = 'token_type_hint_example' # str | A hint about the token type being queried in the request. (optional)
+
+ try:
+ # Introspect
+ api_response = api_instance.token_introspection(token, token_type_hint=token_type_hint)
+ print("The response of OAuthApi->token_introspection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OAuthApi->token_introspection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **token** | **str**| The token to be introspected. |
+ **token_type_hint** | **str**| A hint about the token type being queried in the request. | [optional]
+
+### Return type
+
+[**TokenIntrospect**](TokenIntrospect.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Details of the token. | - |
+**401** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **token_revocation**
+> token_revocation(client_id, token, client_secret=client_secret, token_type_hint=token_type_hint)
+
+Revoke token
+
+Use this endpoint to invalidate an access or refresh token. The token will no longer be valid for use.
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OAuthApi(api_client)
+ client_id = 'client_id_example' # str | The `client_id` of your application.
+ token = 'token_example' # str | The token to be revoked.
+ client_secret = 'client_secret_example' # str | The `client_secret` of your application. Required for backend apps only. (optional)
+ token_type_hint = 'token_type_hint_example' # str | The type of token to be revoked. (optional)
+
+ try:
+ # Revoke token
+ api_instance.token_revocation(client_id, token, client_secret=client_secret, token_type_hint=token_type_hint)
+ except Exception as e:
+ print("Exception when calling OAuthApi->token_revocation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **client_id** | **str**| The `client_id` of your application. |
+ **token** | **str**| The token to be revoked. |
+ **client_secret** | **str**| The `client_secret` of your application. Required for backend apps only. | [optional]
+ **token_type_hint** | **str**| The type of token to be revoked. | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Token successfully revoked. | - |
+**400** | Invalid request. | - |
+**401** | Bad request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/OrganizationItemSchema.md b/docs/OrganizationItemSchema.md
new file mode 100644
index 00000000..314c8be4
--- /dev/null
+++ b/docs/OrganizationItemSchema.md
@@ -0,0 +1,34 @@
+# OrganizationItemSchema
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | The unique identifier for the organization. | [optional]
+**name** | **str** | The organization's name. | [optional]
+**handle** | **str** | A unique handle for the organization - can be used for dynamic callback urls. | [optional]
+**is_default** | **bool** | Whether the organization is the default organization. | [optional]
+**external_id** | **str** | The organization's external identifier - commonly used when migrating from or mapping to other systems. | [optional]
+**is_auto_membership_enabled** | **bool** | If users become members of this organization when the org code is supplied during authentication. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_item_schema import OrganizationItemSchema
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationItemSchema from a JSON string
+organization_item_schema_instance = OrganizationItemSchema.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationItemSchema.to_json())
+
+# convert the object into a dict
+organization_item_schema_dict = organization_item_schema_instance.to_dict()
+# create an instance of OrganizationItemSchema from a dict
+organization_item_schema_from_dict = OrganizationItemSchema.from_dict(organization_item_schema_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationUser.md b/docs/OrganizationUser.md
new file mode 100644
index 00000000..4ba24f13
--- /dev/null
+++ b/docs/OrganizationUser.md
@@ -0,0 +1,37 @@
+# OrganizationUser
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The unique ID for the user. | [optional]
+**email** | **str** | The user's email address. | [optional]
+**full_name** | **str** | The user's full name. | [optional]
+**last_name** | **str** | The user's last name. | [optional]
+**first_name** | **str** | The user's first name. | [optional]
+**picture** | **str** | The user's profile picture URL. | [optional]
+**joined_on** | **str** | The date the user joined the organization. | [optional]
+**last_accessed_on** | **str** | The date the user last accessed the organization. | [optional]
+**roles** | **List[str]** | The roles the user has in the organization. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_user import OrganizationUser
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationUser from a JSON string
+organization_user_instance = OrganizationUser.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationUser.to_json())
+
+# convert the object into a dict
+organization_user_dict = organization_user_instance.to_dict()
+# create an instance of OrganizationUser from a dict
+organization_user_from_dict = OrganizationUser.from_dict(organization_user_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationUserPermission.md b/docs/OrganizationUserPermission.md
new file mode 100644
index 00000000..c1f7988c
--- /dev/null
+++ b/docs/OrganizationUserPermission.md
@@ -0,0 +1,33 @@
+# OrganizationUserPermission
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**key** | **str** | | [optional]
+**name** | **str** | | [optional]
+**description** | **str** | | [optional]
+**roles** | [**List[OrganizationUserPermissionRolesInner]**](OrganizationUserPermissionRolesInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_user_permission import OrganizationUserPermission
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationUserPermission from a JSON string
+organization_user_permission_instance = OrganizationUserPermission.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationUserPermission.to_json())
+
+# convert the object into a dict
+organization_user_permission_dict = organization_user_permission_instance.to_dict()
+# create an instance of OrganizationUserPermission from a dict
+organization_user_permission_from_dict = OrganizationUserPermission.from_dict(organization_user_permission_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationUserPermissionRolesInner.md b/docs/OrganizationUserPermissionRolesInner.md
new file mode 100644
index 00000000..3dd90edf
--- /dev/null
+++ b/docs/OrganizationUserPermissionRolesInner.md
@@ -0,0 +1,30 @@
+# OrganizationUserPermissionRolesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**key** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_user_permission_roles_inner import OrganizationUserPermissionRolesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationUserPermissionRolesInner from a JSON string
+organization_user_permission_roles_inner_instance = OrganizationUserPermissionRolesInner.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationUserPermissionRolesInner.to_json())
+
+# convert the object into a dict
+organization_user_permission_roles_inner_dict = organization_user_permission_roles_inner_instance.to_dict()
+# create an instance of OrganizationUserPermissionRolesInner from a dict
+organization_user_permission_roles_inner_from_dict = OrganizationUserPermissionRolesInner.from_dict(organization_user_permission_roles_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationUserRole.md b/docs/OrganizationUserRole.md
new file mode 100644
index 00000000..8157a4f5
--- /dev/null
+++ b/docs/OrganizationUserRole.md
@@ -0,0 +1,31 @@
+# OrganizationUserRole
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**key** | **str** | | [optional]
+**name** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_user_role import OrganizationUserRole
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationUserRole from a JSON string
+organization_user_role_instance = OrganizationUserRole.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationUserRole.to_json())
+
+# convert the object into a dict
+organization_user_role_dict = organization_user_role_instance.to_dict()
+# create an instance of OrganizationUserRole from a dict
+organization_user_role_from_dict = OrganizationUserRole.from_dict(organization_user_role_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationUserRolePermissions.md b/docs/OrganizationUserRolePermissions.md
new file mode 100644
index 00000000..60c72877
--- /dev/null
+++ b/docs/OrganizationUserRolePermissions.md
@@ -0,0 +1,31 @@
+# OrganizationUserRolePermissions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**role** | **str** | | [optional]
+**permissions** | [**OrganizationUserRolePermissionsPermissions**](OrganizationUserRolePermissionsPermissions.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_user_role_permissions import OrganizationUserRolePermissions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationUserRolePermissions from a JSON string
+organization_user_role_permissions_instance = OrganizationUserRolePermissions.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationUserRolePermissions.to_json())
+
+# convert the object into a dict
+organization_user_role_permissions_dict = organization_user_role_permissions_instance.to_dict()
+# create an instance of OrganizationUserRolePermissions from a dict
+organization_user_role_permissions_from_dict = OrganizationUserRolePermissions.from_dict(organization_user_role_permissions_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationUserRolePermissionsPermissions.md b/docs/OrganizationUserRolePermissionsPermissions.md
new file mode 100644
index 00000000..c5737174
--- /dev/null
+++ b/docs/OrganizationUserRolePermissionsPermissions.md
@@ -0,0 +1,29 @@
+# OrganizationUserRolePermissionsPermissions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.organization_user_role_permissions_permissions import OrganizationUserRolePermissionsPermissions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationUserRolePermissionsPermissions from a JSON string
+organization_user_role_permissions_permissions_instance = OrganizationUserRolePermissionsPermissions.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationUserRolePermissionsPermissions.to_json())
+
+# convert the object into a dict
+organization_user_role_permissions_permissions_dict = organization_user_role_permissions_permissions_instance.to_dict()
+# create an instance of OrganizationUserRolePermissionsPermissions from a dict
+organization_user_role_permissions_permissions_from_dict = OrganizationUserRolePermissionsPermissions.from_dict(organization_user_role_permissions_permissions_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationsApi.md b/docs/OrganizationsApi.md
new file mode 100644
index 00000000..070e3e15
--- /dev/null
+++ b/docs/OrganizationsApi.md
@@ -0,0 +1,3234 @@
+# kinde_sdk.OrganizationsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_organization_logo**](OrganizationsApi.md#add_organization_logo) | **POST** /api/v1/organizations/{org_code}/logos/{type} | Add organization logo
+[**add_organization_user_api_scope**](OrganizationsApi.md#add_organization_user_api_scope) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id} | Add scope to organization user api
+[**add_organization_users**](OrganizationsApi.md#add_organization_users) | **POST** /api/v1/organizations/{org_code}/users | Add Organization Users
+[**create_organization**](OrganizationsApi.md#create_organization) | **POST** /api/v1/organization | Create organization
+[**create_organization_user_permission**](OrganizationsApi.md#create_organization_user_permission) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/permissions | Add Organization User Permission
+[**create_organization_user_role**](OrganizationsApi.md#create_organization_user_role) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/roles | Add Organization User Role
+[**delete_organization**](OrganizationsApi.md#delete_organization) | **DELETE** /api/v1/organization/{org_code} | Delete Organization
+[**delete_organization_feature_flag_override**](OrganizationsApi.md#delete_organization_feature_flag_override) | **DELETE** /api/v1/organizations/{org_code}/feature_flags/{feature_flag_key} | Delete Organization Feature Flag Override
+[**delete_organization_feature_flag_overrides**](OrganizationsApi.md#delete_organization_feature_flag_overrides) | **DELETE** /api/v1/organizations/{org_code}/feature_flags | Delete Organization Feature Flag Overrides
+[**delete_organization_handle**](OrganizationsApi.md#delete_organization_handle) | **DELETE** /api/v1/organization/{org_code}/handle | Delete organization handle
+[**delete_organization_logo**](OrganizationsApi.md#delete_organization_logo) | **DELETE** /api/v1/organizations/{org_code}/logos/{type} | Delete organization logo
+[**delete_organization_user_api_scope**](OrganizationsApi.md#delete_organization_user_api_scope) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id} | Delete scope from organization user API
+[**delete_organization_user_permission**](OrganizationsApi.md#delete_organization_user_permission) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id} | Delete Organization User Permission
+[**delete_organization_user_role**](OrganizationsApi.md#delete_organization_user_role) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id} | Delete Organization User Role
+[**enable_org_connection**](OrganizationsApi.md#enable_org_connection) | **POST** /api/v1/organizations/{organization_code}/connections/{connection_id} | Enable connection
+[**get_org_user_mfa**](OrganizationsApi.md#get_org_user_mfa) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/mfa | Get an organization user's MFA configuration
+[**get_organization**](OrganizationsApi.md#get_organization) | **GET** /api/v1/organization | Get organization
+[**get_organization_connections**](OrganizationsApi.md#get_organization_connections) | **GET** /api/v1/organizations/{organization_code}/connections | Get connections
+[**get_organization_feature_flags**](OrganizationsApi.md#get_organization_feature_flags) | **GET** /api/v1/organizations/{org_code}/feature_flags | List Organization Feature Flags
+[**get_organization_property_values**](OrganizationsApi.md#get_organization_property_values) | **GET** /api/v1/organizations/{org_code}/properties | Get Organization Property Values
+[**get_organization_user_permissions**](OrganizationsApi.md#get_organization_user_permissions) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/permissions | List Organization User Permissions
+[**get_organization_user_roles**](OrganizationsApi.md#get_organization_user_roles) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/roles | List Organization User Roles
+[**get_organization_users**](OrganizationsApi.md#get_organization_users) | **GET** /api/v1/organizations/{org_code}/users | Get organization users
+[**get_organizations**](OrganizationsApi.md#get_organizations) | **GET** /api/v1/organizations | Get organizations
+[**read_organization_logo**](OrganizationsApi.md#read_organization_logo) | **GET** /api/v1/organizations/{org_code}/logos | Read organization logo details
+[**remove_org_connection**](OrganizationsApi.md#remove_org_connection) | **DELETE** /api/v1/organizations/{organization_code}/connections/{connection_id} | Remove connection
+[**remove_organization_user**](OrganizationsApi.md#remove_organization_user) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id} | Remove Organization User
+[**replace_organization_mfa**](OrganizationsApi.md#replace_organization_mfa) | **PUT** /api/v1/organizations/{org_code}/mfa | Replace Organization MFA Configuration
+[**reset_org_user_mfa**](OrganizationsApi.md#reset_org_user_mfa) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/mfa/{factor_id} | Reset specific organization MFA for a user
+[**reset_org_user_mfa_all**](OrganizationsApi.md#reset_org_user_mfa_all) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/mfa | Reset all organization MFA for a user
+[**update_organization**](OrganizationsApi.md#update_organization) | **PATCH** /api/v1/organization/{org_code} | Update Organization
+[**update_organization_feature_flag_override**](OrganizationsApi.md#update_organization_feature_flag_override) | **PATCH** /api/v1/organizations/{org_code}/feature_flags/{feature_flag_key} | Update Organization Feature Flag Override
+[**update_organization_properties**](OrganizationsApi.md#update_organization_properties) | **PATCH** /api/v1/organizations/{org_code}/properties | Update Organization Property values
+[**update_organization_property**](OrganizationsApi.md#update_organization_property) | **PUT** /api/v1/organizations/{org_code}/properties/{property_key} | Update Organization Property value
+[**update_organization_sessions**](OrganizationsApi.md#update_organization_sessions) | **PATCH** /api/v1/organizations/{org_code}/sessions | Update organization session configuration
+[**update_organization_users**](OrganizationsApi.md#update_organization_users) | **PATCH** /api/v1/organizations/{org_code}/users | Update Organization Users
+
+
+# **add_organization_logo**
+> SuccessResponse add_organization_logo(org_code, type, logo)
+
+Add organization logo
+
+Add organization logo
+
+
+ update:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The organization's code.
+ type = 'dark' # str | The type of logo to add.
+ logo = None # bytearray | The logo file to upload.
+
+ try:
+ # Add organization logo
+ api_response = api_instance.add_organization_logo(org_code, type, logo)
+ print("The response of OrganizationsApi->add_organization_logo:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->add_organization_logo: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **type** | **str**| The type of logo to add. |
+ **logo** | **bytearray**| The logo file to upload. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization logo successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **add_organization_user_api_scope**
+> add_organization_user_api_scope(org_code, user_id, api_id, scope_id)
+
+Add scope to organization user api
+
+Add a scope to an organization user api.
+
+
+ create:organization_user_api_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization.
+ user_id = 'kp_5ce676e5d6a24bc9aac2fba35a46e958' # str | User ID
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Add scope to organization user api
+ api_instance.add_organization_user_api_scope(org_code, user_id, api_id, scope_id)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->add_organization_user_api_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **user_id** | **str**| User ID |
+ **api_id** | **str**| API ID |
+ **scope_id** | **str**| Scope ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | API scope successfully added to organization user api | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **add_organization_users**
+> AddOrganizationUsersResponse add_organization_users(org_code, add_organization_users_request=add_organization_users_request)
+
+Add Organization Users
+
+Add existing users to an organization.
+
+
+ create:organization_users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.add_organization_users_request import AddOrganizationUsersRequest
+from kinde_sdk.models.add_organization_users_response import AddOrganizationUsersResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ add_organization_users_request = kinde_sdk.AddOrganizationUsersRequest() # AddOrganizationUsersRequest | (optional)
+
+ try:
+ # Add Organization Users
+ api_response = api_instance.add_organization_users(org_code, add_organization_users_request=add_organization_users_request)
+ print("The response of OrganizationsApi->add_organization_users:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->add_organization_users: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **add_organization_users_request** | [**AddOrganizationUsersRequest**](AddOrganizationUsersRequest.md)| | [optional]
+
+### Return type
+
+[**AddOrganizationUsersResponse**](AddOrganizationUsersResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Users successfully added. | - |
+**204** | No users added. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_organization**
+> CreateOrganizationResponse create_organization(create_organization_request)
+
+Create organization
+
+Create a new organization. To learn more read about [multi tenancy using organizations](https://docs.kinde.com/build/organizations/multi-tenancy-using-organizations/)
+
+
+ create:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_organization_request import CreateOrganizationRequest
+from kinde_sdk.models.create_organization_response import CreateOrganizationResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ create_organization_request = kinde_sdk.CreateOrganizationRequest() # CreateOrganizationRequest | Organization details.
+
+ try:
+ # Create organization
+ api_response = api_instance.create_organization(create_organization_request)
+ print("The response of OrganizationsApi->create_organization:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->create_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_organization_request** | [**CreateOrganizationRequest**](CreateOrganizationRequest.md)| Organization details. |
+
+### Return type
+
+[**CreateOrganizationResponse**](CreateOrganizationResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_organization_user_permission**
+> SuccessResponse create_organization_user_permission(org_code, user_id, create_organization_user_permission_request)
+
+Add Organization User Permission
+
+Add permission to an organization user.
+
+
+ create:organization_user_permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_organization_user_permission_request import CreateOrganizationUserPermissionRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+ create_organization_user_permission_request = kinde_sdk.CreateOrganizationUserPermissionRequest() # CreateOrganizationUserPermissionRequest | Permission details.
+
+ try:
+ # Add Organization User Permission
+ api_response = api_instance.create_organization_user_permission(org_code, user_id, create_organization_user_permission_request)
+ print("The response of OrganizationsApi->create_organization_user_permission:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->create_organization_user_permission: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+ **create_organization_user_permission_request** | [**CreateOrganizationUserPermissionRequest**](CreateOrganizationUserPermissionRequest.md)| Permission details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User permission successfully updated. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_organization_user_role**
+> SuccessResponse create_organization_user_role(org_code, user_id, create_organization_user_role_request)
+
+Add Organization User Role
+
+Add role to an organization user.
+
+
+ create:organization_user_roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_organization_user_role_request import CreateOrganizationUserRoleRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+ create_organization_user_role_request = kinde_sdk.CreateOrganizationUserRoleRequest() # CreateOrganizationUserRoleRequest | Role details.
+
+ try:
+ # Add Organization User Role
+ api_response = api_instance.create_organization_user_role(org_code, user_id, create_organization_user_role_request)
+ print("The response of OrganizationsApi->create_organization_user_role:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->create_organization_user_role: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+ **create_organization_user_role_request** | [**CreateOrganizationUserRoleRequest**](CreateOrganizationUserRoleRequest.md)| Role details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Role successfully added. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization**
+> SuccessResponse delete_organization(org_code)
+
+Delete Organization
+
+Delete an organization.
+
+
+ delete:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization.
+
+ try:
+ # Delete Organization
+ api_response = api_instance.delete_organization(org_code)
+ print("The response of OrganizationsApi->delete_organization:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_feature_flag_override**
+> SuccessResponse delete_organization_feature_flag_override(org_code, feature_flag_key)
+
+Delete Organization Feature Flag Override
+
+Delete organization feature flag override.
+
+
+ delete:organization_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization.
+ feature_flag_key = 'feature_flag_key_example' # str | The identifier for the feature flag.
+
+ try:
+ # Delete Organization Feature Flag Override
+ api_response = api_instance.delete_organization_feature_flag_override(org_code, feature_flag_key)
+ print("The response of OrganizationsApi->delete_organization_feature_flag_override:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_feature_flag_override: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **feature_flag_key** | **str**| The identifier for the feature flag. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag override successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_feature_flag_overrides**
+> SuccessResponse delete_organization_feature_flag_overrides(org_code)
+
+Delete Organization Feature Flag Overrides
+
+Delete all organization feature flag overrides.
+
+
+ delete:organization_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization.
+
+ try:
+ # Delete Organization Feature Flag Overrides
+ api_response = api_instance.delete_organization_feature_flag_overrides(org_code)
+ print("The response of OrganizationsApi->delete_organization_feature_flag_overrides:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_feature_flag_overrides: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag overrides successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_handle**
+> SuccessResponse delete_organization_handle(org_code)
+
+Delete organization handle
+
+Delete organization handle
+
+
+ delete:organization_handles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+
+ try:
+ # Delete organization handle
+ api_response = api_instance.delete_organization_handle(org_code)
+ print("The response of OrganizationsApi->delete_organization_handle:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_handle: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Handle successfully deleted. | - |
+**400** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_logo**
+> SuccessResponse delete_organization_logo(org_code, type)
+
+Delete organization logo
+
+Delete organization logo
+
+
+ update:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The organization's code.
+ type = 'dark' # str | The type of logo to delete.
+
+ try:
+ # Delete organization logo
+ api_response = api_instance.delete_organization_logo(org_code, type)
+ print("The response of OrganizationsApi->delete_organization_logo:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_logo: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **type** | **str**| The type of logo to delete. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization logo successfully deleted | - |
+**204** | No logo found to delete | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_user_api_scope**
+> delete_organization_user_api_scope(org_code, user_id, api_id, scope_id)
+
+Delete scope from organization user API
+
+Delete a scope from an organization user api you previously created.
+
+
+ delete:organization_user_api_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization.
+ user_id = 'kp_5ce676e5d6a24bc9aac2fba35a46e958' # str | User ID
+ api_id = '838f208d006a482dbd8cdb79a9889f68' # str | API ID
+ scope_id = 'api_scope_019391daf58d87d8a7213419c016ac95' # str | Scope ID
+
+ try:
+ # Delete scope from organization user API
+ api_instance.delete_organization_user_api_scope(org_code, user_id, api_id, scope_id)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_user_api_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **user_id** | **str**| User ID |
+ **api_id** | **str**| API ID |
+ **scope_id** | **str**| Scope ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization user API scope successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_user_permission**
+> SuccessResponse delete_organization_user_permission(org_code, user_id, permission_id)
+
+Delete Organization User Permission
+
+Delete permission for an organization user.
+
+
+ delete:organization_user_permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+ permission_id = 'permission_id_example' # str | The permission id.
+
+ try:
+ # Delete Organization User Permission
+ api_response = api_instance.delete_organization_user_permission(org_code, user_id, permission_id)
+ print("The response of OrganizationsApi->delete_organization_user_permission:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_user_permission: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+ **permission_id** | **str**| The permission id. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully removed. | - |
+**400** | Error creating user. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_organization_user_role**
+> SuccessResponse delete_organization_user_role(org_code, user_id, role_id)
+
+Delete Organization User Role
+
+Delete role for an organization user.
+
+
+ delete:organization_user_roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+ role_id = 'role_id_example' # str | The role id.
+
+ try:
+ # Delete Organization User Role
+ api_response = api_instance.delete_organization_user_role(org_code, user_id, role_id)
+ print("The response of OrganizationsApi->delete_organization_user_role:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization_user_role: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+ **role_id** | **str**| The role id. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully removed. | - |
+**400** | Error creating user. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **enable_org_connection**
+> enable_org_connection(organization_code, connection_id)
+
+Enable connection
+
+Enable an auth connection for an organization.
+
+
+ create:organization_connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ organization_code = 'org_7d45b01ef13' # str | The unique code for the organization.
+ connection_id = 'conn_0192c16abb53b44277e597d31877ba5b' # str | The identifier for the connection.
+
+ try:
+ # Enable connection
+ api_instance.enable_org_connection(organization_code, connection_id)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->enable_org_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_code** | **str**| The unique code for the organization. |
+ **connection_id** | **str**| The identifier for the connection. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully enabled. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_org_user_mfa**
+> GetUserMfaResponse get_org_user_mfa(org_code, user_id)
+
+Get an organization user's MFA configuration
+
+Get an organization user’s MFA configuration.
+
+
+ read:organization_user_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The identifier for the organization.
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+
+ try:
+ # Get an organization user's MFA configuration
+ api_response = api_instance.get_org_user_mfa(org_code, user_id)
+ print("The response of OrganizationsApi->get_org_user_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_org_user_mfa: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **user_id** | **str**| The identifier for the user |
+
+### Return type
+
+[**GetUserMfaResponse**](GetUserMfaResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successfully retrieve user's MFA configuration. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization**
+> GetOrganizationResponse get_organization(code=code)
+
+Get organization
+
+Retrieve organization details by code.
+
+
+ read:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_organization_response import GetOrganizationResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ code = 'org_1ccfb819462' # str | The organization's code. (optional)
+
+ try:
+ # Get organization
+ api_response = api_instance.get_organization(code=code)
+ print("The response of OrganizationsApi->get_organization:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **code** | **str**| The organization's code. | [optional]
+
+### Return type
+
+[**GetOrganizationResponse**](GetOrganizationResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_connections**
+> GetConnectionsResponse get_organization_connections(organization_code)
+
+Get connections
+
+Gets all connections for an organization.
+
+
+ read:organization_connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ organization_code = 'org_7d45b01ef13' # str | The organization code.
+
+ try:
+ # Get connections
+ api_response = api_instance.get_organization_connections(organization_code)
+ print("The response of OrganizationsApi->get_organization_connections:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_connections: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_code** | **str**| The organization code. |
+
+### Return type
+
+[**GetConnectionsResponse**](GetConnectionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization connections successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_feature_flags**
+> GetOrganizationFeatureFlagsResponse get_organization_feature_flags(org_code)
+
+List Organization Feature Flags
+
+Get all organization feature flags.
+
+
+ read:organization_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization.
+
+ try:
+ # List Organization Feature Flags
+ api_response = api_instance.get_organization_feature_flags(org_code)
+ print("The response of OrganizationsApi->get_organization_feature_flags:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_feature_flags: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+
+### Return type
+
+[**GetOrganizationFeatureFlagsResponse**](GetOrganizationFeatureFlagsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag overrides successfully returned. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_property_values**
+> GetPropertyValuesResponse get_organization_property_values(org_code)
+
+Get Organization Property Values
+
+Gets properties for an organization by org code.
+
+
+ read:organization_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+
+ try:
+ # Get Organization Property Values
+ api_response = api_instance.get_organization_property_values(org_code)
+ print("The response of OrganizationsApi->get_organization_property_values:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_property_values: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+
+### Return type
+
+[**GetPropertyValuesResponse**](GetPropertyValuesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully retrieved. | - |
+**400** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_user_permissions**
+> GetOrganizationsUserPermissionsResponse get_organization_user_permissions(org_code, user_id, expand=expand)
+
+List Organization User Permissions
+
+Get permissions for an organization user.
+
+
+ read:organization_user_permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+ expand = 'expand_example' # str | Specify additional data to retrieve. Use \"roles\". (optional)
+
+ try:
+ # List Organization User Permissions
+ api_response = api_instance.get_organization_user_permissions(org_code, user_id, expand=expand)
+ print("The response of OrganizationsApi->get_organization_user_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_user_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+ **expand** | **str**| Specify additional data to retrieve. Use \"roles\". | [optional]
+
+### Return type
+
+[**GetOrganizationsUserPermissionsResponse**](GetOrganizationsUserPermissionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response with a list of user permissions. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_user_roles**
+> GetOrganizationsUserRolesResponse get_organization_user_roles(org_code, user_id)
+
+List Organization User Roles
+
+Get roles for an organization user.
+
+
+ read:organization_user_roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+
+ try:
+ # List Organization User Roles
+ api_response = api_instance.get_organization_user_roles(org_code, user_id)
+ print("The response of OrganizationsApi->get_organization_user_roles:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_user_roles: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+
+### Return type
+
+[**GetOrganizationsUserRolesResponse**](GetOrganizationsUserRolesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response with a list of user roles. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_users**
+> GetOrganizationUsersResponse get_organization_users(org_code, sort=sort, page_size=page_size, next_token=next_token, permissions=permissions, roles=roles)
+
+Get organization users
+
+Get user details for all members of an organization.
+
+
+ read:organization_users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_organization_users_response import GetOrganizationUsersResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The organization's code.
+ sort = 'email_asc' # str | Field and order to sort the result by. (optional)
+ page_size = 10 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'MTo6OmlkX2FzYw==' # str | A string to get the next page of results if there are more results. (optional)
+ permissions = 'admin' # str | Filter by user permissions comma separated (where all match) (optional)
+ roles = 'manager' # str | Filter by user roles comma separated (where all match) (optional)
+
+ try:
+ # Get organization users
+ api_response = api_instance.get_organization_users(org_code, sort=sort, page_size=page_size, next_token=next_token, permissions=permissions, roles=roles)
+ print("The response of OrganizationsApi->get_organization_users:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_users: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+ **permissions** | **str**| Filter by user permissions comma separated (where all match) | [optional]
+ **roles** | **str**| Filter by user roles comma separated (where all match) | [optional]
+
+### Return type
+
+[**GetOrganizationUsersResponse**](GetOrganizationUsersResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response with a list of organization users or an empty list. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organizations**
+> GetOrganizationsResponse get_organizations(sort=sort, page_size=page_size, next_token=next_token)
+
+Get organizations
+
+Get a list of organizations.
+
+
+ read:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_organizations_response import GetOrganizationsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ sort = 'sort_example' # str | Field and order to sort the result by. (optional)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+
+ try:
+ # Get organizations
+ api_response = api_instance.get_organizations(sort=sort, page_size=page_size, next_token=next_token)
+ print("The response of OrganizationsApi->get_organizations:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organizations: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+
+### Return type
+
+[**GetOrganizationsResponse**](GetOrganizationsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organizations successfully retreived. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **read_organization_logo**
+> ReadLogoResponse read_organization_logo(org_code)
+
+Read organization logo details
+
+Read organization logo details
+
+
+ read:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.read_logo_response import ReadLogoResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The organization's code.
+
+ try:
+ # Read organization logo details
+ api_response = api_instance.read_organization_logo(org_code)
+ print("The response of OrganizationsApi->read_organization_logo:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->read_organization_logo: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+
+### Return type
+
+[**ReadLogoResponse**](ReadLogoResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successfully retrieved organization logo details | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **remove_org_connection**
+> SuccessResponse remove_org_connection(organization_code, connection_id)
+
+Remove connection
+
+Turn off an auth connection for an organization
+
+
+ delete:organization_connections
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ organization_code = 'org_7d45b01ef13' # str | The unique code for the organization.
+ connection_id = 'conn_0192c16abb53b44277e597d31877ba5b' # str | The identifier for the connection.
+
+ try:
+ # Remove connection
+ api_response = api_instance.remove_org_connection(organization_code, connection_id)
+ print("The response of OrganizationsApi->remove_org_connection:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->remove_org_connection: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_code** | **str**| The unique code for the organization. |
+ **connection_id** | **str**| The identifier for the connection. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Connection successfully removed. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **remove_organization_user**
+> SuccessResponse remove_organization_user(org_code, user_id)
+
+Remove Organization User
+
+Remove user from an organization.
+
+
+ delete:organization_users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ user_id = 'user_id_example' # str | The user's id.
+
+ try:
+ # Remove Organization User
+ api_response = api_instance.remove_organization_user(org_code, user_id)
+ print("The response of OrganizationsApi->remove_organization_user:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->remove_organization_user: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **user_id** | **str**| The user's id. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully removed from organization | - |
+**400** | Error removing user | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **replace_organization_mfa**
+> SuccessResponse replace_organization_mfa(org_code, replace_organization_mfa_request)
+
+Replace Organization MFA Configuration
+
+Replace Organization MFA Configuration.
+
+
+ update:organization_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.replace_organization_mfa_request import ReplaceOrganizationMFARequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization
+ replace_organization_mfa_request = kinde_sdk.ReplaceOrganizationMFARequest() # ReplaceOrganizationMFARequest | MFA details.
+
+ try:
+ # Replace Organization MFA Configuration
+ api_response = api_instance.replace_organization_mfa(org_code, replace_organization_mfa_request)
+ print("The response of OrganizationsApi->replace_organization_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->replace_organization_mfa: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization |
+ **replace_organization_mfa_request** | [**ReplaceOrganizationMFARequest**](ReplaceOrganizationMFARequest.md)| MFA details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | MFA Configuration updated successfully. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **reset_org_user_mfa**
+> SuccessResponse reset_org_user_mfa(org_code, user_id, factor_id)
+
+Reset specific organization MFA for a user
+
+Reset a specific organization MFA factor for a user.
+
+
+ delete:organization_user_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The identifier for the organization.
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+ factor_id = 'mfa_0193278a00ac29b3f6d4e4d462d55c47' # str | The identifier for the MFA factor
+
+ try:
+ # Reset specific organization MFA for a user
+ api_response = api_instance.reset_org_user_mfa(org_code, user_id, factor_id)
+ print("The response of OrganizationsApi->reset_org_user_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->reset_org_user_mfa: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **user_id** | **str**| The identifier for the user |
+ **factor_id** | **str**| The identifier for the MFA factor |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User's MFA successfully reset. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **reset_org_user_mfa_all**
+> SuccessResponse reset_org_user_mfa_all(org_code, user_id)
+
+Reset all organization MFA for a user
+
+Reset all organization MFA factors for a user.
+
+
+ delete:organization_user_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The identifier for the organization.
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+
+ try:
+ # Reset all organization MFA for a user
+ api_response = api_instance.reset_org_user_mfa_all(org_code, user_id)
+ print("The response of OrganizationsApi->reset_org_user_mfa_all:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->reset_org_user_mfa_all: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **user_id** | **str**| The identifier for the user |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User's MFA successfully reset. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_organization**
+> SuccessResponse update_organization(org_code, expand=expand, update_organization_request=update_organization_request)
+
+Update Organization
+
+Update an organization.
+
+
+ update:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_organization_request import UpdateOrganizationRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The identifier for the organization.
+ expand = 'expand_example' # str | Specify additional data to retrieve. Use \"billing\". (optional)
+ update_organization_request = kinde_sdk.UpdateOrganizationRequest() # UpdateOrganizationRequest | Organization details. (optional)
+
+ try:
+ # Update Organization
+ api_response = api_instance.update_organization(org_code, expand=expand, update_organization_request=update_organization_request)
+ print("The response of OrganizationsApi->update_organization:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization. |
+ **expand** | **str**| Specify additional data to retrieve. Use \"billing\". | [optional]
+ **update_organization_request** | [**UpdateOrganizationRequest**](UpdateOrganizationRequest.md)| Organization details. | [optional]
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_organization_feature_flag_override**
+> SuccessResponse update_organization_feature_flag_override(org_code, feature_flag_key, value)
+
+Update Organization Feature Flag Override
+
+Update organization feature flag override.
+
+
+ update:organization_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization
+ feature_flag_key = 'feature_flag_key_example' # str | The identifier for the feature flag
+ value = 'value_example' # str | Override value
+
+ try:
+ # Update Organization Feature Flag Override
+ api_response = api_instance.update_organization_feature_flag_override(org_code, feature_flag_key, value)
+ print("The response of OrganizationsApi->update_organization_feature_flag_override:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization_feature_flag_override: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization |
+ **feature_flag_key** | **str**| The identifier for the feature flag |
+ **value** | **str**| Override value |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag override successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_organization_properties**
+> SuccessResponse update_organization_properties(org_code, update_organization_properties_request)
+
+Update Organization Property values
+
+Update organization property values.
+
+
+ update:organization_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization
+ update_organization_properties_request = kinde_sdk.UpdateOrganizationPropertiesRequest() # UpdateOrganizationPropertiesRequest | Properties to update.
+
+ try:
+ # Update Organization Property values
+ api_response = api_instance.update_organization_properties(org_code, update_organization_properties_request)
+ print("The response of OrganizationsApi->update_organization_properties:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization_properties: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization |
+ **update_organization_properties_request** | [**UpdateOrganizationPropertiesRequest**](UpdateOrganizationPropertiesRequest.md)| Properties to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_organization_property**
+> SuccessResponse update_organization_property(org_code, property_key, value)
+
+Update Organization Property value
+
+Update organization property value.
+
+
+ update:organization_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The identifier for the organization
+ property_key = 'property_key_example' # str | The identifier for the property
+ value = 'value_example' # str | The new property value
+
+ try:
+ # Update Organization Property value
+ api_response = api_instance.update_organization_property(org_code, property_key, value)
+ print("The response of OrganizationsApi->update_organization_property:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization_property: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The identifier for the organization |
+ **property_key** | **str**| The identifier for the property |
+ **value** | **str**| The new property value |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Property successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_organization_sessions**
+> SuccessResponse update_organization_sessions(org_code, update_organization_sessions_request)
+
+Update organization session configuration
+
+Update the organization's session configuration.
+
+
+ update:organizations
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_organization_sessions_request import UpdateOrganizationSessionsRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_1ccfb819462' # str | The organization's code.
+ update_organization_sessions_request = kinde_sdk.UpdateOrganizationSessionsRequest() # UpdateOrganizationSessionsRequest | Organization session configuration.
+
+ try:
+ # Update organization session configuration
+ api_response = api_instance.update_organization_sessions(org_code, update_organization_sessions_request)
+ print("The response of OrganizationsApi->update_organization_sessions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization_sessions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **update_organization_sessions_request** | [**UpdateOrganizationSessionsRequest**](UpdateOrganizationSessionsRequest.md)| Organization session configuration. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization sessions successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_organization_users**
+> UpdateOrganizationUsersResponse update_organization_users(org_code, update_organization_users_request=update_organization_users_request)
+
+Update Organization Users
+
+Update users that belong to an organization.
+
+
+ update:organization_users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_organization_users_request import UpdateOrganizationUsersRequest
+from kinde_sdk.models.update_organization_users_response import UpdateOrganizationUsersResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.OrganizationsApi(api_client)
+ org_code = 'org_code_example' # str | The organization's code.
+ update_organization_users_request = kinde_sdk.UpdateOrganizationUsersRequest() # UpdateOrganizationUsersRequest | (optional)
+
+ try:
+ # Update Organization Users
+ api_response = api_instance.update_organization_users(org_code, update_organization_users_request=update_organization_users_request)
+ print("The response of OrganizationsApi->update_organization_users:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization_users: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_code** | **str**| The organization's code. |
+ **update_organization_users_request** | [**UpdateOrganizationUsersRequest**](UpdateOrganizationUsersRequest.md)| | [optional]
+
+### Return type
+
+[**UpdateOrganizationUsersResponse**](UpdateOrganizationUsersResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Users successfully removed. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/Permissions.md b/docs/Permissions.md
new file mode 100644
index 00000000..7c59fcce
--- /dev/null
+++ b/docs/Permissions.md
@@ -0,0 +1,32 @@
+# Permissions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The permission's ID. | [optional]
+**key** | **str** | The permission identifier to use in code. | [optional]
+**name** | **str** | The permission's name. | [optional]
+**description** | **str** | The permission's description. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.permissions import Permissions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Permissions from a JSON string
+permissions_instance = Permissions.from_json(json)
+# print the JSON string representation of the object
+print(Permissions.to_json())
+
+# convert the object into a dict
+permissions_dict = permissions_instance.to_dict()
+# create an instance of Permissions from a dict
+permissions_from_dict = Permissions.from_dict(permissions_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PermissionsApi.md b/docs/PermissionsApi.md
new file mode 100644
index 00000000..84c7eef6
--- /dev/null
+++ b/docs/PermissionsApi.md
@@ -0,0 +1,447 @@
+# kinde_sdk.PermissionsApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_permission**](PermissionsApi.md#create_permission) | **POST** /api/v1/permissions | Create Permission
+[**delete_permission**](PermissionsApi.md#delete_permission) | **DELETE** /api/v1/permissions/{permission_id} | Delete Permission
+[**get_permissions**](PermissionsApi.md#get_permissions) | **GET** /api/v1/permissions | List Permissions
+[**get_user_permissions**](PermissionsApi.md#get_user_permissions) | **GET** /account_api/v1/permissions | Get permissions
+[**update_permissions**](PermissionsApi.md#update_permissions) | **PATCH** /api/v1/permissions/{permission_id} | Update Permission
+
+
+# **create_permission**
+> SuccessResponse create_permission(create_permission_request=create_permission_request)
+
+Create Permission
+
+Create a new permission.
+
+
+ create:permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PermissionsApi(api_client)
+ create_permission_request = kinde_sdk.CreatePermissionRequest() # CreatePermissionRequest | Permission details. (optional)
+
+ try:
+ # Create Permission
+ api_response = api_instance.create_permission(create_permission_request=create_permission_request)
+ print("The response of PermissionsApi->create_permission:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PermissionsApi->create_permission: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_permission_request** | [**CreatePermissionRequest**](CreatePermissionRequest.md)| Permission details. | [optional]
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Permission successfully created | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_permission**
+> SuccessResponse delete_permission(permission_id)
+
+Delete Permission
+
+Delete permission
+
+
+ delete:permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PermissionsApi(api_client)
+ permission_id = 'permission_id_example' # str | The identifier for the permission.
+
+ try:
+ # Delete Permission
+ api_response = api_instance.delete_permission(permission_id)
+ print("The response of PermissionsApi->delete_permission:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PermissionsApi->delete_permission: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission_id** | **str**| The identifier for the permission. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | permission successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_permissions**
+> GetPermissionsResponse get_permissions(sort=sort, page_size=page_size, next_token=next_token)
+
+List Permissions
+
+The returned list can be sorted by permission name or permission ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
+
+
+ read:permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_permissions_response import GetPermissionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PermissionsApi(api_client)
+ sort = 'sort_example' # str | Field and order to sort the result by. (optional)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+
+ try:
+ # List Permissions
+ api_response = api_instance.get_permissions(sort=sort, page_size=page_size, next_token=next_token)
+ print("The response of PermissionsApi->get_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PermissionsApi->get_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+
+### Return type
+
+[**GetPermissionsResponse**](GetPermissionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Permissions successfully retrieved. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_permissions**
+> GetUserPermissionsResponse get_user_permissions(page_size=page_size, starting_after=starting_after)
+
+Get permissions
+
+Returns all the permissions the user has
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_user_permissions_response import GetUserPermissionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PermissionsApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'perm_1234567890abcdef' # str | The ID of the permission to start after. (optional)
+
+ try:
+ # Get permissions
+ api_response = api_instance.get_user_permissions(page_size=page_size, starting_after=starting_after)
+ print("The response of PermissionsApi->get_user_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PermissionsApi->get_user_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the permission to start after. | [optional]
+
+### Return type
+
+[**GetUserPermissionsResponse**](GetUserPermissionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Permissions successfully retrieved. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_permissions**
+> SuccessResponse update_permissions(permission_id, create_permission_request=create_permission_request)
+
+Update Permission
+
+Update permission
+
+
+ update:permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PermissionsApi(api_client)
+ permission_id = 'permission_id_example' # str | The identifier for the permission.
+ create_permission_request = kinde_sdk.CreatePermissionRequest() # CreatePermissionRequest | Permission details. (optional)
+
+ try:
+ # Update Permission
+ api_response = api_instance.update_permissions(permission_id, create_permission_request=create_permission_request)
+ print("The response of PermissionsApi->update_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PermissionsApi->update_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **permission_id** | **str**| The identifier for the permission. |
+ **create_permission_request** | [**CreatePermissionRequest**](CreatePermissionRequest.md)| Permission details. | [optional]
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Permission successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/PropertiesApi.md b/docs/PropertiesApi.md
new file mode 100644
index 00000000..57864509
--- /dev/null
+++ b/docs/PropertiesApi.md
@@ -0,0 +1,450 @@
+# kinde_sdk.PropertiesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_property**](PropertiesApi.md#create_property) | **POST** /api/v1/properties | Create Property
+[**delete_property**](PropertiesApi.md#delete_property) | **DELETE** /api/v1/properties/{property_id} | Delete Property
+[**get_properties**](PropertiesApi.md#get_properties) | **GET** /api/v1/properties | List properties
+[**get_user_properties**](PropertiesApi.md#get_user_properties) | **GET** /account_api/v1/properties | Get properties
+[**update_property**](PropertiesApi.md#update_property) | **PUT** /api/v1/properties/{property_id} | Update Property
+
+
+# **create_property**
+> CreatePropertyResponse create_property(create_property_request)
+
+Create Property
+
+Create property.
+
+
+ create:properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_property_request import CreatePropertyRequest
+from kinde_sdk.models.create_property_response import CreatePropertyResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertiesApi(api_client)
+ create_property_request = kinde_sdk.CreatePropertyRequest() # CreatePropertyRequest | Property details.
+
+ try:
+ # Create Property
+ api_response = api_instance.create_property(create_property_request)
+ print("The response of PropertiesApi->create_property:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertiesApi->create_property: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_property_request** | [**CreatePropertyRequest**](CreatePropertyRequest.md)| Property details. |
+
+### Return type
+
+[**CreatePropertyResponse**](CreatePropertyResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Property successfully created | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_property**
+> SuccessResponse delete_property(property_id)
+
+Delete Property
+
+Delete property.
+
+
+ delete:properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertiesApi(api_client)
+ property_id = 'property_id_example' # str | The unique identifier for the property.
+
+ try:
+ # Delete Property
+ api_response = api_instance.delete_property(property_id)
+ print("The response of PropertiesApi->delete_property:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertiesApi->delete_property: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **property_id** | **str**| The unique identifier for the property. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Property successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_properties**
+> GetPropertiesResponse get_properties(page_size=page_size, starting_after=starting_after, ending_before=ending_before, context=context)
+
+List properties
+
+Returns a list of properties
+
+
+ read:properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_properties_response import GetPropertiesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertiesApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'starting_after_example' # str | The ID of the property to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the property to end before. (optional)
+ context = 'context_example' # str | Filter results by user, organization or application context (optional)
+
+ try:
+ # List properties
+ api_response = api_instance.get_properties(page_size=page_size, starting_after=starting_after, ending_before=ending_before, context=context)
+ print("The response of PropertiesApi->get_properties:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertiesApi->get_properties: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the property to start after. | [optional]
+ **ending_before** | **str**| The ID of the property to end before. | [optional]
+ **context** | **str**| Filter results by user, organization or application context | [optional]
+
+### Return type
+
+[**GetPropertiesResponse**](GetPropertiesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_properties**
+> GetUserPropertiesResponse get_user_properties(page_size=page_size, starting_after=starting_after)
+
+Get properties
+
+Returns all properties for the user
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_user_properties_response import GetUserPropertiesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertiesApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'prop_1234567890abcdef' # str | The ID of the property to start after. (optional)
+
+ try:
+ # Get properties
+ api_response = api_instance.get_user_properties(page_size=page_size, starting_after=starting_after)
+ print("The response of PropertiesApi->get_user_properties:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertiesApi->get_user_properties: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the property to start after. | [optional]
+
+### Return type
+
+[**GetUserPropertiesResponse**](GetUserPropertiesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully retrieved. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_property**
+> SuccessResponse update_property(property_id, update_property_request)
+
+Update Property
+
+Update property.
+
+
+ update:properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_property_request import UpdatePropertyRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertiesApi(api_client)
+ property_id = 'property_id_example' # str | The unique identifier for the property.
+ update_property_request = kinde_sdk.UpdatePropertyRequest() # UpdatePropertyRequest | The fields of the property to update.
+
+ try:
+ # Update Property
+ api_response = api_instance.update_property(property_id, update_property_request)
+ print("The response of PropertiesApi->update_property:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertiesApi->update_property: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **property_id** | **str**| The unique identifier for the property. |
+ **update_property_request** | [**UpdatePropertyRequest**](UpdatePropertyRequest.md)| The fields of the property to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Property successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/PropertyCategoriesApi.md b/docs/PropertyCategoriesApi.md
new file mode 100644
index 00000000..56af6d6c
--- /dev/null
+++ b/docs/PropertyCategoriesApi.md
@@ -0,0 +1,279 @@
+# kinde_sdk.PropertyCategoriesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_category**](PropertyCategoriesApi.md#create_category) | **POST** /api/v1/property_categories | Create Category
+[**get_categories**](PropertyCategoriesApi.md#get_categories) | **GET** /api/v1/property_categories | List categories
+[**update_category**](PropertyCategoriesApi.md#update_category) | **PUT** /api/v1/property_categories/{category_id} | Update Category
+
+
+# **create_category**
+> CreateCategoryResponse create_category(create_category_request)
+
+Create Category
+
+Create category.
+
+
+ create:property_categories
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_category_request import CreateCategoryRequest
+from kinde_sdk.models.create_category_response import CreateCategoryResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertyCategoriesApi(api_client)
+ create_category_request = kinde_sdk.CreateCategoryRequest() # CreateCategoryRequest | Category details.
+
+ try:
+ # Create Category
+ api_response = api_instance.create_category(create_category_request)
+ print("The response of PropertyCategoriesApi->create_category:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertyCategoriesApi->create_category: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_category_request** | [**CreateCategoryRequest**](CreateCategoryRequest.md)| Category details. |
+
+### Return type
+
+[**CreateCategoryResponse**](CreateCategoryResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Category successfully created | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_categories**
+> GetCategoriesResponse get_categories(page_size=page_size, starting_after=starting_after, ending_before=ending_before, context=context)
+
+List categories
+
+Returns a list of categories.
+
+
+ read:property_categories
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_categories_response import GetCategoriesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertyCategoriesApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'starting_after_example' # str | The ID of the category to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the category to end before. (optional)
+ context = 'context_example' # str | Filter the results by User or Organization context (optional)
+
+ try:
+ # List categories
+ api_response = api_instance.get_categories(page_size=page_size, starting_after=starting_after, ending_before=ending_before, context=context)
+ print("The response of PropertyCategoriesApi->get_categories:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertyCategoriesApi->get_categories: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the category to start after. | [optional]
+ **ending_before** | **str**| The ID of the category to end before. | [optional]
+ **context** | **str**| Filter the results by User or Organization context | [optional]
+
+### Return type
+
+[**GetCategoriesResponse**](GetCategoriesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Categories successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_category**
+> SuccessResponse update_category(category_id, update_category_request)
+
+Update Category
+
+Update category.
+
+
+ update:property_categories
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_category_request import UpdateCategoryRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.PropertyCategoriesApi(api_client)
+ category_id = 'category_id_example' # str | The unique identifier for the category.
+ update_category_request = kinde_sdk.UpdateCategoryRequest() # UpdateCategoryRequest | The fields of the category to update.
+
+ try:
+ # Update Category
+ api_response = api_instance.update_category(category_id, update_category_request)
+ print("The response of PropertyCategoriesApi->update_category:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PropertyCategoriesApi->update_category: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **category_id** | **str**| The unique identifier for the category. |
+ **update_category_request** | [**UpdateCategoryRequest**](UpdateCategoryRequest.md)| The fields of the category to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | category successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/PropertyValue.md b/docs/PropertyValue.md
new file mode 100644
index 00000000..e48b88cb
--- /dev/null
+++ b/docs/PropertyValue.md
@@ -0,0 +1,33 @@
+# PropertyValue
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | | [optional]
+**description** | **str** | | [optional]
+**key** | **str** | | [optional]
+**value** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.property_value import PropertyValue
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PropertyValue from a JSON string
+property_value_instance = PropertyValue.from_json(json)
+# print the JSON string representation of the object
+print(PropertyValue.to_json())
+
+# convert the object into a dict
+property_value_dict = property_value_instance.to_dict()
+# create an instance of PropertyValue from a dict
+property_value_from_dict = PropertyValue.from_dict(property_value_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReadEnvLogoResponse.md b/docs/ReadEnvLogoResponse.md
new file mode 100644
index 00000000..cd7826a2
--- /dev/null
+++ b/docs/ReadEnvLogoResponse.md
@@ -0,0 +1,31 @@
+# ReadEnvLogoResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**logos** | [**List[ReadEnvLogoResponseLogosInner]**](ReadEnvLogoResponseLogosInner.md) | A list of logos. | [optional]
+**message** | **str** | Response message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.read_env_logo_response import ReadEnvLogoResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReadEnvLogoResponse from a JSON string
+read_env_logo_response_instance = ReadEnvLogoResponse.from_json(json)
+# print the JSON string representation of the object
+print(ReadEnvLogoResponse.to_json())
+
+# convert the object into a dict
+read_env_logo_response_dict = read_env_logo_response_instance.to_dict()
+# create an instance of ReadEnvLogoResponse from a dict
+read_env_logo_response_from_dict = ReadEnvLogoResponse.from_dict(read_env_logo_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReadEnvLogoResponseLogosInner.md b/docs/ReadEnvLogoResponseLogosInner.md
new file mode 100644
index 00000000..5cd3f01e
--- /dev/null
+++ b/docs/ReadEnvLogoResponseLogosInner.md
@@ -0,0 +1,30 @@
+# ReadEnvLogoResponseLogosInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | The type of logo (light or dark). | [optional]
+**file_name** | **str** | The name of the logo file. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.read_env_logo_response_logos_inner import ReadEnvLogoResponseLogosInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReadEnvLogoResponseLogosInner from a JSON string
+read_env_logo_response_logos_inner_instance = ReadEnvLogoResponseLogosInner.from_json(json)
+# print the JSON string representation of the object
+print(ReadEnvLogoResponseLogosInner.to_json())
+
+# convert the object into a dict
+read_env_logo_response_logos_inner_dict = read_env_logo_response_logos_inner_instance.to_dict()
+# create an instance of ReadEnvLogoResponseLogosInner from a dict
+read_env_logo_response_logos_inner_from_dict = ReadEnvLogoResponseLogosInner.from_dict(read_env_logo_response_logos_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReadLogoResponse.md b/docs/ReadLogoResponse.md
new file mode 100644
index 00000000..61ffee99
--- /dev/null
+++ b/docs/ReadLogoResponse.md
@@ -0,0 +1,31 @@
+# ReadLogoResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**logos** | [**List[ReadLogoResponseLogosInner]**](ReadLogoResponseLogosInner.md) | A list of logos. | [optional]
+**message** | **str** | Response message. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.read_logo_response import ReadLogoResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReadLogoResponse from a JSON string
+read_logo_response_instance = ReadLogoResponse.from_json(json)
+# print the JSON string representation of the object
+print(ReadLogoResponse.to_json())
+
+# convert the object into a dict
+read_logo_response_dict = read_logo_response_instance.to_dict()
+# create an instance of ReadLogoResponse from a dict
+read_logo_response_from_dict = ReadLogoResponse.from_dict(read_logo_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReadLogoResponseLogosInner.md b/docs/ReadLogoResponseLogosInner.md
new file mode 100644
index 00000000..87bbb690
--- /dev/null
+++ b/docs/ReadLogoResponseLogosInner.md
@@ -0,0 +1,31 @@
+# ReadLogoResponseLogosInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | The type of logo (light or dark). | [optional]
+**file_name** | **str** | The name of the logo file. | [optional]
+**path** | **str** | The relative path to the logo file. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.read_logo_response_logos_inner import ReadLogoResponseLogosInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReadLogoResponseLogosInner from a JSON string
+read_logo_response_logos_inner_instance = ReadLogoResponseLogosInner.from_json(json)
+# print the JSON string representation of the object
+print(ReadLogoResponseLogosInner.to_json())
+
+# convert the object into a dict
+read_logo_response_logos_inner_dict = read_logo_response_logos_inner_instance.to_dict()
+# create an instance of ReadLogoResponseLogosInner from a dict
+read_logo_response_logos_inner_from_dict = ReadLogoResponseLogosInner.from_dict(read_logo_response_logos_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RedirectCallbackUrls.md b/docs/RedirectCallbackUrls.md
new file mode 100644
index 00000000..9d88311d
--- /dev/null
+++ b/docs/RedirectCallbackUrls.md
@@ -0,0 +1,29 @@
+# RedirectCallbackUrls
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**redirect_urls** | **List[str]** | An application's redirect URLs. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RedirectCallbackUrls from a JSON string
+redirect_callback_urls_instance = RedirectCallbackUrls.from_json(json)
+# print the JSON string representation of the object
+print(RedirectCallbackUrls.to_json())
+
+# convert the object into a dict
+redirect_callback_urls_dict = redirect_callback_urls_instance.to_dict()
+# create an instance of RedirectCallbackUrls from a dict
+redirect_callback_urls_from_dict = RedirectCallbackUrls.from_dict(redirect_callback_urls_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceConnectionRequest.md b/docs/ReplaceConnectionRequest.md
new file mode 100644
index 00000000..053b4205
--- /dev/null
+++ b/docs/ReplaceConnectionRequest.md
@@ -0,0 +1,32 @@
+# ReplaceConnectionRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The internal name of the connection. | [optional]
+**display_name** | **str** | The public-facing name of the connection. | [optional]
+**enabled_applications** | **List[str]** | Client IDs of applications in which this connection is to be enabled. | [optional]
+**options** | [**ReplaceConnectionRequestOptions**](ReplaceConnectionRequestOptions.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.replace_connection_request import ReplaceConnectionRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceConnectionRequest from a JSON string
+replace_connection_request_instance = ReplaceConnectionRequest.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceConnectionRequest.to_json())
+
+# convert the object into a dict
+replace_connection_request_dict = replace_connection_request_instance.to_dict()
+# create an instance of ReplaceConnectionRequest from a dict
+replace_connection_request_from_dict = ReplaceConnectionRequest.from_dict(replace_connection_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceConnectionRequestOptions.md b/docs/ReplaceConnectionRequestOptions.md
new file mode 100644
index 00000000..a1e52668
--- /dev/null
+++ b/docs/ReplaceConnectionRequestOptions.md
@@ -0,0 +1,46 @@
+# ReplaceConnectionRequestOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client_id** | **str** | Client ID. | [optional]
+**client_secret** | **str** | Client secret. | [optional]
+**is_use_custom_domain** | **bool** | Use custom domain callback URL. | [optional]
+**home_realm_domains** | **List[str]** | List of domains to restrict authentication. | [optional]
+**entra_id_domain** | **str** | Domain for Entra ID. | [optional]
+**is_use_common_endpoint** | **bool** | Use https://login.windows.net/common instead of a default endpoint. | [optional]
+**is_sync_user_profile_on_login** | **bool** | Sync user profile data with IDP. | [optional]
+**is_retrieve_provider_user_groups** | **bool** | Include user group info from MS Entra ID. | [optional]
+**is_extended_attributes_required** | **bool** | Include additional user profile information. | [optional]
+**saml_entity_id** | **str** | SAML Entity ID. | [optional]
+**saml_acs_url** | **str** | Assertion Consumer Service URL. | [optional]
+**saml_idp_metadata_url** | **str** | URL for the IdP metadata. | [optional]
+**saml_email_key_attr** | **str** | Attribute key for the user’s email. | [optional]
+**saml_first_name_key_attr** | **str** | Attribute key for the user’s first name. | [optional]
+**saml_last_name_key_attr** | **str** | Attribute key for the user’s last name. | [optional]
+**is_create_missing_user** | **bool** | Create user if they don’t exist. | [optional]
+**saml_signing_certificate** | **str** | Certificate for signing SAML requests. | [optional]
+**saml_signing_private_key** | **str** | Private key associated with the signing certificate. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.replace_connection_request_options import ReplaceConnectionRequestOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceConnectionRequestOptions from a JSON string
+replace_connection_request_options_instance = ReplaceConnectionRequestOptions.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceConnectionRequestOptions.to_json())
+
+# convert the object into a dict
+replace_connection_request_options_dict = replace_connection_request_options_instance.to_dict()
+# create an instance of ReplaceConnectionRequestOptions from a dict
+replace_connection_request_options_from_dict = ReplaceConnectionRequestOptions.from_dict(replace_connection_request_options_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceConnectionRequestOptionsOneOf.md b/docs/ReplaceConnectionRequestOptionsOneOf.md
new file mode 100644
index 00000000..c407ef37
--- /dev/null
+++ b/docs/ReplaceConnectionRequestOptionsOneOf.md
@@ -0,0 +1,37 @@
+# ReplaceConnectionRequestOptionsOneOf
+
+Azure AD connection options.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client_id** | **str** | Client ID. | [optional]
+**client_secret** | **str** | Client secret. | [optional]
+**home_realm_domains** | **List[str]** | List of domains to limit authentication. | [optional]
+**entra_id_domain** | **str** | Domain for Entra ID. | [optional]
+**is_use_common_endpoint** | **bool** | Use https://login.windows.net/common instead of a default endpoint. | [optional]
+**is_sync_user_profile_on_login** | **bool** | Sync user profile data with IDP. | [optional]
+**is_retrieve_provider_user_groups** | **bool** | Include user group info from MS Entra ID. | [optional]
+**is_extended_attributes_required** | **bool** | Include additional user profile information. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.replace_connection_request_options_one_of import ReplaceConnectionRequestOptionsOneOf
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceConnectionRequestOptionsOneOf from a JSON string
+replace_connection_request_options_one_of_instance = ReplaceConnectionRequestOptionsOneOf.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceConnectionRequestOptionsOneOf.to_json())
+
+# convert the object into a dict
+replace_connection_request_options_one_of_dict = replace_connection_request_options_one_of_instance.to_dict()
+# create an instance of ReplaceConnectionRequestOptionsOneOf from a dict
+replace_connection_request_options_one_of_from_dict = ReplaceConnectionRequestOptionsOneOf.from_dict(replace_connection_request_options_one_of_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceConnectionRequestOptionsOneOf1.md b/docs/ReplaceConnectionRequestOptionsOneOf1.md
new file mode 100644
index 00000000..469d0054
--- /dev/null
+++ b/docs/ReplaceConnectionRequestOptionsOneOf1.md
@@ -0,0 +1,39 @@
+# ReplaceConnectionRequestOptionsOneOf1
+
+SAML connection options (e.g., Cloudflare SAML).
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**home_realm_domains** | **List[str]** | List of domains to restrict authentication. | [optional]
+**saml_entity_id** | **str** | SAML Entity ID. | [optional]
+**saml_acs_url** | **str** | Assertion Consumer Service URL. | [optional]
+**saml_idp_metadata_url** | **str** | URL for the IdP metadata. | [optional]
+**saml_email_key_attr** | **str** | Attribute key for the user’s email. | [optional]
+**saml_first_name_key_attr** | **str** | Attribute key for the user’s first name. | [optional]
+**saml_last_name_key_attr** | **str** | Attribute key for the user’s last name. | [optional]
+**is_create_missing_user** | **bool** | Create user if they don’t exist. | [optional]
+**saml_signing_certificate** | **str** | Certificate for signing SAML requests. | [optional]
+**saml_signing_private_key** | **str** | Private key associated with the signing certificate. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.replace_connection_request_options_one_of1 import ReplaceConnectionRequestOptionsOneOf1
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceConnectionRequestOptionsOneOf1 from a JSON string
+replace_connection_request_options_one_of1_instance = ReplaceConnectionRequestOptionsOneOf1.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceConnectionRequestOptionsOneOf1.to_json())
+
+# convert the object into a dict
+replace_connection_request_options_one_of1_dict = replace_connection_request_options_one_of1_instance.to_dict()
+# create an instance of ReplaceConnectionRequestOptionsOneOf1 from a dict
+replace_connection_request_options_one_of1_from_dict = ReplaceConnectionRequestOptionsOneOf1.from_dict(replace_connection_request_options_one_of1_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceLogoutRedirectURLsRequest.md b/docs/ReplaceLogoutRedirectURLsRequest.md
new file mode 100644
index 00000000..cd14c609
--- /dev/null
+++ b/docs/ReplaceLogoutRedirectURLsRequest.md
@@ -0,0 +1,29 @@
+# ReplaceLogoutRedirectURLsRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**urls** | **List[str]** | Array of logout urls. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceLogoutRedirectURLsRequest from a JSON string
+replace_logout_redirect_urls_request_instance = ReplaceLogoutRedirectURLsRequest.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceLogoutRedirectURLsRequest.to_json())
+
+# convert the object into a dict
+replace_logout_redirect_urls_request_dict = replace_logout_redirect_urls_request_instance.to_dict()
+# create an instance of ReplaceLogoutRedirectURLsRequest from a dict
+replace_logout_redirect_urls_request_from_dict = ReplaceLogoutRedirectURLsRequest.from_dict(replace_logout_redirect_urls_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceMFARequest.md b/docs/ReplaceMFARequest.md
new file mode 100644
index 00000000..09b7cc18
--- /dev/null
+++ b/docs/ReplaceMFARequest.md
@@ -0,0 +1,30 @@
+# ReplaceMFARequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**policy** | **str** | Specifies whether MFA is required, optional, or not enforced. |
+**enabled_factors** | **List[str]** | The MFA methods to enable. |
+
+## Example
+
+```python
+from kinde_sdk.models.replace_mfa_request import ReplaceMFARequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceMFARequest from a JSON string
+replace_mfa_request_instance = ReplaceMFARequest.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceMFARequest.to_json())
+
+# convert the object into a dict
+replace_mfa_request_dict = replace_mfa_request_instance.to_dict()
+# create an instance of ReplaceMFARequest from a dict
+replace_mfa_request_from_dict = ReplaceMFARequest.from_dict(replace_mfa_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceOrganizationMFARequest.md b/docs/ReplaceOrganizationMFARequest.md
new file mode 100644
index 00000000..c04512ab
--- /dev/null
+++ b/docs/ReplaceOrganizationMFARequest.md
@@ -0,0 +1,29 @@
+# ReplaceOrganizationMFARequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**enabled_factors** | **List[str]** | The MFA methods to enable. |
+
+## Example
+
+```python
+from kinde_sdk.models.replace_organization_mfa_request import ReplaceOrganizationMFARequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceOrganizationMFARequest from a JSON string
+replace_organization_mfa_request_instance = ReplaceOrganizationMFARequest.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceOrganizationMFARequest.to_json())
+
+# convert the object into a dict
+replace_organization_mfa_request_dict = replace_organization_mfa_request_instance.to_dict()
+# create an instance of ReplaceOrganizationMFARequest from a dict
+replace_organization_mfa_request_from_dict = ReplaceOrganizationMFARequest.from_dict(replace_organization_mfa_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ReplaceRedirectCallbackURLsRequest.md b/docs/ReplaceRedirectCallbackURLsRequest.md
new file mode 100644
index 00000000..dde1a9b5
--- /dev/null
+++ b/docs/ReplaceRedirectCallbackURLsRequest.md
@@ -0,0 +1,29 @@
+# ReplaceRedirectCallbackURLsRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**urls** | **List[str]** | Array of callback urls. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ReplaceRedirectCallbackURLsRequest from a JSON string
+replace_redirect_callback_urls_request_instance = ReplaceRedirectCallbackURLsRequest.from_json(json)
+# print the JSON string representation of the object
+print(ReplaceRedirectCallbackURLsRequest.to_json())
+
+# convert the object into a dict
+replace_redirect_callback_urls_request_dict = replace_redirect_callback_urls_request_instance.to_dict()
+# create an instance of ReplaceRedirectCallbackURLsRequest from a dict
+replace_redirect_callback_urls_request_from_dict = ReplaceRedirectCallbackURLsRequest.from_dict(replace_redirect_callback_urls_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Role.md b/docs/Role.md
new file mode 100644
index 00000000..db46122b
--- /dev/null
+++ b/docs/Role.md
@@ -0,0 +1,32 @@
+# Role
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**key** | **str** | | [optional]
+**name** | **str** | | [optional]
+**description** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.role import Role
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Role from a JSON string
+role_instance = Role.from_json(json)
+# print the JSON string representation of the object
+print(Role.to_json())
+
+# convert the object into a dict
+role_dict = role_instance.to_dict()
+# create an instance of Role from a dict
+role_from_dict = Role.from_dict(role_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RolePermissionsResponse.md b/docs/RolePermissionsResponse.md
new file mode 100644
index 00000000..a775ec13
--- /dev/null
+++ b/docs/RolePermissionsResponse.md
@@ -0,0 +1,32 @@
+# RolePermissionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**permissions** | [**List[Permissions]**](Permissions.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.role_permissions_response import RolePermissionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RolePermissionsResponse from a JSON string
+role_permissions_response_instance = RolePermissionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(RolePermissionsResponse.to_json())
+
+# convert the object into a dict
+role_permissions_response_dict = role_permissions_response_instance.to_dict()
+# create an instance of RolePermissionsResponse from a dict
+role_permissions_response_from_dict = RolePermissionsResponse.from_dict(role_permissions_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RoleScopesResponse.md b/docs/RoleScopesResponse.md
new file mode 100644
index 00000000..6fd39f93
--- /dev/null
+++ b/docs/RoleScopesResponse.md
@@ -0,0 +1,31 @@
+# RoleScopesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**scopes** | [**List[Scopes]**](Scopes.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.role_scopes_response import RoleScopesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RoleScopesResponse from a JSON string
+role_scopes_response_instance = RoleScopesResponse.from_json(json)
+# print the JSON string representation of the object
+print(RoleScopesResponse.to_json())
+
+# convert the object into a dict
+role_scopes_response_dict = role_scopes_response_instance.to_dict()
+# create an instance of RoleScopesResponse from a dict
+role_scopes_response_from_dict = RoleScopesResponse.from_dict(role_scopes_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Roles.md b/docs/Roles.md
new file mode 100644
index 00000000..daeb793e
--- /dev/null
+++ b/docs/Roles.md
@@ -0,0 +1,33 @@
+# Roles
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The role's ID. | [optional]
+**key** | **str** | The role identifier to use in code. | [optional]
+**name** | **str** | The role's name. | [optional]
+**description** | **str** | The role's description. | [optional]
+**is_default_role** | **bool** | Whether the role is the default role. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.roles import Roles
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Roles from a JSON string
+roles_instance = Roles.from_json(json)
+# print the JSON string representation of the object
+print(Roles.to_json())
+
+# convert the object into a dict
+roles_dict = roles_instance.to_dict()
+# create an instance of Roles from a dict
+roles_from_dict = Roles.from_dict(roles_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RolesApi.md b/docs/RolesApi.md
new file mode 100644
index 00000000..cae8d870
--- /dev/null
+++ b/docs/RolesApi.md
@@ -0,0 +1,1072 @@
+# kinde_sdk.RolesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_role_scope**](RolesApi.md#add_role_scope) | **POST** /api/v1/roles/{role_id}/scopes | Add role scope
+[**create_role**](RolesApi.md#create_role) | **POST** /api/v1/roles | Create role
+[**delete_role**](RolesApi.md#delete_role) | **DELETE** /api/v1/roles/{role_id} | Delete role
+[**delete_role_scope**](RolesApi.md#delete_role_scope) | **DELETE** /api/v1/roles/{role_id}/scopes/{scope_id} | Delete role scope
+[**get_role**](RolesApi.md#get_role) | **GET** /api/v1/roles/{role_id} | Get role
+[**get_role_permissions**](RolesApi.md#get_role_permissions) | **GET** /api/v1/roles/{role_id}/permissions | Get role permissions
+[**get_role_scopes**](RolesApi.md#get_role_scopes) | **GET** /api/v1/roles/{role_id}/scopes | Get role scopes
+[**get_roles**](RolesApi.md#get_roles) | **GET** /api/v1/roles | List roles
+[**get_user_roles**](RolesApi.md#get_user_roles) | **GET** /account_api/v1/roles | Get roles
+[**remove_role_permission**](RolesApi.md#remove_role_permission) | **DELETE** /api/v1/roles/{role_id}/permissions/{permission_id} | Remove role permission
+[**update_role_permissions**](RolesApi.md#update_role_permissions) | **PATCH** /api/v1/roles/{role_id}/permissions | Update role permissions
+[**update_roles**](RolesApi.md#update_roles) | **PATCH** /api/v1/roles/{role_id} | Update role
+
+
+# **add_role_scope**
+> AddRoleScopeResponse add_role_scope(role_id, add_role_scope_request)
+
+Add role scope
+
+Add scope to role.
+
+
+ create:role_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.add_role_scope_request import AddRoleScopeRequest
+from kinde_sdk.models.add_role_scope_response import AddRoleScopeResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The role id.
+ add_role_scope_request = kinde_sdk.AddRoleScopeRequest() # AddRoleScopeRequest | Add scope to role.
+
+ try:
+ # Add role scope
+ api_response = api_instance.add_role_scope(role_id, add_role_scope_request)
+ print("The response of RolesApi->add_role_scope:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->add_role_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The role id. |
+ **add_role_scope_request** | [**AddRoleScopeRequest**](AddRoleScopeRequest.md)| Add scope to role. |
+
+### Return type
+
+[**AddRoleScopeResponse**](AddRoleScopeResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Role scope successfully added. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_role**
+> CreateRolesResponse create_role(create_role_request=create_role_request)
+
+Create role
+
+Create role.
+
+
+ create:roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_role_request import CreateRoleRequest
+from kinde_sdk.models.create_roles_response import CreateRolesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ create_role_request = kinde_sdk.CreateRoleRequest() # CreateRoleRequest | Role details. (optional)
+
+ try:
+ # Create role
+ api_response = api_instance.create_role(create_role_request=create_role_request)
+ print("The response of RolesApi->create_role:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->create_role: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_role_request** | [**CreateRoleRequest**](CreateRoleRequest.md)| Role details. | [optional]
+
+### Return type
+
+[**CreateRolesResponse**](CreateRolesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Role successfully created | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_role**
+> SuccessResponse delete_role(role_id)
+
+Delete role
+
+Delete role
+
+
+ delete:roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The identifier for the role.
+
+ try:
+ # Delete role
+ api_response = api_instance.delete_role(role_id)
+ print("The response of RolesApi->delete_role:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->delete_role: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The identifier for the role. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Role successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_role_scope**
+> DeleteRoleScopeResponse delete_role_scope(role_id, scope_id)
+
+Delete role scope
+
+Delete scope from role.
+
+
+ delete:role_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.delete_role_scope_response import DeleteRoleScopeResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The role id.
+ scope_id = 'scope_id_example' # str | The scope id.
+
+ try:
+ # Delete role scope
+ api_response = api_instance.delete_role_scope(role_id, scope_id)
+ print("The response of RolesApi->delete_role_scope:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->delete_role_scope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The role id. |
+ **scope_id** | **str**| The scope id. |
+
+### Return type
+
+[**DeleteRoleScopeResponse**](DeleteRoleScopeResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Role scope successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_role**
+> GetRoleResponse get_role(role_id)
+
+Get role
+
+Get a role
+
+
+ read:roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_role_response import GetRoleResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The identifier for the role.
+
+ try:
+ # Get role
+ api_response = api_instance.get_role(role_id)
+ print("The response of RolesApi->get_role:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->get_role: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The identifier for the role. |
+
+### Return type
+
+[**GetRoleResponse**](GetRoleResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Role successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_role_permissions**
+> RolePermissionsResponse get_role_permissions(role_id, sort=sort, page_size=page_size, next_token=next_token)
+
+Get role permissions
+
+Get permissions for a role.
+
+
+ read:role_permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.role_permissions_response import RolePermissionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The role's public id.
+ sort = 'sort_example' # str | Field and order to sort the result by. (optional)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+
+ try:
+ # Get role permissions
+ api_response = api_instance.get_role_permissions(role_id, sort=sort, page_size=page_size, next_token=next_token)
+ print("The response of RolesApi->get_role_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->get_role_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The role's public id. |
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+
+### Return type
+
+[**RolePermissionsResponse**](RolePermissionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A list of permissions for a role | - |
+**400** | Error removing user | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_role_scopes**
+> RoleScopesResponse get_role_scopes(role_id)
+
+Get role scopes
+
+Get scopes for a role.
+
+
+ read:role_scopes
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.role_scopes_response import RoleScopesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The role id.
+
+ try:
+ # Get role scopes
+ api_response = api_instance.get_role_scopes(role_id)
+ print("The response of RolesApi->get_role_scopes:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->get_role_scopes: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The role id. |
+
+### Return type
+
+[**RoleScopesResponse**](RoleScopesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A list of scopes for a role | - |
+**400** | Error removing user | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_roles**
+> GetRolesResponse get_roles(sort=sort, page_size=page_size, next_token=next_token)
+
+List roles
+
+The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
+
+
+ read:roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_roles_response import GetRolesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ sort = 'sort_example' # str | Field and order to sort the result by. (optional)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+
+ try:
+ # List roles
+ api_response = api_instance.get_roles(sort=sort, page_size=page_size, next_token=next_token)
+ print("The response of RolesApi->get_roles:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->get_roles: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+
+### Return type
+
+[**GetRolesResponse**](GetRolesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Roles successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_roles**
+> GetUserRolesResponse get_user_roles(page_size=page_size, starting_after=starting_after)
+
+Get roles
+
+Returns all roles for the user
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_user_roles_response import GetUserRolesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ starting_after = 'role_1234567890abcdef' # str | The ID of the role to start after. (optional)
+
+ try:
+ # Get roles
+ api_response = api_instance.get_user_roles(page_size=page_size, starting_after=starting_after)
+ print("The response of RolesApi->get_user_roles:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->get_user_roles: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **starting_after** | **str**| The ID of the role to start after. | [optional]
+
+### Return type
+
+[**GetUserRolesResponse**](GetUserRolesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Roles successfully retrieved. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **remove_role_permission**
+> SuccessResponse remove_role_permission(role_id, permission_id)
+
+Remove role permission
+
+Remove a permission from a role.
+
+
+ delete:role_permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The role's public id.
+ permission_id = 'permission_id_example' # str | The permission's public id.
+
+ try:
+ # Remove role permission
+ api_response = api_instance.remove_role_permission(role_id, permission_id)
+ print("The response of RolesApi->remove_role_permission:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->remove_role_permission: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The role's public id. |
+ **permission_id** | **str**| The permission's public id. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Permission successfully removed from role | - |
+**400** | Error removing user | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_role_permissions**
+> UpdateRolePermissionsResponse update_role_permissions(role_id, update_role_permissions_request)
+
+Update role permissions
+
+Update role permissions.
+
+
+ update:role_permissions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_role_permissions_request import UpdateRolePermissionsRequest
+from kinde_sdk.models.update_role_permissions_response import UpdateRolePermissionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The identifier for the role.
+ update_role_permissions_request = kinde_sdk.UpdateRolePermissionsRequest() # UpdateRolePermissionsRequest |
+
+ try:
+ # Update role permissions
+ api_response = api_instance.update_role_permissions(role_id, update_role_permissions_request)
+ print("The response of RolesApi->update_role_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->update_role_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The identifier for the role. |
+ **update_role_permissions_request** | [**UpdateRolePermissionsRequest**](UpdateRolePermissionsRequest.md)| |
+
+### Return type
+
+[**UpdateRolePermissionsResponse**](UpdateRolePermissionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Permissions successfully updated. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_roles**
+> SuccessResponse update_roles(role_id, update_roles_request=update_roles_request)
+
+Update role
+
+Update a role
+
+
+ update:roles
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_roles_request import UpdateRolesRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.RolesApi(api_client)
+ role_id = 'role_id_example' # str | The identifier for the role.
+ update_roles_request = kinde_sdk.UpdateRolesRequest() # UpdateRolesRequest | Role details. (optional)
+
+ try:
+ # Update role
+ api_response = api_instance.update_roles(role_id, update_roles_request=update_roles_request)
+ print("The response of RolesApi->update_roles:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling RolesApi->update_roles: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **role_id** | **str**| The identifier for the role. |
+ **update_roles_request** | [**UpdateRolesRequest**](UpdateRolesRequest.md)| Role details. | [optional]
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Role successfully updated | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/Scopes.md b/docs/Scopes.md
new file mode 100644
index 00000000..7426c50a
--- /dev/null
+++ b/docs/Scopes.md
@@ -0,0 +1,32 @@
+# Scopes
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Scope ID. | [optional]
+**key** | **str** | Scope key. | [optional]
+**description** | **str** | Description of scope. | [optional]
+**api_id** | **str** | API ID. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.scopes import Scopes
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Scopes from a JSON string
+scopes_instance = Scopes.from_json(json)
+# print the JSON string representation of the object
+print(Scopes.to_json())
+
+# convert the object into a dict
+scopes_dict = scopes_instance.to_dict()
+# create an instance of Scopes from a dict
+scopes_from_dict = Scopes.from_dict(scopes_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SearchApi.md b/docs/SearchApi.md
new file mode 100644
index 00000000..37b044f0
--- /dev/null
+++ b/docs/SearchApi.md
@@ -0,0 +1,106 @@
+# kinde_sdk.SearchApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**search_users**](SearchApi.md#search_users) | **GET** /api/v1/search/users | Search users
+
+
+# **search_users**
+> SearchUsersResponse search_users(page_size=page_size, query=query, properties=properties, starting_after=starting_after, ending_before=ending_before, expand=expand)
+
+Search users
+
+Search for users based on the provided query string. Set query to '*' to filter by other parameters only.
+The number of records to return at a time can be controlled using the `page_size` query string parameter.
+
+
+ read:users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.search_users_response import SearchUsersResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.SearchApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ query = 'query_example' # str | Search the users by email or name. Use '*' to search all. (optional)
+ properties = {'key': kinde_sdk.List[str]()} # Dict[str, List[str]] | (optional)
+ starting_after = 'starting_after_example' # str | The ID of the user to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the user to end before. (optional)
+ expand = 'expand_example' # str | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". (optional)
+
+ try:
+ # Search users
+ api_response = api_instance.search_users(page_size=page_size, query=query, properties=properties, starting_after=starting_after, ending_before=ending_before, expand=expand)
+ print("The response of SearchApi->search_users:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SearchApi->search_users: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **query** | **str**| Search the users by email or name. Use '*' to search all. | [optional]
+ **properties** | [**Dict[str, List[str]]**](List[str].md)| | [optional]
+ **starting_after** | **str**| The ID of the user to start after. | [optional]
+ **ending_before** | **str**| The ID of the user to end before. | [optional]
+ **expand** | **str**| Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". | [optional]
+
+### Return type
+
+[**SearchUsersResponse**](SearchUsersResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Users successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/SearchUsersResponse.md b/docs/SearchUsersResponse.md
new file mode 100644
index 00000000..52491ed2
--- /dev/null
+++ b/docs/SearchUsersResponse.md
@@ -0,0 +1,31 @@
+# SearchUsersResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**results** | [**List[SearchUsersResponseResultsInner]**](SearchUsersResponseResultsInner.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.search_users_response import SearchUsersResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SearchUsersResponse from a JSON string
+search_users_response_instance = SearchUsersResponse.from_json(json)
+# print the JSON string representation of the object
+print(SearchUsersResponse.to_json())
+
+# convert the object into a dict
+search_users_response_dict = search_users_response_instance.to_dict()
+# create an instance of SearchUsersResponse from a dict
+search_users_response_from_dict = SearchUsersResponse.from_dict(search_users_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SearchUsersResponseResultsInner.md b/docs/SearchUsersResponseResultsInner.md
new file mode 100644
index 00000000..939f4c63
--- /dev/null
+++ b/docs/SearchUsersResponseResultsInner.md
@@ -0,0 +1,43 @@
+# SearchUsersResponseResultsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the user in Kinde. | [optional]
+**provided_id** | **str** | External ID for user. | [optional]
+**email** | **str** | Default email address of the user in Kinde. | [optional]
+**username** | **str** | Primary username of the user in Kinde. | [optional]
+**last_name** | **str** | User's last name. | [optional]
+**first_name** | **str** | User's first name. | [optional]
+**is_suspended** | **bool** | Whether the user is currently suspended or not. | [optional]
+**picture** | **str** | User's profile picture URL. | [optional]
+**total_sign_ins** | **int** | Total number of user sign ins. | [optional]
+**failed_sign_ins** | **int** | Number of consecutive failed user sign ins. | [optional]
+**last_signed_in** | **str** | Last sign in date in ISO 8601 format. | [optional]
+**created_on** | **str** | Date of user creation in ISO 8601 format. | [optional]
+**organizations** | **List[str]** | Array of organizations a user belongs to. | [optional]
+**identities** | [**List[UserIdentitiesInner]**](UserIdentitiesInner.md) | Array of identities belonging to the user. | [optional]
+**properties** | **Dict[str, str]** | The user properties. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.search_users_response_results_inner import SearchUsersResponseResultsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SearchUsersResponseResultsInner from a JSON string
+search_users_response_results_inner_instance = SearchUsersResponseResultsInner.from_json(json)
+# print the JSON string representation of the object
+print(SearchUsersResponseResultsInner.to_json())
+
+# convert the object into a dict
+search_users_response_results_inner_dict = search_users_response_results_inner_instance.to_dict()
+# create an instance of SearchUsersResponseResultsInner from a dict
+search_users_response_results_inner_from_dict = SearchUsersResponseResultsInner.from_dict(search_users_response_results_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SelfServePortalApi.md b/docs/SelfServePortalApi.md
new file mode 100644
index 00000000..1de90993
--- /dev/null
+++ b/docs/SelfServePortalApi.md
@@ -0,0 +1,92 @@
+# kinde_sdk.SelfServePortalApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_portal_link**](SelfServePortalApi.md#get_portal_link) | **GET** /account_api/v1/get_portal_link | Get self-serve portal link
+
+
+# **get_portal_link**
+> GetPortalLink get_portal_link(subnav=subnav, return_url=return_url)
+
+Get self-serve portal link
+
+Returns a link to the self-serve portal for the authenticated user. The user can use this link to manage their account, update their profile, and view their entitlements.
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_portal_link import GetPortalLink
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.SelfServePortalApi(api_client)
+ subnav = 'subnav_example' # str | The area of the portal you want the user to land on (optional)
+ return_url = 'return_url_example' # str | The URL to redirect the user to after they have completed their actions in the portal. (optional)
+
+ try:
+ # Get self-serve portal link
+ api_response = api_instance.get_portal_link(subnav=subnav, return_url=return_url)
+ print("The response of SelfServePortalApi->get_portal_link:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SelfServePortalApi->get_portal_link: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **subnav** | **str**| The area of the portal you want the user to land on | [optional]
+ **return_url** | **str**| The URL to redirect the user to after they have completed their actions in the portal. | [optional]
+
+### Return type
+
+[**GetPortalLink**](GetPortalLink.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successfully generated the portal link | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/SetUserPasswordRequest.md b/docs/SetUserPasswordRequest.md
new file mode 100644
index 00000000..30fb8d30
--- /dev/null
+++ b/docs/SetUserPasswordRequest.md
@@ -0,0 +1,33 @@
+# SetUserPasswordRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**hashed_password** | **str** | The hashed password. |
+**hashing_method** | **str** | The hashing method or algorithm used to encrypt the user’s password. Default is bcrypt. | [optional]
+**salt** | **str** | Extra characters added to passwords to make them stronger. Not required for bcrypt. | [optional]
+**salt_position** | **str** | Position of salt in password string. Not required for bcrypt. | [optional]
+**is_temporary_password** | **bool** | The user will be prompted to set a new password after entering this one. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.set_user_password_request import SetUserPasswordRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SetUserPasswordRequest from a JSON string
+set_user_password_request_instance = SetUserPasswordRequest.from_json(json)
+# print the JSON string representation of the object
+print(SetUserPasswordRequest.to_json())
+
+# convert the object into a dict
+set_user_password_request_dict = set_user_password_request_instance.to_dict()
+# create an instance of SetUserPasswordRequest from a dict
+set_user_password_request_from_dict = SetUserPasswordRequest.from_dict(set_user_password_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Subscriber.md b/docs/Subscriber.md
new file mode 100644
index 00000000..6900f445
--- /dev/null
+++ b/docs/Subscriber.md
@@ -0,0 +1,32 @@
+# Subscriber
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**preferred_email** | **str** | | [optional]
+**first_name** | **str** | | [optional]
+**last_name** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.subscriber import Subscriber
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Subscriber from a JSON string
+subscriber_instance = Subscriber.from_json(json)
+# print the JSON string representation of the object
+print(Subscriber.to_json())
+
+# convert the object into a dict
+subscriber_dict = subscriber_instance.to_dict()
+# create an instance of Subscriber from a dict
+subscriber_from_dict = Subscriber.from_dict(subscriber_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SubscribersApi.md b/docs/SubscribersApi.md
new file mode 100644
index 00000000..163c344b
--- /dev/null
+++ b/docs/SubscribersApi.md
@@ -0,0 +1,278 @@
+# kinde_sdk.SubscribersApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_subscriber**](SubscribersApi.md#create_subscriber) | **POST** /api/v1/subscribers | Create Subscriber
+[**get_subscriber**](SubscribersApi.md#get_subscriber) | **GET** /api/v1/subscribers/{subscriber_id} | Get Subscriber
+[**get_subscribers**](SubscribersApi.md#get_subscribers) | **GET** /api/v1/subscribers | List Subscribers
+
+
+# **create_subscriber**
+> CreateSubscriberSuccessResponse create_subscriber(first_name, last_name, email)
+
+Create Subscriber
+
+Create subscriber.
+
+
+ create:subscribers
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_subscriber_success_response import CreateSubscriberSuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.SubscribersApi(api_client)
+ first_name = 'first_name_example' # str | Subscriber's first name.
+ last_name = 'last_name_example' # str | Subscriber's last name.
+ email = 'email_example' # str | The email address of the subscriber.
+
+ try:
+ # Create Subscriber
+ api_response = api_instance.create_subscriber(first_name, last_name, email)
+ print("The response of SubscribersApi->create_subscriber:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SubscribersApi->create_subscriber: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **first_name** | **str**| Subscriber's first name. |
+ **last_name** | **str**| Subscriber's last name. |
+ **email** | **str**| The email address of the subscriber. |
+
+### Return type
+
+[**CreateSubscriberSuccessResponse**](CreateSubscriberSuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Subscriber successfully created | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_subscriber**
+> GetSubscriberResponse get_subscriber(subscriber_id)
+
+Get Subscriber
+
+Retrieve a subscriber record.
+
+
+ read:subscribers
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_subscriber_response import GetSubscriberResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.SubscribersApi(api_client)
+ subscriber_id = 'subscriber_id_example' # str | The subscriber's id.
+
+ try:
+ # Get Subscriber
+ api_response = api_instance.get_subscriber(subscriber_id)
+ print("The response of SubscribersApi->get_subscriber:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SubscribersApi->get_subscriber: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **subscriber_id** | **str**| The subscriber's id. |
+
+### Return type
+
+[**GetSubscriberResponse**](GetSubscriberResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Subscriber successfully retrieved. | - |
+**400** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_subscribers**
+> GetSubscribersResponse get_subscribers(sort=sort, page_size=page_size, next_token=next_token)
+
+List Subscribers
+
+The returned list can be sorted by full name or email address
+in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query
+string parameter.
+
+
+ read:subscribers
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_subscribers_response import GetSubscribersResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.SubscribersApi(api_client)
+ sort = 'sort_example' # str | Field and order to sort the result by. (optional)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+
+ try:
+ # List Subscribers
+ api_response = api_instance.get_subscribers(sort=sort, page_size=page_size, next_token=next_token)
+ print("The response of SubscribersApi->get_subscribers:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SubscribersApi->get_subscribers: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **sort** | **str**| Field and order to sort the result by. | [optional]
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+
+### Return type
+
+[**GetSubscribersResponse**](GetSubscribersResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Subscriber successfully retrieved. | - |
+**403** | Bad request. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/SubscribersSubscriber.md b/docs/SubscribersSubscriber.md
new file mode 100644
index 00000000..455235dc
--- /dev/null
+++ b/docs/SubscribersSubscriber.md
@@ -0,0 +1,33 @@
+# SubscribersSubscriber
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**email** | **str** | | [optional]
+**full_name** | **str** | | [optional]
+**first_name** | **str** | | [optional]
+**last_name** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.subscribers_subscriber import SubscribersSubscriber
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SubscribersSubscriber from a JSON string
+subscribers_subscriber_instance = SubscribersSubscriber.from_json(json)
+# print the JSON string representation of the object
+print(SubscribersSubscriber.to_json())
+
+# convert the object into a dict
+subscribers_subscriber_dict = subscribers_subscriber_instance.to_dict()
+# create an instance of SubscribersSubscriber from a dict
+subscribers_subscriber_from_dict = SubscribersSubscriber.from_dict(subscribers_subscriber_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SuccessResponse.md b/docs/SuccessResponse.md
new file mode 100644
index 00000000..2f144c6a
--- /dev/null
+++ b/docs/SuccessResponse.md
@@ -0,0 +1,30 @@
+# SuccessResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.success_response import SuccessResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SuccessResponse from a JSON string
+success_response_instance = SuccessResponse.from_json(json)
+# print the JSON string representation of the object
+print(SuccessResponse.to_json())
+
+# convert the object into a dict
+success_response_dict = success_response_instance.to_dict()
+# create an instance of SuccessResponse from a dict
+success_response_from_dict = SuccessResponse.from_dict(success_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TimezonesApi.md b/docs/TimezonesApi.md
new file mode 100644
index 00000000..f52ff9dc
--- /dev/null
+++ b/docs/TimezonesApi.md
@@ -0,0 +1,91 @@
+# kinde_sdk.TimezonesApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_timezones**](TimezonesApi.md#get_timezones) | **GET** /api/v1/timezones | Get timezones
+
+
+# **get_timezones**
+> GetTimezonesResponse get_timezones()
+
+Get timezones
+
+Get a list of timezones and associated timezone keys.
+
+
+ read:timezones
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_timezones_response import GetTimezonesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.TimezonesApi(api_client)
+
+ try:
+ # Get timezones
+ api_response = api_instance.get_timezones()
+ print("The response of TimezonesApi->get_timezones:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling TimezonesApi->get_timezones: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetTimezonesResponse**](GetTimezonesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A list of timezones. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/TokenErrorResponse.md b/docs/TokenErrorResponse.md
new file mode 100644
index 00000000..c1f05791
--- /dev/null
+++ b/docs/TokenErrorResponse.md
@@ -0,0 +1,30 @@
+# TokenErrorResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**error** | **str** | Error. | [optional]
+**error_description** | **str** | The error description. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.token_error_response import TokenErrorResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TokenErrorResponse from a JSON string
+token_error_response_instance = TokenErrorResponse.from_json(json)
+# print the JSON string representation of the object
+print(TokenErrorResponse.to_json())
+
+# convert the object into a dict
+token_error_response_dict = token_error_response_instance.to_dict()
+# create an instance of TokenErrorResponse from a dict
+token_error_response_from_dict = TokenErrorResponse.from_dict(token_error_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TokenIntrospect.md b/docs/TokenIntrospect.md
new file mode 100644
index 00000000..cbed3abf
--- /dev/null
+++ b/docs/TokenIntrospect.md
@@ -0,0 +1,33 @@
+# TokenIntrospect
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**active** | **bool** | Indicates the status of the token. | [optional]
+**aud** | **List[str]** | Array of intended token recipients. | [optional]
+**client_id** | **str** | Identifier for the requesting client. | [optional]
+**exp** | **int** | Token expiration timestamp. | [optional]
+**iat** | **int** | Token issuance timestamp. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.token_introspect import TokenIntrospect
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TokenIntrospect from a JSON string
+token_introspect_instance = TokenIntrospect.from_json(json)
+# print the JSON string representation of the object
+print(TokenIntrospect.to_json())
+
+# convert the object into a dict
+token_introspect_dict = token_introspect_instance.to_dict()
+# create an instance of TokenIntrospect from a dict
+token_introspect_from_dict = TokenIntrospect.from_dict(token_introspect_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateAPIApplicationsRequest.md b/docs/UpdateAPIApplicationsRequest.md
new file mode 100644
index 00000000..19d1dc3a
--- /dev/null
+++ b/docs/UpdateAPIApplicationsRequest.md
@@ -0,0 +1,29 @@
+# UpdateAPIApplicationsRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**applications** | [**List[UpdateAPIApplicationsRequestApplicationsInner]**](UpdateAPIApplicationsRequestApplicationsInner.md) | |
+
+## Example
+
+```python
+from kinde_sdk.models.update_api_applications_request import UpdateAPIApplicationsRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateAPIApplicationsRequest from a JSON string
+update_api_applications_request_instance = UpdateAPIApplicationsRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateAPIApplicationsRequest.to_json())
+
+# convert the object into a dict
+update_api_applications_request_dict = update_api_applications_request_instance.to_dict()
+# create an instance of UpdateAPIApplicationsRequest from a dict
+update_api_applications_request_from_dict = UpdateAPIApplicationsRequest.from_dict(update_api_applications_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateAPIApplicationsRequestApplicationsInner.md b/docs/UpdateAPIApplicationsRequestApplicationsInner.md
new file mode 100644
index 00000000..c85d259d
--- /dev/null
+++ b/docs/UpdateAPIApplicationsRequestApplicationsInner.md
@@ -0,0 +1,30 @@
+# UpdateAPIApplicationsRequestApplicationsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The application's Client ID. |
+**operation** | **str** | Optional operation, set to 'delete' to revoke authorization for the application. If not set, the application will be authorized. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_api_applications_request_applications_inner import UpdateAPIApplicationsRequestApplicationsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateAPIApplicationsRequestApplicationsInner from a JSON string
+update_api_applications_request_applications_inner_instance = UpdateAPIApplicationsRequestApplicationsInner.from_json(json)
+# print the JSON string representation of the object
+print(UpdateAPIApplicationsRequestApplicationsInner.to_json())
+
+# convert the object into a dict
+update_api_applications_request_applications_inner_dict = update_api_applications_request_applications_inner_instance.to_dict()
+# create an instance of UpdateAPIApplicationsRequestApplicationsInner from a dict
+update_api_applications_request_applications_inner_from_dict = UpdateAPIApplicationsRequestApplicationsInner.from_dict(update_api_applications_request_applications_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateAPIScopeRequest.md b/docs/UpdateAPIScopeRequest.md
new file mode 100644
index 00000000..b2524de6
--- /dev/null
+++ b/docs/UpdateAPIScopeRequest.md
@@ -0,0 +1,29 @@
+# UpdateAPIScopeRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | Description of the api scope purpose. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_api_scope_request import UpdateAPIScopeRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateAPIScopeRequest from a JSON string
+update_api_scope_request_instance = UpdateAPIScopeRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateAPIScopeRequest.to_json())
+
+# convert the object into a dict
+update_api_scope_request_dict = update_api_scope_request_instance.to_dict()
+# create an instance of UpdateAPIScopeRequest from a dict
+update_api_scope_request_from_dict = UpdateAPIScopeRequest.from_dict(update_api_scope_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateApplicationRequest.md b/docs/UpdateApplicationRequest.md
new file mode 100644
index 00000000..d0d4535d
--- /dev/null
+++ b/docs/UpdateApplicationRequest.md
@@ -0,0 +1,34 @@
+# UpdateApplicationRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The application's name. | [optional]
+**language_key** | **str** | The application's language key. | [optional]
+**logout_uris** | **List[str]** | The application's logout uris. | [optional]
+**redirect_uris** | **List[str]** | The application's redirect uris. | [optional]
+**login_uri** | **str** | The default login route for resolving session issues. | [optional]
+**homepage_uri** | **str** | The homepage link to your application. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_application_request import UpdateApplicationRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateApplicationRequest from a JSON string
+update_application_request_instance = UpdateApplicationRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateApplicationRequest.to_json())
+
+# convert the object into a dict
+update_application_request_dict = update_application_request_instance.to_dict()
+# create an instance of UpdateApplicationRequest from a dict
+update_application_request_from_dict = UpdateApplicationRequest.from_dict(update_application_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateApplicationTokensRequest.md b/docs/UpdateApplicationTokensRequest.md
new file mode 100644
index 00000000..03233841
--- /dev/null
+++ b/docs/UpdateApplicationTokensRequest.md
@@ -0,0 +1,33 @@
+# UpdateApplicationTokensRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**access_token_lifetime** | **int** | The lifetime of an access token in seconds. | [optional]
+**refresh_token_lifetime** | **int** | The lifetime of a refresh token in seconds. | [optional]
+**id_token_lifetime** | **int** | The lifetime of an ID token in seconds. | [optional]
+**authenticated_session_lifetime** | **int** | The lifetime of an authenticated session in seconds. | [optional]
+**is_hasura_mapping_enabled** | **bool** | Enable or disable Hasura mapping. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_application_tokens_request import UpdateApplicationTokensRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateApplicationTokensRequest from a JSON string
+update_application_tokens_request_instance = UpdateApplicationTokensRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateApplicationTokensRequest.to_json())
+
+# convert the object into a dict
+update_application_tokens_request_dict = update_application_tokens_request_instance.to_dict()
+# create an instance of UpdateApplicationTokensRequest from a dict
+update_application_tokens_request_from_dict = UpdateApplicationTokensRequest.from_dict(update_application_tokens_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateApplicationsPropertyRequest.md b/docs/UpdateApplicationsPropertyRequest.md
new file mode 100644
index 00000000..6b0369f7
--- /dev/null
+++ b/docs/UpdateApplicationsPropertyRequest.md
@@ -0,0 +1,29 @@
+# UpdateApplicationsPropertyRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | [**UpdateApplicationsPropertyRequestValue**](UpdateApplicationsPropertyRequestValue.md) | |
+
+## Example
+
+```python
+from kinde_sdk.models.update_applications_property_request import UpdateApplicationsPropertyRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateApplicationsPropertyRequest from a JSON string
+update_applications_property_request_instance = UpdateApplicationsPropertyRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateApplicationsPropertyRequest.to_json())
+
+# convert the object into a dict
+update_applications_property_request_dict = update_applications_property_request_instance.to_dict()
+# create an instance of UpdateApplicationsPropertyRequest from a dict
+update_applications_property_request_from_dict = UpdateApplicationsPropertyRequest.from_dict(update_applications_property_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateApplicationsPropertyRequestValue.md b/docs/UpdateApplicationsPropertyRequestValue.md
new file mode 100644
index 00000000..8b21f3d7
--- /dev/null
+++ b/docs/UpdateApplicationsPropertyRequestValue.md
@@ -0,0 +1,29 @@
+# UpdateApplicationsPropertyRequestValue
+
+The new value for the property
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+## Example
+
+```python
+from kinde_sdk.models.update_applications_property_request_value import UpdateApplicationsPropertyRequestValue
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateApplicationsPropertyRequestValue from a JSON string
+update_applications_property_request_value_instance = UpdateApplicationsPropertyRequestValue.from_json(json)
+# print the JSON string representation of the object
+print(UpdateApplicationsPropertyRequestValue.to_json())
+
+# convert the object into a dict
+update_applications_property_request_value_dict = update_applications_property_request_value_instance.to_dict()
+# create an instance of UpdateApplicationsPropertyRequestValue from a dict
+update_applications_property_request_value_from_dict = UpdateApplicationsPropertyRequestValue.from_dict(update_applications_property_request_value_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateBusinessRequest.md b/docs/UpdateBusinessRequest.md
new file mode 100644
index 00000000..4d53a508
--- /dev/null
+++ b/docs/UpdateBusinessRequest.md
@@ -0,0 +1,38 @@
+# UpdateBusinessRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**business_name** | **str** | The name of the business. | [optional]
+**email** | **str** | The email address of the business. | [optional]
+**industry_key** | **str** | The key of the industry of your business. Can be retrieved from the /industries endpoint. | [optional]
+**is_click_wrap** | **bool** | Whether the business is using clickwrap agreements. | [optional]
+**is_show_kinde_branding** | **bool** | Whether the business is showing Kinde branding. Requires a paid plan. | [optional]
+**kinde_perk_code** | **str** | The Kinde perk code for the business. | [optional]
+**phone** | **str** | The phone number of the business. | [optional]
+**privacy_url** | **str** | The URL to the business's privacy policy. | [optional]
+**terms_url** | **str** | The URL to the business's terms of service. | [optional]
+**timezone_key** | **str** | The key of the timezone of your business. Can be retrieved from the /timezones endpoint. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_business_request import UpdateBusinessRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateBusinessRequest from a JSON string
+update_business_request_instance = UpdateBusinessRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateBusinessRequest.to_json())
+
+# convert the object into a dict
+update_business_request_dict = update_business_request_instance.to_dict()
+# create an instance of UpdateBusinessRequest from a dict
+update_business_request_from_dict = UpdateBusinessRequest.from_dict(update_business_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateCategoryRequest.md b/docs/UpdateCategoryRequest.md
new file mode 100644
index 00000000..7fa14fe0
--- /dev/null
+++ b/docs/UpdateCategoryRequest.md
@@ -0,0 +1,29 @@
+# UpdateCategoryRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The name of the category. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_category_request import UpdateCategoryRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateCategoryRequest from a JSON string
+update_category_request_instance = UpdateCategoryRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateCategoryRequest.to_json())
+
+# convert the object into a dict
+update_category_request_dict = update_category_request_instance.to_dict()
+# create an instance of UpdateCategoryRequest from a dict
+update_category_request_from_dict = UpdateCategoryRequest.from_dict(update_category_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateConnectionRequest.md b/docs/UpdateConnectionRequest.md
new file mode 100644
index 00000000..baa21118
--- /dev/null
+++ b/docs/UpdateConnectionRequest.md
@@ -0,0 +1,32 @@
+# UpdateConnectionRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The internal name of the connection. | [optional]
+**display_name** | **str** | The public facing name of the connection. | [optional]
+**enabled_applications** | **List[str]** | Client IDs of applications in which this connection is to be enabled. | [optional]
+**options** | [**ReplaceConnectionRequestOptions**](ReplaceConnectionRequestOptions.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_connection_request import UpdateConnectionRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateConnectionRequest from a JSON string
+update_connection_request_instance = UpdateConnectionRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateConnectionRequest.to_json())
+
+# convert the object into a dict
+update_connection_request_dict = update_connection_request_instance.to_dict()
+# create an instance of UpdateConnectionRequest from a dict
+update_connection_request_from_dict = UpdateConnectionRequest.from_dict(update_connection_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateEnvironementFeatureFlagOverrideRequest.md b/docs/UpdateEnvironementFeatureFlagOverrideRequest.md
new file mode 100644
index 00000000..f0a88089
--- /dev/null
+++ b/docs/UpdateEnvironementFeatureFlagOverrideRequest.md
@@ -0,0 +1,29 @@
+# UpdateEnvironementFeatureFlagOverrideRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | **str** | The flag override value. |
+
+## Example
+
+```python
+from kinde_sdk.models.update_environement_feature_flag_override_request import UpdateEnvironementFeatureFlagOverrideRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateEnvironementFeatureFlagOverrideRequest from a JSON string
+update_environement_feature_flag_override_request_instance = UpdateEnvironementFeatureFlagOverrideRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateEnvironementFeatureFlagOverrideRequest.to_json())
+
+# convert the object into a dict
+update_environement_feature_flag_override_request_dict = update_environement_feature_flag_override_request_instance.to_dict()
+# create an instance of UpdateEnvironementFeatureFlagOverrideRequest from a dict
+update_environement_feature_flag_override_request_from_dict = UpdateEnvironementFeatureFlagOverrideRequest.from_dict(update_environement_feature_flag_override_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateEnvironmentVariableRequest.md b/docs/UpdateEnvironmentVariableRequest.md
new file mode 100644
index 00000000..9b7bc899
--- /dev/null
+++ b/docs/UpdateEnvironmentVariableRequest.md
@@ -0,0 +1,31 @@
+# UpdateEnvironmentVariableRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**key** | **str** | The key to update. | [optional]
+**value** | **str** | The new value for the environment variable. | [optional]
+**is_secret** | **bool** | Whether the environment variable is sensitive. Secret variables are not-readable by you or your team after creation. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_environment_variable_request import UpdateEnvironmentVariableRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateEnvironmentVariableRequest from a JSON string
+update_environment_variable_request_instance = UpdateEnvironmentVariableRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateEnvironmentVariableRequest.to_json())
+
+# convert the object into a dict
+update_environment_variable_request_dict = update_environment_variable_request_instance.to_dict()
+# create an instance of UpdateEnvironmentVariableRequest from a dict
+update_environment_variable_request_from_dict = UpdateEnvironmentVariableRequest.from_dict(update_environment_variable_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateEnvironmentVariableResponse.md b/docs/UpdateEnvironmentVariableResponse.md
new file mode 100644
index 00000000..7e1ff82c
--- /dev/null
+++ b/docs/UpdateEnvironmentVariableResponse.md
@@ -0,0 +1,30 @@
+# UpdateEnvironmentVariableResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | A Kinde generated message. | [optional]
+**code** | **str** | A Kinde generated status code. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_environment_variable_response import UpdateEnvironmentVariableResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateEnvironmentVariableResponse from a JSON string
+update_environment_variable_response_instance = UpdateEnvironmentVariableResponse.from_json(json)
+# print the JSON string representation of the object
+print(UpdateEnvironmentVariableResponse.to_json())
+
+# convert the object into a dict
+update_environment_variable_response_dict = update_environment_variable_response_instance.to_dict()
+# create an instance of UpdateEnvironmentVariableResponse from a dict
+update_environment_variable_response_from_dict = UpdateEnvironmentVariableResponse.from_dict(update_environment_variable_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateIdentityRequest.md b/docs/UpdateIdentityRequest.md
new file mode 100644
index 00000000..ab524a78
--- /dev/null
+++ b/docs/UpdateIdentityRequest.md
@@ -0,0 +1,29 @@
+# UpdateIdentityRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_primary** | **bool** | Whether the identity is the primary for it's type | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_identity_request import UpdateIdentityRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateIdentityRequest from a JSON string
+update_identity_request_instance = UpdateIdentityRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateIdentityRequest.to_json())
+
+# convert the object into a dict
+update_identity_request_dict = update_identity_request_instance.to_dict()
+# create an instance of UpdateIdentityRequest from a dict
+update_identity_request_from_dict = UpdateIdentityRequest.from_dict(update_identity_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateOrganizationPropertiesRequest.md b/docs/UpdateOrganizationPropertiesRequest.md
new file mode 100644
index 00000000..1e947651
--- /dev/null
+++ b/docs/UpdateOrganizationPropertiesRequest.md
@@ -0,0 +1,29 @@
+# UpdateOrganizationPropertiesRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**properties** | **object** | Property keys and values |
+
+## Example
+
+```python
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationPropertiesRequest from a JSON string
+update_organization_properties_request_instance = UpdateOrganizationPropertiesRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationPropertiesRequest.to_json())
+
+# convert the object into a dict
+update_organization_properties_request_dict = update_organization_properties_request_instance.to_dict()
+# create an instance of UpdateOrganizationPropertiesRequest from a dict
+update_organization_properties_request_from_dict = UpdateOrganizationPropertiesRequest.from_dict(update_organization_properties_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateOrganizationRequest.md b/docs/UpdateOrganizationRequest.md
new file mode 100644
index 00000000..dad3b64b
--- /dev/null
+++ b/docs/UpdateOrganizationRequest.md
@@ -0,0 +1,47 @@
+# UpdateOrganizationRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The organization's name. | [optional]
+**external_id** | **str** | The organization's ID. | [optional]
+**background_color** | **str** | The organization's brand settings - background color. | [optional]
+**button_color** | **str** | The organization's brand settings - button color. | [optional]
+**button_text_color** | **str** | The organization's brand settings - button text color. | [optional]
+**link_color** | **str** | The organization's brand settings - link color. | [optional]
+**background_color_dark** | **str** | The organization's brand settings - dark mode background color. | [optional]
+**button_color_dark** | **str** | The organization's brand settings - dark mode button color. | [optional]
+**button_text_color_dark** | **str** | The organization's brand settings - dark mode button text color. | [optional]
+**link_color_dark** | **str** | The organization's brand settings - dark mode link color. | [optional]
+**theme_code** | **str** | The organization's brand settings - theme/mode. | [optional]
+**handle** | **str** | The organization's handle. | [optional]
+**is_allow_registrations** | **bool** | Deprecated - Use 'is_auto_membership_enabled' instead. | [optional]
+**is_auto_join_domain_list** | **bool** | Users can sign up to this organization. | [optional]
+**allowed_domains** | **List[str]** | Domains allowed for self-sign up to this environment. | [optional]
+**is_enable_advanced_orgs** | **bool** | Activate advanced organization features. | [optional]
+**is_enforce_mfa** | **bool** | Enforce MFA for all users in this organization. | [optional]
+**sender_name** | **str** | The name of the organization that will be used in emails | [optional]
+**sender_email** | **str** | The email address that will be used in emails. Requires custom SMTP to be set up. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_organization_request import UpdateOrganizationRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationRequest from a JSON string
+update_organization_request_instance = UpdateOrganizationRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationRequest.to_json())
+
+# convert the object into a dict
+update_organization_request_dict = update_organization_request_instance.to_dict()
+# create an instance of UpdateOrganizationRequest from a dict
+update_organization_request_from_dict = UpdateOrganizationRequest.from_dict(update_organization_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateOrganizationSessionsRequest.md b/docs/UpdateOrganizationSessionsRequest.md
new file mode 100644
index 00000000..64190b30
--- /dev/null
+++ b/docs/UpdateOrganizationSessionsRequest.md
@@ -0,0 +1,32 @@
+# UpdateOrganizationSessionsRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_use_org_sso_session_policy** | **bool** | Whether to use the organization's SSO session policy override. | [optional]
+**sso_session_persistence_mode** | **str** | Determines if the session should be persistent or not. | [optional]
+**is_use_org_authenticated_session_lifetime** | **bool** | Whether to apply the organization's authenticated session lifetime override. | [optional]
+**authenticated_session_lifetime** | **int** | Authenticated session lifetime in seconds. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_organization_sessions_request import UpdateOrganizationSessionsRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationSessionsRequest from a JSON string
+update_organization_sessions_request_instance = UpdateOrganizationSessionsRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationSessionsRequest.to_json())
+
+# convert the object into a dict
+update_organization_sessions_request_dict = update_organization_sessions_request_instance.to_dict()
+# create an instance of UpdateOrganizationSessionsRequest from a dict
+update_organization_sessions_request_from_dict = UpdateOrganizationSessionsRequest.from_dict(update_organization_sessions_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateOrganizationUsersRequest.md b/docs/UpdateOrganizationUsersRequest.md
new file mode 100644
index 00000000..3550e89b
--- /dev/null
+++ b/docs/UpdateOrganizationUsersRequest.md
@@ -0,0 +1,29 @@
+# UpdateOrganizationUsersRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**users** | [**List[UpdateOrganizationUsersRequestUsersInner]**](UpdateOrganizationUsersRequestUsersInner.md) | Users to add, update or remove from the organization. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_organization_users_request import UpdateOrganizationUsersRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationUsersRequest from a JSON string
+update_organization_users_request_instance = UpdateOrganizationUsersRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationUsersRequest.to_json())
+
+# convert the object into a dict
+update_organization_users_request_dict = update_organization_users_request_instance.to_dict()
+# create an instance of UpdateOrganizationUsersRequest from a dict
+update_organization_users_request_from_dict = UpdateOrganizationUsersRequest.from_dict(update_organization_users_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateOrganizationUsersRequestUsersInner.md b/docs/UpdateOrganizationUsersRequestUsersInner.md
new file mode 100644
index 00000000..9d059bb1
--- /dev/null
+++ b/docs/UpdateOrganizationUsersRequestUsersInner.md
@@ -0,0 +1,32 @@
+# UpdateOrganizationUsersRequestUsersInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The users id. | [optional]
+**operation** | **str** | Optional operation, set to 'delete' to remove the user from the organization. | [optional]
+**roles** | **List[str]** | Role keys to assign to the user. | [optional]
+**permissions** | **List[str]** | Permission keys to assign to the user. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_organization_users_request_users_inner import UpdateOrganizationUsersRequestUsersInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationUsersRequestUsersInner from a JSON string
+update_organization_users_request_users_inner_instance = UpdateOrganizationUsersRequestUsersInner.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationUsersRequestUsersInner.to_json())
+
+# convert the object into a dict
+update_organization_users_request_users_inner_dict = update_organization_users_request_users_inner_instance.to_dict()
+# create an instance of UpdateOrganizationUsersRequestUsersInner from a dict
+update_organization_users_request_users_inner_from_dict = UpdateOrganizationUsersRequestUsersInner.from_dict(update_organization_users_request_users_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateOrganizationUsersResponse.md b/docs/UpdateOrganizationUsersResponse.md
new file mode 100644
index 00000000..1e3830ac
--- /dev/null
+++ b/docs/UpdateOrganizationUsersResponse.md
@@ -0,0 +1,33 @@
+# UpdateOrganizationUsersResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**users_added** | **List[str]** | | [optional]
+**users_updated** | **List[str]** | | [optional]
+**users_removed** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_organization_users_response import UpdateOrganizationUsersResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationUsersResponse from a JSON string
+update_organization_users_response_instance = UpdateOrganizationUsersResponse.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationUsersResponse.to_json())
+
+# convert the object into a dict
+update_organization_users_response_dict = update_organization_users_response_instance.to_dict()
+# create an instance of UpdateOrganizationUsersResponse from a dict
+update_organization_users_response_from_dict = UpdateOrganizationUsersResponse.from_dict(update_organization_users_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdatePropertyRequest.md b/docs/UpdatePropertyRequest.md
new file mode 100644
index 00000000..737d3cc9
--- /dev/null
+++ b/docs/UpdatePropertyRequest.md
@@ -0,0 +1,32 @@
+# UpdatePropertyRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The name of the property. |
+**description** | **str** | Description of the property purpose. | [optional]
+**is_private** | **bool** | Whether the property can be included in id and access tokens. |
+**category_id** | **str** | Which category the property belongs to. |
+
+## Example
+
+```python
+from kinde_sdk.models.update_property_request import UpdatePropertyRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdatePropertyRequest from a JSON string
+update_property_request_instance = UpdatePropertyRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdatePropertyRequest.to_json())
+
+# convert the object into a dict
+update_property_request_dict = update_property_request_instance.to_dict()
+# create an instance of UpdatePropertyRequest from a dict
+update_property_request_from_dict = UpdatePropertyRequest.from_dict(update_property_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateRolePermissionsRequest.md b/docs/UpdateRolePermissionsRequest.md
new file mode 100644
index 00000000..de6e8667
--- /dev/null
+++ b/docs/UpdateRolePermissionsRequest.md
@@ -0,0 +1,29 @@
+# UpdateRolePermissionsRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**permissions** | [**List[UpdateRolePermissionsRequestPermissionsInner]**](UpdateRolePermissionsRequestPermissionsInner.md) | Permissions to add or remove from the role. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_role_permissions_request import UpdateRolePermissionsRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateRolePermissionsRequest from a JSON string
+update_role_permissions_request_instance = UpdateRolePermissionsRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateRolePermissionsRequest.to_json())
+
+# convert the object into a dict
+update_role_permissions_request_dict = update_role_permissions_request_instance.to_dict()
+# create an instance of UpdateRolePermissionsRequest from a dict
+update_role_permissions_request_from_dict = UpdateRolePermissionsRequest.from_dict(update_role_permissions_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateRolePermissionsRequestPermissionsInner.md b/docs/UpdateRolePermissionsRequestPermissionsInner.md
new file mode 100644
index 00000000..bab75d0c
--- /dev/null
+++ b/docs/UpdateRolePermissionsRequestPermissionsInner.md
@@ -0,0 +1,30 @@
+# UpdateRolePermissionsRequestPermissionsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | The permission id. | [optional]
+**operation** | **str** | Optional operation, set to 'delete' to remove the permission from the role. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_role_permissions_request_permissions_inner import UpdateRolePermissionsRequestPermissionsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateRolePermissionsRequestPermissionsInner from a JSON string
+update_role_permissions_request_permissions_inner_instance = UpdateRolePermissionsRequestPermissionsInner.from_json(json)
+# print the JSON string representation of the object
+print(UpdateRolePermissionsRequestPermissionsInner.to_json())
+
+# convert the object into a dict
+update_role_permissions_request_permissions_inner_dict = update_role_permissions_request_permissions_inner_instance.to_dict()
+# create an instance of UpdateRolePermissionsRequestPermissionsInner from a dict
+update_role_permissions_request_permissions_inner_from_dict = UpdateRolePermissionsRequestPermissionsInner.from_dict(update_role_permissions_request_permissions_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateRolePermissionsResponse.md b/docs/UpdateRolePermissionsResponse.md
new file mode 100644
index 00000000..e3b146fd
--- /dev/null
+++ b/docs/UpdateRolePermissionsResponse.md
@@ -0,0 +1,32 @@
+# UpdateRolePermissionsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | | [optional]
+**message** | **str** | | [optional]
+**permissions_added** | **List[str]** | | [optional]
+**permissions_removed** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_role_permissions_response import UpdateRolePermissionsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateRolePermissionsResponse from a JSON string
+update_role_permissions_response_instance = UpdateRolePermissionsResponse.from_json(json)
+# print the JSON string representation of the object
+print(UpdateRolePermissionsResponse.to_json())
+
+# convert the object into a dict
+update_role_permissions_response_dict = update_role_permissions_response_instance.to_dict()
+# create an instance of UpdateRolePermissionsResponse from a dict
+update_role_permissions_response_from_dict = UpdateRolePermissionsResponse.from_dict(update_role_permissions_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateRolesRequest.md b/docs/UpdateRolesRequest.md
new file mode 100644
index 00000000..e00ca901
--- /dev/null
+++ b/docs/UpdateRolesRequest.md
@@ -0,0 +1,32 @@
+# UpdateRolesRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | The role's name. |
+**description** | **str** | The role's description. | [optional]
+**key** | **str** | The role identifier to use in code. |
+**is_default_role** | **bool** | Set role as default for new users. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_roles_request import UpdateRolesRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateRolesRequest from a JSON string
+update_roles_request_instance = UpdateRolesRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateRolesRequest.to_json())
+
+# convert the object into a dict
+update_roles_request_dict = update_roles_request_instance.to_dict()
+# create an instance of UpdateRolesRequest from a dict
+update_roles_request_from_dict = UpdateRolesRequest.from_dict(update_roles_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateUserRequest.md b/docs/UpdateUserRequest.md
new file mode 100644
index 00000000..62d15994
--- /dev/null
+++ b/docs/UpdateUserRequest.md
@@ -0,0 +1,34 @@
+# UpdateUserRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**given_name** | **str** | User's first name. | [optional]
+**family_name** | **str** | User's last name. | [optional]
+**picture** | **str** | The user's profile picture. | [optional]
+**is_suspended** | **bool** | Whether the user is currently suspended or not. | [optional]
+**is_password_reset_requested** | **bool** | Prompt the user to change their password on next sign in. | [optional]
+**provided_id** | **str** | An external id to reference the user. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_user_request import UpdateUserRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateUserRequest from a JSON string
+update_user_request_instance = UpdateUserRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateUserRequest.to_json())
+
+# convert the object into a dict
+update_user_request_dict = update_user_request_instance.to_dict()
+# create an instance of UpdateUserRequest from a dict
+update_user_request_from_dict = UpdateUserRequest.from_dict(update_user_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateUserResponse.md b/docs/UpdateUserResponse.md
new file mode 100644
index 00000000..7f301f36
--- /dev/null
+++ b/docs/UpdateUserResponse.md
@@ -0,0 +1,35 @@
+# UpdateUserResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the user in Kinde. | [optional]
+**given_name** | **str** | User's first name. | [optional]
+**family_name** | **str** | User's last name. | [optional]
+**email** | **str** | User's preferred email. | [optional]
+**is_suspended** | **bool** | Whether the user is currently suspended or not. | [optional]
+**is_password_reset_requested** | **bool** | Whether a password reset has been requested. | [optional]
+**picture** | **str** | User's profile picture URL. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_user_response import UpdateUserResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateUserResponse from a JSON string
+update_user_response_instance = UpdateUserResponse.from_json(json)
+# print the JSON string representation of the object
+print(UpdateUserResponse.to_json())
+
+# convert the object into a dict
+update_user_response_dict = update_user_response_instance.to_dict()
+# create an instance of UpdateUserResponse from a dict
+update_user_response_from_dict = UpdateUserResponse.from_dict(update_user_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateWebHookRequest.md b/docs/UpdateWebHookRequest.md
new file mode 100644
index 00000000..de38d769
--- /dev/null
+++ b/docs/UpdateWebHookRequest.md
@@ -0,0 +1,31 @@
+# UpdateWebHookRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**event_types** | **List[str]** | Array of event type keys | [optional]
+**name** | **str** | The webhook name | [optional]
+**description** | **str** | The webhook description | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_web_hook_request import UpdateWebHookRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateWebHookRequest from a JSON string
+update_web_hook_request_instance = UpdateWebHookRequest.from_json(json)
+# print the JSON string representation of the object
+print(UpdateWebHookRequest.to_json())
+
+# convert the object into a dict
+update_web_hook_request_dict = update_web_hook_request_instance.to_dict()
+# create an instance of UpdateWebHookRequest from a dict
+update_web_hook_request_from_dict = UpdateWebHookRequest.from_dict(update_web_hook_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateWebhookResponse.md b/docs/UpdateWebhookResponse.md
new file mode 100644
index 00000000..32eafa8a
--- /dev/null
+++ b/docs/UpdateWebhookResponse.md
@@ -0,0 +1,31 @@
+# UpdateWebhookResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**code** | **str** | | [optional]
+**webhook** | [**UpdateWebhookResponseWebhook**](UpdateWebhookResponseWebhook.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_webhook_response import UpdateWebhookResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateWebhookResponse from a JSON string
+update_webhook_response_instance = UpdateWebhookResponse.from_json(json)
+# print the JSON string representation of the object
+print(UpdateWebhookResponse.to_json())
+
+# convert the object into a dict
+update_webhook_response_dict = update_webhook_response_instance.to_dict()
+# create an instance of UpdateWebhookResponse from a dict
+update_webhook_response_from_dict = UpdateWebhookResponse.from_dict(update_webhook_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateWebhookResponseWebhook.md b/docs/UpdateWebhookResponseWebhook.md
new file mode 100644
index 00000000..baf05fa0
--- /dev/null
+++ b/docs/UpdateWebhookResponseWebhook.md
@@ -0,0 +1,29 @@
+# UpdateWebhookResponseWebhook
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.update_webhook_response_webhook import UpdateWebhookResponseWebhook
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateWebhookResponseWebhook from a JSON string
+update_webhook_response_webhook_instance = UpdateWebhookResponseWebhook.from_json(json)
+# print the JSON string representation of the object
+print(UpdateWebhookResponseWebhook.to_json())
+
+# convert the object into a dict
+update_webhook_response_webhook_dict = update_webhook_response_webhook_instance.to_dict()
+# create an instance of UpdateWebhookResponseWebhook from a dict
+update_webhook_response_webhook_from_dict = UpdateWebhookResponseWebhook.from_dict(update_webhook_response_webhook_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/User.md b/docs/User.md
new file mode 100644
index 00000000..6eac215f
--- /dev/null
+++ b/docs/User.md
@@ -0,0 +1,43 @@
+# User
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the user in Kinde. | [optional]
+**provided_id** | **str** | External ID for user. | [optional]
+**preferred_email** | **str** | Default email address of the user in Kinde. | [optional]
+**phone** | **str** | User's primary phone number. | [optional]
+**username** | **str** | Primary username of the user in Kinde. | [optional]
+**last_name** | **str** | User's last name. | [optional]
+**first_name** | **str** | User's first name. | [optional]
+**is_suspended** | **bool** | Whether the user is currently suspended or not. | [optional]
+**picture** | **str** | User's profile picture URL. | [optional]
+**total_sign_ins** | **int** | Total number of user sign ins. | [optional]
+**failed_sign_ins** | **int** | Number of consecutive failed user sign ins. | [optional]
+**last_signed_in** | **str** | Last sign in date in ISO 8601 format. | [optional]
+**created_on** | **str** | Date of user creation in ISO 8601 format. | [optional]
+**organizations** | **List[str]** | Array of organizations a user belongs to. | [optional]
+**identities** | [**List[UserIdentitiesInner]**](UserIdentitiesInner.md) | Array of identities belonging to the user. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.user import User
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of User from a JSON string
+user_instance = User.from_json(json)
+# print the JSON string representation of the object
+print(User.to_json())
+
+# convert the object into a dict
+user_dict = user_instance.to_dict()
+# create an instance of User from a dict
+user_from_dict = User.from_dict(user_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserIdentitiesInner.md b/docs/UserIdentitiesInner.md
new file mode 100644
index 00000000..bdcf837f
--- /dev/null
+++ b/docs/UserIdentitiesInner.md
@@ -0,0 +1,30 @@
+# UserIdentitiesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | | [optional]
+**identity** | **str** | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UserIdentitiesInner from a JSON string
+user_identities_inner_instance = UserIdentitiesInner.from_json(json)
+# print the JSON string representation of the object
+print(UserIdentitiesInner.to_json())
+
+# convert the object into a dict
+user_identities_inner_dict = user_identities_inner_instance.to_dict()
+# create an instance of UserIdentitiesInner from a dict
+user_identities_inner_from_dict = UserIdentitiesInner.from_dict(user_identities_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserIdentity.md b/docs/UserIdentity.md
new file mode 100644
index 00000000..1ec9b2ce
--- /dev/null
+++ b/docs/UserIdentity.md
@@ -0,0 +1,30 @@
+# UserIdentity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | The type of identity object created. | [optional]
+**result** | [**UserIdentityResult**](UserIdentityResult.md) | | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.user_identity import UserIdentity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UserIdentity from a JSON string
+user_identity_instance = UserIdentity.from_json(json)
+# print the JSON string representation of the object
+print(UserIdentity.to_json())
+
+# convert the object into a dict
+user_identity_dict = user_identity_instance.to_dict()
+# create an instance of UserIdentity from a dict
+user_identity_from_dict = UserIdentity.from_dict(user_identity_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserIdentityResult.md b/docs/UserIdentityResult.md
new file mode 100644
index 00000000..6085273f
--- /dev/null
+++ b/docs/UserIdentityResult.md
@@ -0,0 +1,30 @@
+# UserIdentityResult
+
+The result of the user creation operation.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created** | **bool** | True if the user identity was successfully created. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.user_identity_result import UserIdentityResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UserIdentityResult from a JSON string
+user_identity_result_instance = UserIdentityResult.from_json(json)
+# print the JSON string representation of the object
+print(UserIdentityResult.to_json())
+
+# convert the object into a dict
+user_identity_result_dict = user_identity_result_instance.to_dict()
+# create an instance of UserIdentityResult from a dict
+user_identity_result_from_dict = UserIdentityResult.from_dict(user_identity_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserProfileV2.md b/docs/UserProfileV2.md
new file mode 100644
index 00000000..fd0f8d4f
--- /dev/null
+++ b/docs/UserProfileV2.md
@@ -0,0 +1,39 @@
+# UserProfileV2
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sub** | **str** | Unique ID of the user in Kinde. | [optional]
+**provided_id** | **str** | Value of the user's ID in a third-party system when the user is imported into Kinde. | [optional]
+**name** | **str** | User's first and last name separated by a space. | [optional]
+**given_name** | **str** | User's first name. | [optional]
+**family_name** | **str** | User's last name. | [optional]
+**updated_at** | **int** | Date the user was last updated at (In Unix time). | [optional]
+**email** | **str** | User's email address if available. | [optional]
+**email_verified** | **bool** | Whether the user's email address has been verified. | [optional]
+**picture** | **str** | URL that point's to the user's picture or avatar | [optional]
+**preferred_username** | **str** | User's preferred username. | [optional]
+**id** | **str** | Unique ID of the user in Kinde | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.user_profile_v2 import UserProfileV2
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UserProfileV2 from a JSON string
+user_profile_v2_instance = UserProfileV2.from_json(json)
+# print the JSON string representation of the object
+print(UserProfileV2.to_json())
+
+# convert the object into a dict
+user_profile_v2_dict = user_profile_v2_instance.to_dict()
+# create an instance of UserProfileV2 from a dict
+user_profile_v2_from_dict = UserProfileV2.from_dict(user_profile_v2_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UsersApi.md b/docs/UsersApi.md
new file mode 100644
index 00000000..8ba1b8a5
--- /dev/null
+++ b/docs/UsersApi.md
@@ -0,0 +1,1623 @@
+# kinde_sdk.UsersApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_user**](UsersApi.md#create_user) | **POST** /api/v1/user | Create user
+[**create_user_identity**](UsersApi.md#create_user_identity) | **POST** /api/v1/users/{user_id}/identities | Create identity
+[**delete_user**](UsersApi.md#delete_user) | **DELETE** /api/v1/user | Delete user
+[**delete_user_sessions**](UsersApi.md#delete_user_sessions) | **DELETE** /api/v1/users/{user_id}/sessions | Delete user sessions
+[**get_user_data**](UsersApi.md#get_user_data) | **GET** /api/v1/user | Get user
+[**get_user_identities**](UsersApi.md#get_user_identities) | **GET** /api/v1/users/{user_id}/identities | Get identities
+[**get_user_property_values**](UsersApi.md#get_user_property_values) | **GET** /api/v1/users/{user_id}/properties | Get property values
+[**get_user_sessions**](UsersApi.md#get_user_sessions) | **GET** /api/v1/users/{user_id}/sessions | Get user sessions
+[**get_users**](UsersApi.md#get_users) | **GET** /api/v1/users | Get users
+[**get_users_mfa**](UsersApi.md#get_users_mfa) | **GET** /api/v1/users/{user_id}/mfa | Get user's MFA configuration
+[**refresh_user_claims**](UsersApi.md#refresh_user_claims) | **POST** /api/v1/users/{user_id}/refresh_claims | Refresh User Claims and Invalidate Cache
+[**reset_users_mfa**](UsersApi.md#reset_users_mfa) | **DELETE** /api/v1/users/{user_id}/mfa/{factor_id} | Reset specific environment MFA for a user
+[**reset_users_mfa_all**](UsersApi.md#reset_users_mfa_all) | **DELETE** /api/v1/users/{user_id}/mfa | Reset all environment MFA for a user
+[**set_user_password**](UsersApi.md#set_user_password) | **PUT** /api/v1/users/{user_id}/password | Set User password
+[**update_user**](UsersApi.md#update_user) | **PATCH** /api/v1/user | Update user
+[**update_user_feature_flag_override**](UsersApi.md#update_user_feature_flag_override) | **PATCH** /api/v1/users/{user_id}/feature_flags/{feature_flag_key} | Update User Feature Flag Override
+[**update_user_properties**](UsersApi.md#update_user_properties) | **PATCH** /api/v1/users/{user_id}/properties | Update Property values
+[**update_user_property**](UsersApi.md#update_user_property) | **PUT** /api/v1/users/{user_id}/properties/{property_key} | Update Property value
+
+
+# **create_user**
+> CreateUserResponse create_user(create_user_request=create_user_request)
+
+Create user
+
+Creates a user record and optionally zero or more identities for the user. An example identity could be the email
+address of the user.
+
+
+ create:users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_user_request import CreateUserRequest
+from kinde_sdk.models.create_user_response import CreateUserResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ create_user_request = kinde_sdk.CreateUserRequest() # CreateUserRequest | The details of the user to create. (optional)
+
+ try:
+ # Create user
+ api_response = api_instance.create_user(create_user_request=create_user_request)
+ print("The response of UsersApi->create_user:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->create_user: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_user_request** | [**CreateUserRequest**](CreateUserRequest.md)| The details of the user to create. | [optional]
+
+### Return type
+
+[**CreateUserResponse**](CreateUserResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_user_identity**
+> CreateIdentityResponse create_user_identity(user_id, create_user_identity_request=create_user_identity_request)
+
+Create identity
+
+Creates an identity for a user.
+
+
+ create:user_identities
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_identity_response import CreateIdentityResponse
+from kinde_sdk.models.create_user_identity_request import CreateUserIdentityRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The user's ID.
+ create_user_identity_request = kinde_sdk.CreateUserIdentityRequest() # CreateUserIdentityRequest | The identity details. (optional)
+
+ try:
+ # Create identity
+ api_response = api_instance.create_user_identity(user_id, create_user_identity_request=create_user_identity_request)
+ print("The response of UsersApi->create_user_identity:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->create_user_identity: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The user's ID. |
+ **create_user_identity_request** | [**CreateUserIdentityRequest**](CreateUserIdentityRequest.md)| The identity details. | [optional]
+
+### Return type
+
+[**CreateIdentityResponse**](CreateIdentityResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Identity successfully created. | - |
+**400** | Error creating identity. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_user**
+> SuccessResponse delete_user(id, is_delete_profile=is_delete_profile)
+
+Delete user
+
+Delete a user record.
+
+
+ delete:users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The user's id.
+ is_delete_profile = true # bool | Delete all data and remove the user's profile from all of Kinde, including the subscriber list (optional)
+
+ try:
+ # Delete user
+ api_response = api_instance.delete_user(id, is_delete_profile=is_delete_profile)
+ print("The response of UsersApi->delete_user:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->delete_user: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The user's id. |
+ **is_delete_profile** | **bool**| Delete all data and remove the user's profile from all of Kinde, including the subscriber list | [optional]
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_user_sessions**
+> SuccessResponse delete_user_sessions(user_id)
+
+Delete user sessions
+
+Invalidate user sessions.
+
+
+ delete:user_sessions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+
+ try:
+ # Delete user sessions
+ api_response = api_instance.delete_user_sessions(user_id)
+ print("The response of UsersApi->delete_user_sessions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->delete_user_sessions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User sessions successfully invalidated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_data**
+> User get_user_data(id, expand=expand)
+
+Get user
+
+Retrieve a user record.
+
+
+ read:users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.user import User
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ id = 'id_example' # str | The user's id.
+ expand = 'expand_example' # str | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". (optional)
+
+ try:
+ # Get user
+ api_response = api_instance.get_user_data(id, expand=expand)
+ print("The response of UsersApi->get_user_data:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_user_data: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The user's id. |
+ **expand** | **str**| Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". | [optional]
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_identities**
+> GetIdentitiesResponse get_user_identities(user_id, starting_after=starting_after, ending_before=ending_before)
+
+Get identities
+
+Gets a list of identities for an user by ID.
+
+
+ read:user_identities
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_identities_response import GetIdentitiesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The user's ID.
+ starting_after = 'starting_after_example' # str | The ID of the identity to start after. (optional)
+ ending_before = 'ending_before_example' # str | The ID of the identity to end before. (optional)
+
+ try:
+ # Get identities
+ api_response = api_instance.get_user_identities(user_id, starting_after=starting_after, ending_before=ending_before)
+ print("The response of UsersApi->get_user_identities:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_user_identities: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The user's ID. |
+ **starting_after** | **str**| The ID of the identity to start after. | [optional]
+ **ending_before** | **str**| The ID of the identity to end before. | [optional]
+
+### Return type
+
+[**GetIdentitiesResponse**](GetIdentitiesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Identities successfully retrieved. | - |
+**400** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_property_values**
+> GetPropertyValuesResponse get_user_property_values(user_id)
+
+Get property values
+
+Gets properties for an user by ID.
+
+
+ read:user_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The user's ID.
+
+ try:
+ # Get property values
+ api_response = api_instance.get_user_property_values(user_id)
+ print("The response of UsersApi->get_user_property_values:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_user_property_values: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The user's ID. |
+
+### Return type
+
+[**GetPropertyValuesResponse**](GetPropertyValuesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully retrieved. | - |
+**400** | Bad request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_sessions**
+> GetUserSessionsResponse get_user_sessions(user_id)
+
+Get user sessions
+
+Retrieve the list of active sessions for a specific user.
+
+
+ read:user_sessions
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_user_sessions_response import GetUserSessionsResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+
+ try:
+ # Get user sessions
+ api_response = api_instance.get_user_sessions(user_id)
+ print("The response of UsersApi->get_user_sessions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_user_sessions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+
+### Return type
+
+[**GetUserSessionsResponse**](GetUserSessionsResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successfully retrieved user sessions. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_users**
+> UsersResponse get_users(page_size=page_size, user_id=user_id, next_token=next_token, email=email, username=username, expand=expand, has_organization=has_organization)
+
+Get users
+
+The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
+
+
+ read:users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.users_response import UsersResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ page_size = 56 # int | Number of results per page. Defaults to 10 if parameter not sent. (optional)
+ user_id = 'user_id_example' # str | Filter the results by User ID. The query string should be comma separated and url encoded. (optional)
+ next_token = 'next_token_example' # str | A string to get the next page of results if there are more results. (optional)
+ email = 'email_example' # str | Filter the results by email address. The query string should be comma separated and url encoded. (optional)
+ username = 'username_example' # str | Filter the results by username. The query string should be comma separated and url encoded. (optional)
+ expand = 'expand_example' # str | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". (optional)
+ has_organization = True # bool | Filter the results by if the user has at least one organization assigned. (optional)
+
+ try:
+ # Get users
+ api_response = api_instance.get_users(page_size=page_size, user_id=user_id, next_token=next_token, email=email, username=username, expand=expand, has_organization=has_organization)
+ print("The response of UsersApi->get_users:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_users: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page_size** | **int**| Number of results per page. Defaults to 10 if parameter not sent. | [optional]
+ **user_id** | **str**| Filter the results by User ID. The query string should be comma separated and url encoded. | [optional]
+ **next_token** | **str**| A string to get the next page of results if there are more results. | [optional]
+ **email** | **str**| Filter the results by email address. The query string should be comma separated and url encoded. | [optional]
+ **username** | **str**| Filter the results by username. The query string should be comma separated and url encoded. | [optional]
+ **expand** | **str**| Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". | [optional]
+ **has_organization** | **bool**| Filter the results by if the user has at least one organization assigned. | [optional]
+
+### Return type
+
+[**UsersResponse**](UsersResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Users successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_users_mfa**
+> GetUserMfaResponse get_users_mfa(user_id)
+
+Get user's MFA configuration
+
+Get a user’s MFA configuration.
+
+
+ read:user_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+
+ try:
+ # Get user's MFA configuration
+ api_response = api_instance.get_users_mfa(user_id)
+ print("The response of UsersApi->get_users_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_users_mfa: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+
+### Return type
+
+[**GetUserMfaResponse**](GetUserMfaResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successfully retrieve user's MFA configuration. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **refresh_user_claims**
+> SuccessResponse refresh_user_claims(user_id)
+
+Refresh User Claims and Invalidate Cache
+
+Refreshes the user's claims and invalidates the current cache.
+
+
+ update:user_refresh_claims
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The id of the user whose claims needs to be updated.
+
+ try:
+ # Refresh User Claims and Invalidate Cache
+ api_response = api_instance.refresh_user_claims(user_id)
+ print("The response of UsersApi->refresh_user_claims:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->refresh_user_claims: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The id of the user whose claims needs to be updated. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Claims successfully refreshed. | - |
+**400** | Bad request. | - |
+**403** | Bad request. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **reset_users_mfa**
+> SuccessResponse reset_users_mfa(user_id, factor_id)
+
+Reset specific environment MFA for a user
+
+Reset a specific environment MFA factor for a user.
+
+
+ delete:user_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+ factor_id = 'mfa_0193278a00ac29b3f6d4e4d462d55c47' # str | The identifier for the MFA factor
+
+ try:
+ # Reset specific environment MFA for a user
+ api_response = api_instance.reset_users_mfa(user_id, factor_id)
+ print("The response of UsersApi->reset_users_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->reset_users_mfa: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+ **factor_id** | **str**| The identifier for the MFA factor |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User's MFA successfully reset. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **reset_users_mfa_all**
+> SuccessResponse reset_users_mfa_all(user_id)
+
+Reset all environment MFA for a user
+
+Reset all environment MFA factors for a user.
+
+
+ delete:user_mfa
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'kp_c3143a4b50ad43c88e541d9077681782' # str | The identifier for the user
+
+ try:
+ # Reset all environment MFA for a user
+ api_response = api_instance.reset_users_mfa_all(user_id)
+ print("The response of UsersApi->reset_users_mfa_all:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->reset_users_mfa_all: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User's MFA successfully reset. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**404** | The specified resource was not found | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **set_user_password**
+> SuccessResponse set_user_password(user_id, set_user_password_request)
+
+Set User password
+
+Set user password.
+
+
+ update:user_passwords
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.set_user_password_request import SetUserPasswordRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The identifier for the user
+ set_user_password_request = kinde_sdk.SetUserPasswordRequest() # SetUserPasswordRequest | Password details.
+
+ try:
+ # Set User password
+ api_response = api_instance.set_user_password(user_id, set_user_password_request)
+ print("The response of UsersApi->set_user_password:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->set_user_password: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+ **set_user_password_request** | [**SetUserPasswordRequest**](SetUserPasswordRequest.md)| Password details. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully created. | - |
+**400** | Error creating user. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_user**
+> UpdateUserResponse update_user(id, update_user_request)
+
+Update user
+
+Update a user record.
+
+
+ update:users
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_user_request import UpdateUserRequest
+from kinde_sdk.models.update_user_response import UpdateUserResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ id = 'id_example' # str | The user's id.
+ update_user_request = kinde_sdk.UpdateUserRequest() # UpdateUserRequest | The user to update.
+
+ try:
+ # Update user
+ api_response = api_instance.update_user(id, update_user_request)
+ print("The response of UsersApi->update_user:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->update_user: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **str**| The user's id. |
+ **update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md)| The user to update. |
+
+### Return type
+
+[**UpdateUserResponse**](UpdateUserResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | User successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Unauthorized - invalid credentials. | - |
+**429** | Too many requests. Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_user_feature_flag_override**
+> SuccessResponse update_user_feature_flag_override(user_id, feature_flag_key, value)
+
+Update User Feature Flag Override
+
+Update user feature flag override.
+
+
+ update:user_feature_flags
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The identifier for the user
+ feature_flag_key = 'feature_flag_key_example' # str | The identifier for the feature flag
+ value = 'value_example' # str | Override value
+
+ try:
+ # Update User Feature Flag Override
+ api_response = api_instance.update_user_feature_flag_override(user_id, feature_flag_key, value)
+ print("The response of UsersApi->update_user_feature_flag_override:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->update_user_feature_flag_override: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+ **feature_flag_key** | **str**| The identifier for the feature flag |
+ **value** | **str**| Override value |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Feature flag override successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_user_properties**
+> SuccessResponse update_user_properties(user_id, update_organization_properties_request)
+
+Update Property values
+
+Update property values.
+
+
+ update:user_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The identifier for the user
+ update_organization_properties_request = kinde_sdk.UpdateOrganizationPropertiesRequest() # UpdateOrganizationPropertiesRequest | Properties to update.
+
+ try:
+ # Update Property values
+ api_response = api_instance.update_user_properties(user_id, update_organization_properties_request)
+ print("The response of UsersApi->update_user_properties:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->update_user_properties: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+ **update_organization_properties_request** | [**UpdateOrganizationPropertiesRequest**](UpdateOrganizationPropertiesRequest.md)| Properties to update. |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Properties successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_user_property**
+> SuccessResponse update_user_property(user_id, property_key, value)
+
+Update Property value
+
+Update property value.
+
+
+ update:user_properties
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.UsersApi(api_client)
+ user_id = 'user_id_example' # str | The identifier for the user
+ property_key = 'property_key_example' # str | The identifier for the property
+ value = 'value_example' # str | The new property value
+
+ try:
+ # Update Property value
+ api_response = api_instance.update_user_property(user_id, property_key, value)
+ print("The response of UsersApi->update_user_property:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->update_user_property: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user_id** | **str**| The identifier for the user |
+ **property_key** | **str**| The identifier for the property |
+ **value** | **str**| The new property value |
+
+### Return type
+
+[**SuccessResponse**](SuccessResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, application/json; charset=utf-8
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Property successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/UsersResponse.md b/docs/UsersResponse.md
new file mode 100644
index 00000000..44745986
--- /dev/null
+++ b/docs/UsersResponse.md
@@ -0,0 +1,32 @@
+# UsersResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **str** | Response code. | [optional]
+**message** | **str** | Response message. | [optional]
+**users** | [**List[UsersResponseUsersInner]**](UsersResponseUsersInner.md) | | [optional]
+**next_token** | **str** | Pagination token. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.users_response import UsersResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UsersResponse from a JSON string
+users_response_instance = UsersResponse.from_json(json)
+# print the JSON string representation of the object
+print(UsersResponse.to_json())
+
+# convert the object into a dict
+users_response_dict = users_response_instance.to_dict()
+# create an instance of UsersResponse from a dict
+users_response_from_dict = UsersResponse.from_dict(users_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UsersResponseUsersInner.md b/docs/UsersResponseUsersInner.md
new file mode 100644
index 00000000..dc1e1e96
--- /dev/null
+++ b/docs/UsersResponseUsersInner.md
@@ -0,0 +1,43 @@
+# UsersResponseUsersInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Unique ID of the user in Kinde. | [optional]
+**provided_id** | **str** | External ID for user. | [optional]
+**email** | **str** | Default email address of the user in Kinde. | [optional]
+**phone** | **str** | User's primary phone number. | [optional]
+**username** | **str** | Primary username of the user in Kinde. | [optional]
+**last_name** | **str** | User's last name. | [optional]
+**first_name** | **str** | User's first name. | [optional]
+**is_suspended** | **bool** | Whether the user is currently suspended or not. | [optional]
+**picture** | **str** | User's profile picture URL. | [optional]
+**total_sign_ins** | **int** | Total number of user sign ins. | [optional]
+**failed_sign_ins** | **int** | Number of consecutive failed user sign ins. | [optional]
+**last_signed_in** | **str** | Last sign in date in ISO 8601 format. | [optional]
+**created_on** | **str** | Date of user creation in ISO 8601 format. | [optional]
+**organizations** | **List[str]** | Array of organizations a user belongs to. | [optional]
+**identities** | [**List[UserIdentitiesInner]**](UserIdentitiesInner.md) | Array of identities belonging to the user. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.users_response_users_inner import UsersResponseUsersInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UsersResponseUsersInner from a JSON string
+users_response_users_inner_instance = UsersResponseUsersInner.from_json(json)
+# print the JSON string representation of the object
+print(UsersResponseUsersInner.to_json())
+
+# convert the object into a dict
+users_response_users_inner_dict = users_response_users_inner_instance.to_dict()
+# create an instance of UsersResponseUsersInner from a dict
+users_response_users_inner_from_dict = UsersResponseUsersInner.from_dict(users_response_users_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Webhook.md b/docs/Webhook.md
new file mode 100644
index 00000000..cac1a4db
--- /dev/null
+++ b/docs/Webhook.md
@@ -0,0 +1,34 @@
+# Webhook
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | | [optional]
+**endpoint** | **str** | | [optional]
+**description** | **str** | | [optional]
+**event_types** | **List[str]** | | [optional]
+**created_on** | **str** | Created on date in ISO 8601 format. | [optional]
+
+## Example
+
+```python
+from kinde_sdk.models.webhook import Webhook
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Webhook from a JSON string
+webhook_instance = Webhook.from_json(json)
+# print the JSON string representation of the object
+print(Webhook.to_json())
+
+# convert the object into a dict
+webhook_dict = webhook_instance.to_dict()
+# create an instance of Webhook from a dict
+webhook_from_dict = Webhook.from_dict(webhook_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md
new file mode 100644
index 00000000..d03ed69b
--- /dev/null
+++ b/docs/WebhooksApi.md
@@ -0,0 +1,526 @@
+# kinde_sdk.WebhooksApi
+
+All URIs are relative to *https://your_kinde_subdomain.kinde.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_web_hook**](WebhooksApi.md#create_web_hook) | **POST** /api/v1/webhooks | Create a Webhook
+[**delete_web_hook**](WebhooksApi.md#delete_web_hook) | **DELETE** /api/v1/webhooks/{webhook_id} | Delete Webhook
+[**get_event**](WebhooksApi.md#get_event) | **GET** /api/v1/events/{event_id} | Get Event
+[**get_event_types**](WebhooksApi.md#get_event_types) | **GET** /api/v1/event_types | List Event Types
+[**get_web_hooks**](WebhooksApi.md#get_web_hooks) | **GET** /api/v1/webhooks | List Webhooks
+[**update_web_hook**](WebhooksApi.md#update_web_hook) | **PATCH** /api/v1/webhooks/{webhook_id} | Update a Webhook
+
+
+# **create_web_hook**
+> CreateWebhookResponse create_web_hook(create_web_hook_request)
+
+Create a Webhook
+
+Create a webhook
+
+
+ create:webhooks
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.create_web_hook_request import CreateWebHookRequest
+from kinde_sdk.models.create_webhook_response import CreateWebhookResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.WebhooksApi(api_client)
+ create_web_hook_request = kinde_sdk.CreateWebHookRequest() # CreateWebHookRequest | Webhook request specification.
+
+ try:
+ # Create a Webhook
+ api_response = api_instance.create_web_hook(create_web_hook_request)
+ print("The response of WebhooksApi->create_web_hook:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling WebhooksApi->create_web_hook: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_web_hook_request** | [**CreateWebHookRequest**](CreateWebHookRequest.md)| Webhook request specification. |
+
+### Return type
+
+[**CreateWebhookResponse**](CreateWebhookResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Webhook successfully created. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_web_hook**
+> DeleteWebhookResponse delete_web_hook(webhook_id)
+
+Delete Webhook
+
+Delete webhook
+
+
+ delete:webhooks
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.delete_webhook_response import DeleteWebhookResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.WebhooksApi(api_client)
+ webhook_id = 'webhook_id_example' # str | The webhook id.
+
+ try:
+ # Delete Webhook
+ api_response = api_instance.delete_web_hook(webhook_id)
+ print("The response of WebhooksApi->delete_web_hook:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling WebhooksApi->delete_web_hook: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **webhook_id** | **str**| The webhook id. |
+
+### Return type
+
+[**DeleteWebhookResponse**](DeleteWebhookResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Webhook successfully deleted. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_event**
+> GetEventResponse get_event(event_id)
+
+Get Event
+
+Returns an event
+
+
+ read:events
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_event_response import GetEventResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.WebhooksApi(api_client)
+ event_id = 'event_id_example' # str | The event id.
+
+ try:
+ # Get Event
+ api_response = api_instance.get_event(event_id)
+ print("The response of WebhooksApi->get_event:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling WebhooksApi->get_event: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **event_id** | **str**| The event id. |
+
+### Return type
+
+[**GetEventResponse**](GetEventResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Event successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_event_types**
+> GetEventTypesResponse get_event_types()
+
+List Event Types
+
+Returns a list event type definitions
+
+
+ read:event_types
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_event_types_response import GetEventTypesResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.WebhooksApi(api_client)
+
+ try:
+ # List Event Types
+ api_response = api_instance.get_event_types()
+ print("The response of WebhooksApi->get_event_types:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling WebhooksApi->get_event_types: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetEventTypesResponse**](GetEventTypesResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Event types successfully retrieved. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_web_hooks**
+> GetWebhooksResponse get_web_hooks()
+
+List Webhooks
+
+List webhooks
+
+
+ read:webhooks
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.get_webhooks_response import GetWebhooksResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.WebhooksApi(api_client)
+
+ try:
+ # List Webhooks
+ api_response = api_instance.get_web_hooks()
+ print("The response of WebhooksApi->get_web_hooks:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling WebhooksApi->get_web_hooks: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetWebhooksResponse**](GetWebhooksResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Webhook list successfully returned. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **update_web_hook**
+> UpdateWebhookResponse update_web_hook(webhook_id, update_web_hook_request)
+
+Update a Webhook
+
+Update a webhook
+
+
+ update:webhooks
+
+
+
+### Example
+
+* Bearer (JWT) Authentication (kindeBearerAuth):
+
+```python
+import kinde_sdk
+from kinde_sdk.models.update_web_hook_request import UpdateWebHookRequest
+from kinde_sdk.models.update_webhook_response import UpdateWebhookResponse
+from kinde_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://your_kinde_subdomain.kinde.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = kinde_sdk.Configuration(
+ host = "https://your_kinde_subdomain.kinde.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): kindeBearerAuth
+configuration = kinde_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with kinde_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = kinde_sdk.WebhooksApi(api_client)
+ webhook_id = 'webhook_id_example' # str | The webhook id.
+ update_web_hook_request = kinde_sdk.UpdateWebHookRequest() # UpdateWebHookRequest | Update webhook request specification.
+
+ try:
+ # Update a Webhook
+ api_response = api_instance.update_web_hook(webhook_id, update_web_hook_request)
+ print("The response of WebhooksApi->update_web_hook:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling WebhooksApi->update_web_hook: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **webhook_id** | **str**| The webhook id. |
+ **update_web_hook_request** | [**UpdateWebHookRequest**](UpdateWebHookRequest.md)| Update webhook request specification. |
+
+### Return type
+
+[**UpdateWebhookResponse**](UpdateWebhookResponse.md)
+
+### Authorization
+
+[kindeBearerAuth](../README.md#kindeBearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json; charset=utf-8, application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Webhook successfully updated. | - |
+**400** | Invalid request. | - |
+**403** | Invalid credentials. | - |
+**429** | Request was throttled. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/generator/README.md b/generator/README.md
new file mode 100644
index 00000000..42ac0ec0
--- /dev/null
+++ b/generator/README.md
@@ -0,0 +1,26 @@
+# Kinde Python SDK v1 Generator
+
+This directory contains the necessary files to regenerate the Kinde Python SDK for v1.
+
+## Prequisites
+
+You must have `openapi-generator-cli` installed. If you do not have it, please see the installation instructions: [https://openapi-generator.tech/docs/installation](https://openapi-generator.tech/docs/installation)
+
+A simple way to install it on macOS is with Homebrew:
+```bash
+brew install openapi-generator
+```
+
+## How to Generate
+
+1. Navigate to this directory (`kinde-python-sdk-v1/generator`).
+2. Make the `generate.sh` script executable:
+ ```bash
+ chmod +x generate.sh
+ ```
+3. Run the script:
+ ```bash
+ ./generate.sh
+ ```
+
+The script will regenerate the SDK in the `kinde-python-sdk-v1` directory, overwriting the existing files. This will update the API client, models, and other generated code to be compatible with the version of `openapi-generator-cli` you are using, which should resolve the Python 3.13 compatibility issues.
\ No newline at end of file
diff --git a/generator/config.yaml b/generator/config.yaml
new file mode 100644
index 00000000..777fb052
--- /dev/null
+++ b/generator/config.yaml
@@ -0,0 +1,8 @@
+# openapi-generator-cli config for python
+
+packageName: kinde_sdk
+projectName: kinde-python-sdk
+packageVersion: 1.0.0
+# It is recommended to use a released version of the generator.
+# For example:
+# generatorVersion: "6.2.1"
\ No newline at end of file
diff --git a/generator/generate.sh b/generator/generate.sh
new file mode 100644
index 00000000..22407a76
--- /dev/null
+++ b/generator/generate.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# This script regenerates the Kinde Python SDK v1.
+# It uses openapi-generator-cli to generate the SDK based on the Kinde Management API specification.
+
+# Ensure openapi-generator-cli is installed.
+if ! command -v openapi-generator-cli &> /dev/null
+then
+ echo "openapi-generator-cli could not be found. Please install it."
+ echo "See: https://openapi-generator.tech/docs/installation"
+ exit
+fi
+
+# Move to the script's directory to ensure paths are correct.
+cd "$(dirname "$0")"
+
+echo "Generating Kinde Python SDK v1..."
+
+# The output directory is set to '..' which is the root of kinde-python-sdk-v1.
+# This will overwrite the existing SDK with the newly generated one.
+_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED" \
+openapi-generator-cli generate \
+ -g python \
+ -i https://kinde.com/api/kinde-mgmt-api-specs.yaml \
+ --additional-properties=packageName=kinde_sdk \
+ -c config.yaml \
+ -o ../ \
+ --skip-validate-spec
+
+echo "SDK generation complete."
\ No newline at end of file
diff --git a/generator/openapitools.json b/generator/openapitools.json
new file mode 100644
index 00000000..151c200f
--- /dev/null
+++ b/generator/openapitools.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
+ "spaces": 2,
+ "generator-cli": {
+ "version": "7.13.0"
+ }
+}
diff --git a/git_push.sh b/git_push.sh
new file mode 100644
index 00000000..f53a75d4
--- /dev/null
+++ b/git_push.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+git_host=$4
+
+if [ "$git_host" = "" ]; then
+ git_host="github.com"
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
+fi
+
+if [ "$git_user_id" = "" ]; then
+ git_user_id="GIT_USER_ID"
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+ git_repo_id="GIT_REPO_ID"
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+ release_note="Minor update"
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=$(git remote)
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+ if [ "$GIT_TOKEN" = "" ]; then
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
+ else
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
+ fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
diff --git a/kinde_sdk/__init__.py b/kinde_sdk/__init__.py
index 9ccac615..d02b0329 100644
--- a/kinde_sdk/__init__.py
+++ b/kinde_sdk/__init__.py
@@ -5,25 +5,290 @@
"""
Kinde Management API
- Provides endpoints to manage your Kinde Businesses # noqa: E501
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
The version of the OpenAPI document: 1
Contact: support@kinde.com
- Generated by: https://openapi-generator.tech
-"""
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
-__version__ = "1.2.5"
+__version__ = "1.0.0"
+
+# import apis into sdk package
+from kinde_sdk.api.apis_api import APIsApi
+from kinde_sdk.api.applications_api import ApplicationsApi
+from kinde_sdk.api.billing_api import BillingApi
+from kinde_sdk.api.billing_agreements_api import BillingAgreementsApi
+from kinde_sdk.api.billing_entitlements_api import BillingEntitlementsApi
+from kinde_sdk.api.billing_meter_usage_api import BillingMeterUsageApi
+from kinde_sdk.api.business_api import BusinessApi
+from kinde_sdk.api.callbacks_api import CallbacksApi
+from kinde_sdk.api.connected_apps_api import ConnectedAppsApi
+from kinde_sdk.api.connections_api import ConnectionsApi
+from kinde_sdk.api.environment_variables_api import EnvironmentVariablesApi
+from kinde_sdk.api.environments_api import EnvironmentsApi
+from kinde_sdk.api.feature_flags_api import FeatureFlagsApi
+from kinde_sdk.api.feature_flags_api import FeatureFlagsApi
+from kinde_sdk.api.identities_api import IdentitiesApi
+from kinde_sdk.api.industries_api import IndustriesApi
+from kinde_sdk.api.mfa_api import MFAApi
+from kinde_sdk.api.o_auth_api import OAuthApi
+from kinde_sdk.api.organizations_api import OrganizationsApi
+from kinde_sdk.api.permissions_api import PermissionsApi
+from kinde_sdk.api.properties_api import PropertiesApi
+from kinde_sdk.api.property_categories_api import PropertyCategoriesApi
+from kinde_sdk.api.roles_api import RolesApi
+from kinde_sdk.api.search_api import SearchApi
+from kinde_sdk.api.self_serve_portal_api import SelfServePortalApi
+from kinde_sdk.api.subscribers_api import SubscribersApi
+from kinde_sdk.api.timezones_api import TimezonesApi
+from kinde_sdk.api.users_api import UsersApi
+from kinde_sdk.api.webhooks_api import WebhooksApi
# import ApiClient
+from kinde_sdk.api_response import ApiResponse
from kinde_sdk.api_client import ApiClient
-
-# import Configuration
from kinde_sdk.configuration import Configuration
-
-# import exceptions
from kinde_sdk.exceptions import OpenApiException
-from kinde_sdk.exceptions import ApiAttributeError
from kinde_sdk.exceptions import ApiTypeError
from kinde_sdk.exceptions import ApiValueError
from kinde_sdk.exceptions import ApiKeyError
+from kinde_sdk.exceptions import ApiAttributeError
from kinde_sdk.exceptions import ApiException
+
+# import models into sdk package
+from kinde_sdk.models.add_api_scope_request import AddAPIScopeRequest
+from kinde_sdk.models.add_apis_request import AddAPIsRequest
+from kinde_sdk.models.add_organization_users_request import AddOrganizationUsersRequest
+from kinde_sdk.models.add_organization_users_request_users_inner import AddOrganizationUsersRequestUsersInner
+from kinde_sdk.models.add_organization_users_response import AddOrganizationUsersResponse
+from kinde_sdk.models.add_role_scope_request import AddRoleScopeRequest
+from kinde_sdk.models.add_role_scope_response import AddRoleScopeResponse
+from kinde_sdk.models.api_result import ApiResult
+from kinde_sdk.models.applications import Applications
+from kinde_sdk.models.authorize_app_api_response import AuthorizeAppApiResponse
+from kinde_sdk.models.category import Category
+from kinde_sdk.models.connected_apps_access_token import ConnectedAppsAccessToken
+from kinde_sdk.models.connected_apps_auth_url import ConnectedAppsAuthUrl
+from kinde_sdk.models.connection import Connection
+from kinde_sdk.models.connection_connection import ConnectionConnection
+from kinde_sdk.models.create_api_scopes_response import CreateApiScopesResponse
+from kinde_sdk.models.create_api_scopes_response_scope import CreateApiScopesResponseScope
+from kinde_sdk.models.create_apis_response import CreateApisResponse
+from kinde_sdk.models.create_apis_response_api import CreateApisResponseApi
+from kinde_sdk.models.create_application_request import CreateApplicationRequest
+from kinde_sdk.models.create_application_response import CreateApplicationResponse
+from kinde_sdk.models.create_application_response_application import CreateApplicationResponseApplication
+from kinde_sdk.models.create_billing_agreement_request import CreateBillingAgreementRequest
+from kinde_sdk.models.create_category_request import CreateCategoryRequest
+from kinde_sdk.models.create_category_response import CreateCategoryResponse
+from kinde_sdk.models.create_category_response_category import CreateCategoryResponseCategory
+from kinde_sdk.models.create_connection_request import CreateConnectionRequest
+from kinde_sdk.models.create_connection_request_options import CreateConnectionRequestOptions
+from kinde_sdk.models.create_connection_request_options_one_of import CreateConnectionRequestOptionsOneOf
+from kinde_sdk.models.create_connection_request_options_one_of1 import CreateConnectionRequestOptionsOneOf1
+from kinde_sdk.models.create_connection_request_options_one_of2 import CreateConnectionRequestOptionsOneOf2
+from kinde_sdk.models.create_connection_response import CreateConnectionResponse
+from kinde_sdk.models.create_connection_response_connection import CreateConnectionResponseConnection
+from kinde_sdk.models.create_environment_variable_request import CreateEnvironmentVariableRequest
+from kinde_sdk.models.create_environment_variable_response import CreateEnvironmentVariableResponse
+from kinde_sdk.models.create_environment_variable_response_environment_variable import CreateEnvironmentVariableResponseEnvironmentVariable
+from kinde_sdk.models.create_feature_flag_request import CreateFeatureFlagRequest
+from kinde_sdk.models.create_identity_response import CreateIdentityResponse
+from kinde_sdk.models.create_identity_response_identity import CreateIdentityResponseIdentity
+from kinde_sdk.models.create_meter_usage_record_request import CreateMeterUsageRecordRequest
+from kinde_sdk.models.create_meter_usage_record_response import CreateMeterUsageRecordResponse
+from kinde_sdk.models.create_organization_request import CreateOrganizationRequest
+from kinde_sdk.models.create_organization_response import CreateOrganizationResponse
+from kinde_sdk.models.create_organization_response_organization import CreateOrganizationResponseOrganization
+from kinde_sdk.models.create_organization_user_permission_request import CreateOrganizationUserPermissionRequest
+from kinde_sdk.models.create_organization_user_role_request import CreateOrganizationUserRoleRequest
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+from kinde_sdk.models.create_property_request import CreatePropertyRequest
+from kinde_sdk.models.create_property_response import CreatePropertyResponse
+from kinde_sdk.models.create_property_response_property import CreatePropertyResponseProperty
+from kinde_sdk.models.create_role_request import CreateRoleRequest
+from kinde_sdk.models.create_roles_response import CreateRolesResponse
+from kinde_sdk.models.create_roles_response_role import CreateRolesResponseRole
+from kinde_sdk.models.create_subscriber_success_response import CreateSubscriberSuccessResponse
+from kinde_sdk.models.create_subscriber_success_response_subscriber import CreateSubscriberSuccessResponseSubscriber
+from kinde_sdk.models.create_user_identity_request import CreateUserIdentityRequest
+from kinde_sdk.models.create_user_request import CreateUserRequest
+from kinde_sdk.models.create_user_request_identities_inner import CreateUserRequestIdentitiesInner
+from kinde_sdk.models.create_user_request_identities_inner_details import CreateUserRequestIdentitiesInnerDetails
+from kinde_sdk.models.create_user_request_profile import CreateUserRequestProfile
+from kinde_sdk.models.create_user_response import CreateUserResponse
+from kinde_sdk.models.create_web_hook_request import CreateWebHookRequest
+from kinde_sdk.models.create_webhook_response import CreateWebhookResponse
+from kinde_sdk.models.create_webhook_response_webhook import CreateWebhookResponseWebhook
+from kinde_sdk.models.delete_api_response import DeleteApiResponse
+from kinde_sdk.models.delete_environment_variable_response import DeleteEnvironmentVariableResponse
+from kinde_sdk.models.delete_role_scope_response import DeleteRoleScopeResponse
+from kinde_sdk.models.delete_webhook_response import DeleteWebhookResponse
+from kinde_sdk.models.environment_variable import EnvironmentVariable
+from kinde_sdk.models.error import Error
+from kinde_sdk.models.error_response import ErrorResponse
+from kinde_sdk.models.event_type import EventType
+from kinde_sdk.models.get_api_response import GetApiResponse
+from kinde_sdk.models.get_api_response_api import GetApiResponseApi
+from kinde_sdk.models.get_api_response_api_applications_inner import GetApiResponseApiApplicationsInner
+from kinde_sdk.models.get_api_response_api_scopes_inner import GetApiResponseApiScopesInner
+from kinde_sdk.models.get_api_scope_response import GetApiScopeResponse
+from kinde_sdk.models.get_api_scopes_response import GetApiScopesResponse
+from kinde_sdk.models.get_api_scopes_response_scopes_inner import GetApiScopesResponseScopesInner
+from kinde_sdk.models.get_apis_response import GetApisResponse
+from kinde_sdk.models.get_apis_response_apis_inner import GetApisResponseApisInner
+from kinde_sdk.models.get_apis_response_apis_inner_scopes_inner import GetApisResponseApisInnerScopesInner
+from kinde_sdk.models.get_application_response import GetApplicationResponse
+from kinde_sdk.models.get_application_response_application import GetApplicationResponseApplication
+from kinde_sdk.models.get_applications_response import GetApplicationsResponse
+from kinde_sdk.models.get_billing_agreements_response import GetBillingAgreementsResponse
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner import GetBillingAgreementsResponseAgreementsInner
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner import GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+from kinde_sdk.models.get_billing_entitlements_response import GetBillingEntitlementsResponse
+from kinde_sdk.models.get_billing_entitlements_response_entitlements_inner import GetBillingEntitlementsResponseEntitlementsInner
+from kinde_sdk.models.get_billing_entitlements_response_plans_inner import GetBillingEntitlementsResponsePlansInner
+from kinde_sdk.models.get_business_response import GetBusinessResponse
+from kinde_sdk.models.get_business_response_business import GetBusinessResponseBusiness
+from kinde_sdk.models.get_categories_response import GetCategoriesResponse
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.models.get_entitlements_response import GetEntitlementsResponse
+from kinde_sdk.models.get_entitlements_response_data import GetEntitlementsResponseData
+from kinde_sdk.models.get_entitlements_response_data_entitlements_inner import GetEntitlementsResponseDataEntitlementsInner
+from kinde_sdk.models.get_entitlements_response_data_plans_inner import GetEntitlementsResponseDataPlansInner
+from kinde_sdk.models.get_entitlements_response_metadata import GetEntitlementsResponseMetadata
+from kinde_sdk.models.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
+from kinde_sdk.models.get_environment_response import GetEnvironmentResponse
+from kinde_sdk.models.get_environment_response_environment import GetEnvironmentResponseEnvironment
+from kinde_sdk.models.get_environment_response_environment_background_color import GetEnvironmentResponseEnvironmentBackgroundColor
+from kinde_sdk.models.get_environment_response_environment_link_color import GetEnvironmentResponseEnvironmentLinkColor
+from kinde_sdk.models.get_environment_variable_response import GetEnvironmentVariableResponse
+from kinde_sdk.models.get_environment_variables_response import GetEnvironmentVariablesResponse
+from kinde_sdk.models.get_event_response import GetEventResponse
+from kinde_sdk.models.get_event_response_event import GetEventResponseEvent
+from kinde_sdk.models.get_event_types_response import GetEventTypesResponse
+from kinde_sdk.models.get_feature_flags_response import GetFeatureFlagsResponse
+from kinde_sdk.models.get_feature_flags_response_data import GetFeatureFlagsResponseData
+from kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner import GetFeatureFlagsResponseDataFeatureFlagsInner
+from kinde_sdk.models.get_identities_response import GetIdentitiesResponse
+from kinde_sdk.models.get_industries_response import GetIndustriesResponse
+from kinde_sdk.models.get_industries_response_industries_inner import GetIndustriesResponseIndustriesInner
+from kinde_sdk.models.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
+from kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value import GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+from kinde_sdk.models.get_organization_response import GetOrganizationResponse
+from kinde_sdk.models.get_organization_response_billing import GetOrganizationResponseBilling
+from kinde_sdk.models.get_organization_response_billing_agreements_inner import GetOrganizationResponseBillingAgreementsInner
+from kinde_sdk.models.get_organization_users_response import GetOrganizationUsersResponse
+from kinde_sdk.models.get_organizations_response import GetOrganizationsResponse
+from kinde_sdk.models.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
+from kinde_sdk.models.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
+from kinde_sdk.models.get_permissions_response import GetPermissionsResponse
+from kinde_sdk.models.get_portal_link import GetPortalLink
+from kinde_sdk.models.get_properties_response import GetPropertiesResponse
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.models.get_redirect_callback_urls_response import GetRedirectCallbackUrlsResponse
+from kinde_sdk.models.get_role_response import GetRoleResponse
+from kinde_sdk.models.get_role_response_role import GetRoleResponseRole
+from kinde_sdk.models.get_roles_response import GetRolesResponse
+from kinde_sdk.models.get_subscriber_response import GetSubscriberResponse
+from kinde_sdk.models.get_subscribers_response import GetSubscribersResponse
+from kinde_sdk.models.get_timezones_response import GetTimezonesResponse
+from kinde_sdk.models.get_timezones_response_timezones_inner import GetTimezonesResponseTimezonesInner
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+from kinde_sdk.models.get_user_mfa_response_mfa import GetUserMfaResponseMfa
+from kinde_sdk.models.get_user_permissions_response import GetUserPermissionsResponse
+from kinde_sdk.models.get_user_permissions_response_data import GetUserPermissionsResponseData
+from kinde_sdk.models.get_user_permissions_response_data_permissions_inner import GetUserPermissionsResponseDataPermissionsInner
+from kinde_sdk.models.get_user_permissions_response_metadata import GetUserPermissionsResponseMetadata
+from kinde_sdk.models.get_user_properties_response import GetUserPropertiesResponse
+from kinde_sdk.models.get_user_properties_response_data import GetUserPropertiesResponseData
+from kinde_sdk.models.get_user_properties_response_data_properties_inner import GetUserPropertiesResponseDataPropertiesInner
+from kinde_sdk.models.get_user_properties_response_metadata import GetUserPropertiesResponseMetadata
+from kinde_sdk.models.get_user_roles_response import GetUserRolesResponse
+from kinde_sdk.models.get_user_roles_response_data import GetUserRolesResponseData
+from kinde_sdk.models.get_user_roles_response_data_roles_inner import GetUserRolesResponseDataRolesInner
+from kinde_sdk.models.get_user_roles_response_metadata import GetUserRolesResponseMetadata
+from kinde_sdk.models.get_user_sessions_response import GetUserSessionsResponse
+from kinde_sdk.models.get_user_sessions_response_sessions_inner import GetUserSessionsResponseSessionsInner
+from kinde_sdk.models.get_webhooks_response import GetWebhooksResponse
+from kinde_sdk.models.identity import Identity
+from kinde_sdk.models.logout_redirect_urls import LogoutRedirectUrls
+from kinde_sdk.models.model_property import ModelProperty
+from kinde_sdk.models.not_found_response import NotFoundResponse
+from kinde_sdk.models.not_found_response_errors import NotFoundResponseErrors
+from kinde_sdk.models.organization_item_schema import OrganizationItemSchema
+from kinde_sdk.models.organization_user import OrganizationUser
+from kinde_sdk.models.organization_user_permission import OrganizationUserPermission
+from kinde_sdk.models.organization_user_permission_roles_inner import OrganizationUserPermissionRolesInner
+from kinde_sdk.models.organization_user_role import OrganizationUserRole
+from kinde_sdk.models.organization_user_role_permissions import OrganizationUserRolePermissions
+from kinde_sdk.models.organization_user_role_permissions_permissions import OrganizationUserRolePermissionsPermissions
+from kinde_sdk.models.permissions import Permissions
+from kinde_sdk.models.property_value import PropertyValue
+from kinde_sdk.models.read_env_logo_response import ReadEnvLogoResponse
+from kinde_sdk.models.read_env_logo_response_logos_inner import ReadEnvLogoResponseLogosInner
+from kinde_sdk.models.read_logo_response import ReadLogoResponse
+from kinde_sdk.models.read_logo_response_logos_inner import ReadLogoResponseLogosInner
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+from kinde_sdk.models.replace_connection_request import ReplaceConnectionRequest
+from kinde_sdk.models.replace_connection_request_options import ReplaceConnectionRequestOptions
+from kinde_sdk.models.replace_connection_request_options_one_of import ReplaceConnectionRequestOptionsOneOf
+from kinde_sdk.models.replace_connection_request_options_one_of1 import ReplaceConnectionRequestOptionsOneOf1
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+from kinde_sdk.models.replace_mfa_request import ReplaceMFARequest
+from kinde_sdk.models.replace_organization_mfa_request import ReplaceOrganizationMFARequest
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+from kinde_sdk.models.role import Role
+from kinde_sdk.models.role_permissions_response import RolePermissionsResponse
+from kinde_sdk.models.role_scopes_response import RoleScopesResponse
+from kinde_sdk.models.roles import Roles
+from kinde_sdk.models.scopes import Scopes
+from kinde_sdk.models.search_users_response import SearchUsersResponse
+from kinde_sdk.models.search_users_response_results_inner import SearchUsersResponseResultsInner
+from kinde_sdk.models.set_user_password_request import SetUserPasswordRequest
+from kinde_sdk.models.subscriber import Subscriber
+from kinde_sdk.models.subscribers_subscriber import SubscribersSubscriber
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.token_error_response import TokenErrorResponse
+from kinde_sdk.models.token_introspect import TokenIntrospect
+from kinde_sdk.models.update_api_applications_request import UpdateAPIApplicationsRequest
+from kinde_sdk.models.update_api_applications_request_applications_inner import UpdateAPIApplicationsRequestApplicationsInner
+from kinde_sdk.models.update_api_scope_request import UpdateAPIScopeRequest
+from kinde_sdk.models.update_application_request import UpdateApplicationRequest
+from kinde_sdk.models.update_application_tokens_request import UpdateApplicationTokensRequest
+from kinde_sdk.models.update_applications_property_request import UpdateApplicationsPropertyRequest
+from kinde_sdk.models.update_applications_property_request_value import UpdateApplicationsPropertyRequestValue
+from kinde_sdk.models.update_business_request import UpdateBusinessRequest
+from kinde_sdk.models.update_category_request import UpdateCategoryRequest
+from kinde_sdk.models.update_connection_request import UpdateConnectionRequest
+from kinde_sdk.models.update_environement_feature_flag_override_request import UpdateEnvironementFeatureFlagOverrideRequest
+from kinde_sdk.models.update_environment_variable_request import UpdateEnvironmentVariableRequest
+from kinde_sdk.models.update_environment_variable_response import UpdateEnvironmentVariableResponse
+from kinde_sdk.models.update_identity_request import UpdateIdentityRequest
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+from kinde_sdk.models.update_organization_request import UpdateOrganizationRequest
+from kinde_sdk.models.update_organization_sessions_request import UpdateOrganizationSessionsRequest
+from kinde_sdk.models.update_organization_users_request import UpdateOrganizationUsersRequest
+from kinde_sdk.models.update_organization_users_request_users_inner import UpdateOrganizationUsersRequestUsersInner
+from kinde_sdk.models.update_organization_users_response import UpdateOrganizationUsersResponse
+from kinde_sdk.models.update_property_request import UpdatePropertyRequest
+from kinde_sdk.models.update_role_permissions_request import UpdateRolePermissionsRequest
+from kinde_sdk.models.update_role_permissions_request_permissions_inner import UpdateRolePermissionsRequestPermissionsInner
+from kinde_sdk.models.update_role_permissions_response import UpdateRolePermissionsResponse
+from kinde_sdk.models.update_roles_request import UpdateRolesRequest
+from kinde_sdk.models.update_user_request import UpdateUserRequest
+from kinde_sdk.models.update_user_response import UpdateUserResponse
+from kinde_sdk.models.update_web_hook_request import UpdateWebHookRequest
+from kinde_sdk.models.update_webhook_response import UpdateWebhookResponse
+from kinde_sdk.models.update_webhook_response_webhook import UpdateWebhookResponseWebhook
+from kinde_sdk.models.user import User
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+from kinde_sdk.models.user_identity import UserIdentity
+from kinde_sdk.models.user_identity_result import UserIdentityResult
+from kinde_sdk.models.user_profile_v2 import UserProfileV2
+from kinde_sdk.models.users_response import UsersResponse
+from kinde_sdk.models.users_response_users_inner import UsersResponseUsersInner
+from kinde_sdk.models.webhook import Webhook
diff --git a/kinde_sdk/api/__init__.py b/kinde_sdk/api/__init__.py
new file mode 100644
index 00000000..d9bce896
--- /dev/null
+++ b/kinde_sdk/api/__init__.py
@@ -0,0 +1,33 @@
+# flake8: noqa
+
+# import apis into api package
+from kinde_sdk.api.apis_api import APIsApi
+from kinde_sdk.api.applications_api import ApplicationsApi
+from kinde_sdk.api.billing_api import BillingApi
+from kinde_sdk.api.billing_agreements_api import BillingAgreementsApi
+from kinde_sdk.api.billing_entitlements_api import BillingEntitlementsApi
+from kinde_sdk.api.billing_meter_usage_api import BillingMeterUsageApi
+from kinde_sdk.api.business_api import BusinessApi
+from kinde_sdk.api.callbacks_api import CallbacksApi
+from kinde_sdk.api.connected_apps_api import ConnectedAppsApi
+from kinde_sdk.api.connections_api import ConnectionsApi
+from kinde_sdk.api.environment_variables_api import EnvironmentVariablesApi
+from kinde_sdk.api.environments_api import EnvironmentsApi
+from kinde_sdk.api.feature_flags_api import FeatureFlagsApi
+from kinde_sdk.api.feature_flags_api import FeatureFlagsApi
+from kinde_sdk.api.identities_api import IdentitiesApi
+from kinde_sdk.api.industries_api import IndustriesApi
+from kinde_sdk.api.mfa_api import MFAApi
+from kinde_sdk.api.o_auth_api import OAuthApi
+from kinde_sdk.api.organizations_api import OrganizationsApi
+from kinde_sdk.api.permissions_api import PermissionsApi
+from kinde_sdk.api.properties_api import PropertiesApi
+from kinde_sdk.api.property_categories_api import PropertyCategoriesApi
+from kinde_sdk.api.roles_api import RolesApi
+from kinde_sdk.api.search_api import SearchApi
+from kinde_sdk.api.self_serve_portal_api import SelfServePortalApi
+from kinde_sdk.api.subscribers_api import SubscribersApi
+from kinde_sdk.api.timezones_api import TimezonesApi
+from kinde_sdk.api.users_api import UsersApi
+from kinde_sdk.api.webhooks_api import WebhooksApi
+
diff --git a/kinde_sdk/api/apis_api.py b/kinde_sdk/api/apis_api.py
new file mode 100644
index 00000000..b3f6e5c1
--- /dev/null
+++ b/kinde_sdk/api/apis_api.py
@@ -0,0 +1,3495 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.add_api_scope_request import AddAPIScopeRequest
+from kinde_sdk.models.add_apis_request import AddAPIsRequest
+from kinde_sdk.models.authorize_app_api_response import AuthorizeAppApiResponse
+from kinde_sdk.models.create_api_scopes_response import CreateApiScopesResponse
+from kinde_sdk.models.create_apis_response import CreateApisResponse
+from kinde_sdk.models.delete_api_response import DeleteApiResponse
+from kinde_sdk.models.get_api_response import GetApiResponse
+from kinde_sdk.models.get_api_scope_response import GetApiScopeResponse
+from kinde_sdk.models.get_api_scopes_response import GetApiScopesResponse
+from kinde_sdk.models.get_apis_response import GetApisResponse
+from kinde_sdk.models.update_api_applications_request import UpdateAPIApplicationsRequest
+from kinde_sdk.models.update_api_scope_request import UpdateAPIScopeRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class APIsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def add_api_application_scope(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ application_id: Annotated[StrictStr, Field(description="Application ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Add scope to API application
+
+ Add a scope to an API application. create:api_application_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param application_id: Application ID (required)
+ :type application_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_api_application_scope_serialize(
+ api_id=api_id,
+ application_id=application_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_api_application_scope_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ application_id: Annotated[StrictStr, Field(description="Application ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Add scope to API application
+
+ Add a scope to an API application. create:api_application_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param application_id: Application ID (required)
+ :type application_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_api_application_scope_serialize(
+ api_id=api_id,
+ application_id=application_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_api_application_scope_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ application_id: Annotated[StrictStr, Field(description="Application ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add scope to API application
+
+ Add a scope to an API application. create:api_application_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param application_id: Application ID (required)
+ :type application_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_api_application_scope_serialize(
+ api_id=api_id,
+ application_id=application_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_api_application_scope_serialize(
+ self,
+ api_id,
+ application_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def add_api_scope(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ add_api_scope_request: AddAPIScopeRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateApiScopesResponse:
+ """Create API scope
+
+ Create a new API scope. create:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param add_api_scope_request: (required)
+ :type add_api_scope_request: AddAPIScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_api_scope_serialize(
+ api_id=api_id,
+ add_api_scope_request=add_api_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateApiScopesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_api_scope_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ add_api_scope_request: AddAPIScopeRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateApiScopesResponse]:
+ """Create API scope
+
+ Create a new API scope. create:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param add_api_scope_request: (required)
+ :type add_api_scope_request: AddAPIScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_api_scope_serialize(
+ api_id=api_id,
+ add_api_scope_request=add_api_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateApiScopesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_api_scope_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ add_api_scope_request: AddAPIScopeRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create API scope
+
+ Create a new API scope. create:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param add_api_scope_request: (required)
+ :type add_api_scope_request: AddAPIScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_api_scope_serialize(
+ api_id=api_id,
+ add_api_scope_request=add_api_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateApiScopesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_api_scope_serialize(
+ self,
+ api_id,
+ add_api_scope_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if add_api_scope_request is not None:
+ _body_params = add_api_scope_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/apis/{api_id}/scopes',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def add_apis(
+ self,
+ add_apis_request: AddAPIsRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateApisResponse:
+ """Create API
+
+ Register a new API. For more information read [Register and manage APIs](https://docs.kinde.com/developer-tools/your-apis/register-manage-apis/). create:apis
+
+ :param add_apis_request: (required)
+ :type add_apis_request: AddAPIsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_apis_serialize(
+ add_apis_request=add_apis_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateApisResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_apis_with_http_info(
+ self,
+ add_apis_request: AddAPIsRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateApisResponse]:
+ """Create API
+
+ Register a new API. For more information read [Register and manage APIs](https://docs.kinde.com/developer-tools/your-apis/register-manage-apis/). create:apis
+
+ :param add_apis_request: (required)
+ :type add_apis_request: AddAPIsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_apis_serialize(
+ add_apis_request=add_apis_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateApisResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_apis_without_preload_content(
+ self,
+ add_apis_request: AddAPIsRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create API
+
+ Register a new API. For more information read [Register and manage APIs](https://docs.kinde.com/developer-tools/your-apis/register-manage-apis/). create:apis
+
+ :param add_apis_request: (required)
+ :type add_apis_request: AddAPIsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_apis_serialize(
+ add_apis_request=add_apis_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateApisResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_apis_serialize(
+ self,
+ add_apis_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if add_apis_request is not None:
+ _body_params = add_apis_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/apis',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_api(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DeleteApiResponse:
+ """Delete API
+
+ Delete an API you previously created. delete:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_api_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DeleteApiResponse]:
+ """Delete API
+
+ Delete an API you previously created. delete:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_api_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete API
+
+ Delete an API you previously created. delete:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_api_serialize(
+ self,
+ api_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/apis/{api_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_api_appliation_scope(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ application_id: Annotated[StrictStr, Field(description="Application ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Delete API application scope
+
+ Delete an API application scope you previously created. delete:apis_application_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param application_id: Application ID (required)
+ :type application_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_appliation_scope_serialize(
+ api_id=api_id,
+ application_id=application_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_api_appliation_scope_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ application_id: Annotated[StrictStr, Field(description="Application ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Delete API application scope
+
+ Delete an API application scope you previously created. delete:apis_application_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param application_id: Application ID (required)
+ :type application_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_appliation_scope_serialize(
+ api_id=api_id,
+ application_id=application_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_api_appliation_scope_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ application_id: Annotated[StrictStr, Field(description="Application ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete API application scope
+
+ Delete an API application scope you previously created. delete:apis_application_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param application_id: Application ID (required)
+ :type application_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_appliation_scope_serialize(
+ api_id=api_id,
+ application_id=application_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_api_appliation_scope_serialize(
+ self,
+ api_id,
+ application_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_api_scope(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Delete API scope
+
+ Delete an API scope you previously created. delete:apis_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_api_scope_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Delete API scope
+
+ Delete an API scope you previously created. delete:apis_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_api_scope_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete API scope
+
+ Delete an API scope you previously created. delete:apis_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_api_scope_serialize(
+ self,
+ api_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/apis/{api_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_api(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetApiResponse:
+ """Get API
+
+ Retrieve API details by ID. read:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_api_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetApiResponse]:
+ """Get API
+
+ Retrieve API details by ID. read:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_api_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get API
+
+ Retrieve API details by ID. read:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_api_serialize(
+ self,
+ api_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/apis/{api_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_api_scope(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetApiScopeResponse:
+ """Get API scope
+
+ Retrieve API scope by API ID. read:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_api_scope_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetApiScopeResponse]:
+ """Get API scope
+
+ Retrieve API scope by API ID. read:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_api_scope_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get API scope
+
+ Retrieve API scope by API ID. read:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_api_scope_serialize(
+ self,
+ api_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/apis/{api_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_api_scopes(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetApiScopesResponse:
+ """Get API scopes
+
+ Retrieve API scopes by API ID. read:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_scopes_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiScopesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_api_scopes_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetApiScopesResponse]:
+ """Get API scopes
+
+ Retrieve API scopes by API ID. read:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_scopes_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiScopesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_api_scopes_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get API scopes
+
+ Retrieve API scopes by API ID. read:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_api_scopes_serialize(
+ api_id=api_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApiScopesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_api_scopes_serialize(
+ self,
+ api_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/apis/{api_id}/scopes',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_apis(
+ self,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"scopes\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetApisResponse:
+ """Get APIs
+
+ Returns a list of your APIs. The APIs are returned sorted by name. read:apis
+
+ :param expand: Specify additional data to retrieve. Use \"scopes\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_apis_serialize(
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApisResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_apis_with_http_info(
+ self,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"scopes\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetApisResponse]:
+ """Get APIs
+
+ Returns a list of your APIs. The APIs are returned sorted by name. read:apis
+
+ :param expand: Specify additional data to retrieve. Use \"scopes\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_apis_serialize(
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApisResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_apis_without_preload_content(
+ self,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"scopes\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get APIs
+
+ Returns a list of your APIs. The APIs are returned sorted by name. read:apis
+
+ :param expand: Specify additional data to retrieve. Use \"scopes\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_apis_serialize(
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApisResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_apis_serialize(
+ self,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/apis',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_api_applications(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ update_api_applications_request: Annotated[UpdateAPIApplicationsRequest, Field(description="The applications you want to authorize.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AuthorizeAppApiResponse:
+ """Authorize API applications
+
+ Authorize applications to be allowed to request access tokens for an API update:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param update_api_applications_request: The applications you want to authorize. (required)
+ :type update_api_applications_request: UpdateAPIApplicationsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_api_applications_serialize(
+ api_id=api_id,
+ update_api_applications_request=update_api_applications_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthorizeAppApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_api_applications_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ update_api_applications_request: Annotated[UpdateAPIApplicationsRequest, Field(description="The applications you want to authorize.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AuthorizeAppApiResponse]:
+ """Authorize API applications
+
+ Authorize applications to be allowed to request access tokens for an API update:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param update_api_applications_request: The applications you want to authorize. (required)
+ :type update_api_applications_request: UpdateAPIApplicationsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_api_applications_serialize(
+ api_id=api_id,
+ update_api_applications_request=update_api_applications_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthorizeAppApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_api_applications_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="The API's ID.")],
+ update_api_applications_request: Annotated[UpdateAPIApplicationsRequest, Field(description="The applications you want to authorize.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Authorize API applications
+
+ Authorize applications to be allowed to request access tokens for an API update:apis
+
+ :param api_id: The API's ID. (required)
+ :type api_id: str
+ :param update_api_applications_request: The applications you want to authorize. (required)
+ :type update_api_applications_request: UpdateAPIApplicationsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_api_applications_serialize(
+ api_id=api_id,
+ update_api_applications_request=update_api_applications_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthorizeAppApiResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_api_applications_serialize(
+ self,
+ api_id,
+ update_api_applications_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_api_applications_request is not None:
+ _body_params = update_api_applications_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/apis/{api_id}/applications',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_api_scope(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ update_api_scope_request: UpdateAPIScopeRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Update API scope
+
+ Update an API scope. update:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param update_api_scope_request: (required)
+ :type update_api_scope_request: UpdateAPIScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ update_api_scope_request=update_api_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_api_scope_with_http_info(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ update_api_scope_request: UpdateAPIScopeRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Update API scope
+
+ Update an API scope. update:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param update_api_scope_request: (required)
+ :type update_api_scope_request: UpdateAPIScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ update_api_scope_request=update_api_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_api_scope_without_preload_content(
+ self,
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ update_api_scope_request: UpdateAPIScopeRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update API scope
+
+ Update an API scope. update:api_scopes
+
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param update_api_scope_request: (required)
+ :type update_api_scope_request: UpdateAPIScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_api_scope_serialize(
+ api_id=api_id,
+ scope_id=scope_id,
+ update_api_scope_request=update_api_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_api_scope_serialize(
+ self,
+ api_id,
+ scope_id,
+ update_api_scope_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_api_scope_request is not None:
+ _body_params = update_api_scope_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/apis/{api_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/applications_api.py b/kinde_sdk/api/applications_api.py
new file mode 100644
index 00000000..db0b5fe2
--- /dev/null
+++ b/kinde_sdk/api/applications_api.py
@@ -0,0 +1,3197 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_application_request import CreateApplicationRequest
+from kinde_sdk.models.create_application_response import CreateApplicationResponse
+from kinde_sdk.models.get_application_response import GetApplicationResponse
+from kinde_sdk.models.get_applications_response import GetApplicationsResponse
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_application_request import UpdateApplicationRequest
+from kinde_sdk.models.update_application_tokens_request import UpdateApplicationTokensRequest
+from kinde_sdk.models.update_applications_property_request import UpdateApplicationsPropertyRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class ApplicationsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_application(
+ self,
+ create_application_request: CreateApplicationRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateApplicationResponse:
+ """Create application
+
+ Create a new client. create:applications
+
+ :param create_application_request: (required)
+ :type create_application_request: CreateApplicationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_application_serialize(
+ create_application_request=create_application_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateApplicationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_application_with_http_info(
+ self,
+ create_application_request: CreateApplicationRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateApplicationResponse]:
+ """Create application
+
+ Create a new client. create:applications
+
+ :param create_application_request: (required)
+ :type create_application_request: CreateApplicationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_application_serialize(
+ create_application_request=create_application_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateApplicationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_application_without_preload_content(
+ self,
+ create_application_request: CreateApplicationRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create application
+
+ Create a new client. create:applications
+
+ :param create_application_request: (required)
+ :type create_application_request: CreateApplicationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_application_serialize(
+ create_application_request=create_application_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateApplicationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_application_serialize(
+ self,
+ create_application_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_application_request is not None:
+ _body_params = create_application_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/applications',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_application(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete application
+
+ Delete a client / application. delete:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_application_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_application_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete application
+
+ Delete a client / application. delete:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_application_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_application_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete application
+
+ Delete a client / application. delete:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_application_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_application_serialize(
+ self,
+ application_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/applications/{application_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def enable_connection(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Enable connection
+
+ Enable an auth connection for an application. create:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._enable_connection_serialize(
+ application_id=application_id,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def enable_connection_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Enable connection
+
+ Enable an auth connection for an application. create:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._enable_connection_serialize(
+ application_id=application_id,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def enable_connection_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Enable connection
+
+ Enable an auth connection for an application. create:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._enable_connection_serialize(
+ application_id=application_id,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _enable_connection_serialize(
+ self,
+ application_id,
+ connection_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/applications/{application_id}/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_application(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetApplicationResponse:
+ """Get application
+
+ Gets an application given the application's ID. read:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApplicationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_application_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetApplicationResponse]:
+ """Get application
+
+ Gets an application given the application's ID. read:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApplicationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_application_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get application
+
+ Gets an application given the application's ID. read:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApplicationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_application_serialize(
+ self,
+ application_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/applications/{application_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_application_connections(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetConnectionsResponse:
+ """Get connections
+
+ Gets all connections for an application. read:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_connections_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_application_connections_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetConnectionsResponse]:
+ """Get connections
+
+ Gets all connections for an application. read:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_connections_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_application_connections_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get connections
+
+ Gets all connections for an application. read:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_connections_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_application_connections_serialize(
+ self,
+ application_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/applications/{application_id}/connections',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_application_property_values(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The application's ID / client ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPropertyValuesResponse:
+ """Get property values
+
+ Gets properties for an application by client ID. read:application_properties
+
+ :param application_id: The application's ID / client ID. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_property_values_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_application_property_values_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The application's ID / client ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPropertyValuesResponse]:
+ """Get property values
+
+ Gets properties for an application by client ID. read:application_properties
+
+ :param application_id: The application's ID / client ID. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_property_values_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_application_property_values_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The application's ID / client ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get property values
+
+ Gets properties for an application by client ID. read:application_properties
+
+ :param application_id: The application's ID / client ID. (required)
+ :type application_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_application_property_values_serialize(
+ application_id=application_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_application_property_values_serialize(
+ self,
+ application_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/applications/{application_id}/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_applications(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetApplicationsResponse:
+ """Get applications
+
+ Get a list of applications / clients. read:applications
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_applications_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApplicationsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_applications_with_http_info(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetApplicationsResponse]:
+ """Get applications
+
+ Get a list of applications / clients. read:applications
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_applications_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApplicationsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_applications_without_preload_content(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get applications
+
+ Get a list of applications / clients. read:applications
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_applications_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetApplicationsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_applications_serialize(
+ self,
+ sort,
+ page_size,
+ next_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/applications',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def remove_connection(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Remove connection
+
+ Turn off an auth connection for an application delete:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_connection_serialize(
+ application_id=application_id,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def remove_connection_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Remove connection
+
+ Turn off an auth connection for an application delete:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_connection_serialize(
+ application_id=application_id,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def remove_connection_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Remove connection
+
+ Turn off an auth connection for an application delete:application_connections
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_connection_serialize(
+ application_id=application_id,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _remove_connection_serialize(
+ self,
+ application_id,
+ connection_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/applications/{application_id}/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_application(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ update_application_request: Annotated[Optional[UpdateApplicationRequest], Field(description="Application details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Update Application
+
+ Updates a client's settings. For more information, read [Applications in Kinde](https://docs.kinde.com/build/applications/about-applications) update:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param update_application_request: Application details.
+ :type update_application_request: UpdateApplicationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_application_serialize(
+ application_id=application_id,
+ update_application_request=update_application_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_application_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ update_application_request: Annotated[Optional[UpdateApplicationRequest], Field(description="Application details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Update Application
+
+ Updates a client's settings. For more information, read [Applications in Kinde](https://docs.kinde.com/build/applications/about-applications) update:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param update_application_request: Application details.
+ :type update_application_request: UpdateApplicationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_application_serialize(
+ application_id=application_id,
+ update_application_request=update_application_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_application_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ update_application_request: Annotated[Optional[UpdateApplicationRequest], Field(description="Application details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Application
+
+ Updates a client's settings. For more information, read [Applications in Kinde](https://docs.kinde.com/build/applications/about-applications) update:applications
+
+ :param application_id: The identifier for the application. (required)
+ :type application_id: str
+ :param update_application_request: Application details.
+ :type update_application_request: UpdateApplicationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_application_serialize(
+ application_id=application_id,
+ update_application_request=update_application_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_application_serialize(
+ self,
+ application_id,
+ update_application_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_application_request is not None:
+ _body_params = update_application_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/applications/{application_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_application_tokens(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ update_application_tokens_request: Annotated[UpdateApplicationTokensRequest, Field(description="Application tokens.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update application tokens
+
+ Configure tokens for an application. update:application_tokens
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param update_application_tokens_request: Application tokens. (required)
+ :type update_application_tokens_request: UpdateApplicationTokensRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_application_tokens_serialize(
+ application_id=application_id,
+ update_application_tokens_request=update_application_tokens_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_application_tokens_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ update_application_tokens_request: Annotated[UpdateApplicationTokensRequest, Field(description="Application tokens.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update application tokens
+
+ Configure tokens for an application. update:application_tokens
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param update_application_tokens_request: Application tokens. (required)
+ :type update_application_tokens_request: UpdateApplicationTokensRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_application_tokens_serialize(
+ application_id=application_id,
+ update_application_tokens_request=update_application_tokens_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_application_tokens_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The identifier/client ID for the application.")],
+ update_application_tokens_request: Annotated[UpdateApplicationTokensRequest, Field(description="Application tokens.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update application tokens
+
+ Configure tokens for an application. update:application_tokens
+
+ :param application_id: The identifier/client ID for the application. (required)
+ :type application_id: str
+ :param update_application_tokens_request: Application tokens. (required)
+ :type update_application_tokens_request: UpdateApplicationTokensRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_application_tokens_serialize(
+ application_id=application_id,
+ update_application_tokens_request=update_application_tokens_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_application_tokens_serialize(
+ self,
+ application_id,
+ update_application_tokens_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_application_tokens_request is not None:
+ _body_params = update_application_tokens_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/applications/{application_id}/tokens',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_applications_property(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The application's ID / client ID.")],
+ property_key: Annotated[StrictStr, Field(description="The property's key.")],
+ update_applications_property_request: UpdateApplicationsPropertyRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update property
+
+ Update application property value. update:application_properties
+
+ :param application_id: The application's ID / client ID. (required)
+ :type application_id: str
+ :param property_key: The property's key. (required)
+ :type property_key: str
+ :param update_applications_property_request: (required)
+ :type update_applications_property_request: UpdateApplicationsPropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_applications_property_serialize(
+ application_id=application_id,
+ property_key=property_key,
+ update_applications_property_request=update_applications_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_applications_property_with_http_info(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The application's ID / client ID.")],
+ property_key: Annotated[StrictStr, Field(description="The property's key.")],
+ update_applications_property_request: UpdateApplicationsPropertyRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update property
+
+ Update application property value. update:application_properties
+
+ :param application_id: The application's ID / client ID. (required)
+ :type application_id: str
+ :param property_key: The property's key. (required)
+ :type property_key: str
+ :param update_applications_property_request: (required)
+ :type update_applications_property_request: UpdateApplicationsPropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_applications_property_serialize(
+ application_id=application_id,
+ property_key=property_key,
+ update_applications_property_request=update_applications_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_applications_property_without_preload_content(
+ self,
+ application_id: Annotated[StrictStr, Field(description="The application's ID / client ID.")],
+ property_key: Annotated[StrictStr, Field(description="The property's key.")],
+ update_applications_property_request: UpdateApplicationsPropertyRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update property
+
+ Update application property value. update:application_properties
+
+ :param application_id: The application's ID / client ID. (required)
+ :type application_id: str
+ :param property_key: The property's key. (required)
+ :type property_key: str
+ :param update_applications_property_request: (required)
+ :type update_applications_property_request: UpdateApplicationsPropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_applications_property_serialize(
+ application_id=application_id,
+ property_key=property_key,
+ update_applications_property_request=update_applications_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_applications_property_serialize(
+ self,
+ application_id,
+ property_key,
+ update_applications_property_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if application_id is not None:
+ _path_params['application_id'] = application_id
+ if property_key is not None:
+ _path_params['property_key'] = property_key
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_applications_property_request is not None:
+ _body_params = update_applications_property_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/applications/{application_id}/properties/{property_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/billing_agreements_api.py b/kinde_sdk/api/billing_agreements_api.py
new file mode 100644
index 00000000..cccdedd3
--- /dev/null
+++ b/kinde_sdk/api/billing_agreements_api.py
@@ -0,0 +1,666 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_billing_agreement_request import CreateBillingAgreementRequest
+from kinde_sdk.models.get_billing_agreements_response import GetBillingAgreementsResponse
+from kinde_sdk.models.success_response import SuccessResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class BillingAgreementsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_billing_agreement(
+ self,
+ create_billing_agreement_request: Annotated[CreateBillingAgreementRequest, Field(description="New agreement request values")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Create billing agreement
+
+ Creates a new billing agreement based on the plan code passed, and cancels the customer's existing agreements create:billing_agreements
+
+ :param create_billing_agreement_request: New agreement request values (required)
+ :type create_billing_agreement_request: CreateBillingAgreementRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_billing_agreement_serialize(
+ create_billing_agreement_request=create_billing_agreement_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_billing_agreement_with_http_info(
+ self,
+ create_billing_agreement_request: Annotated[CreateBillingAgreementRequest, Field(description="New agreement request values")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Create billing agreement
+
+ Creates a new billing agreement based on the plan code passed, and cancels the customer's existing agreements create:billing_agreements
+
+ :param create_billing_agreement_request: New agreement request values (required)
+ :type create_billing_agreement_request: CreateBillingAgreementRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_billing_agreement_serialize(
+ create_billing_agreement_request=create_billing_agreement_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_billing_agreement_without_preload_content(
+ self,
+ create_billing_agreement_request: Annotated[CreateBillingAgreementRequest, Field(description="New agreement request values")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create billing agreement
+
+ Creates a new billing agreement based on the plan code passed, and cancels the customer's existing agreements create:billing_agreements
+
+ :param create_billing_agreement_request: New agreement request values (required)
+ :type create_billing_agreement_request: CreateBillingAgreementRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_billing_agreement_serialize(
+ create_billing_agreement_request=create_billing_agreement_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_billing_agreement_serialize(
+ self,
+ create_billing_agreement_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_billing_agreement_request is not None:
+ _body_params = create_billing_agreement_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/billing/agreements',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_billing_agreements(
+ self,
+ customer_id: Annotated[StrictStr, Field(description="The ID of the billing customer to retrieve agreements for")],
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the billing agreement to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the billing agreement to end before.")] = None,
+ feature_code: Annotated[Optional[StrictStr], Field(description="The feature code to filter by agreements only containing that feature")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetBillingAgreementsResponse:
+ """Get billing agreements
+
+ Returns all the agreements a billing customer currently has access to read:billing_agreements
+
+ :param customer_id: The ID of the billing customer to retrieve agreements for (required)
+ :type customer_id: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the billing agreement to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the billing agreement to end before.
+ :type ending_before: str
+ :param feature_code: The feature code to filter by agreements only containing that feature
+ :type feature_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_billing_agreements_serialize(
+ customer_id=customer_id,
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ feature_code=feature_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBillingAgreementsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_billing_agreements_with_http_info(
+ self,
+ customer_id: Annotated[StrictStr, Field(description="The ID of the billing customer to retrieve agreements for")],
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the billing agreement to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the billing agreement to end before.")] = None,
+ feature_code: Annotated[Optional[StrictStr], Field(description="The feature code to filter by agreements only containing that feature")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetBillingAgreementsResponse]:
+ """Get billing agreements
+
+ Returns all the agreements a billing customer currently has access to read:billing_agreements
+
+ :param customer_id: The ID of the billing customer to retrieve agreements for (required)
+ :type customer_id: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the billing agreement to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the billing agreement to end before.
+ :type ending_before: str
+ :param feature_code: The feature code to filter by agreements only containing that feature
+ :type feature_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_billing_agreements_serialize(
+ customer_id=customer_id,
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ feature_code=feature_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBillingAgreementsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_billing_agreements_without_preload_content(
+ self,
+ customer_id: Annotated[StrictStr, Field(description="The ID of the billing customer to retrieve agreements for")],
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the billing agreement to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the billing agreement to end before.")] = None,
+ feature_code: Annotated[Optional[StrictStr], Field(description="The feature code to filter by agreements only containing that feature")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get billing agreements
+
+ Returns all the agreements a billing customer currently has access to read:billing_agreements
+
+ :param customer_id: The ID of the billing customer to retrieve agreements for (required)
+ :type customer_id: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the billing agreement to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the billing agreement to end before.
+ :type ending_before: str
+ :param feature_code: The feature code to filter by agreements only containing that feature
+ :type feature_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_billing_agreements_serialize(
+ customer_id=customer_id,
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ feature_code=feature_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBillingAgreementsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_billing_agreements_serialize(
+ self,
+ customer_id,
+ page_size,
+ starting_after,
+ ending_before,
+ feature_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ if customer_id is not None:
+
+ _query_params.append(('customer_id', customer_id))
+
+ if feature_code is not None:
+
+ _query_params.append(('feature_code', feature_code))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/billing/agreements',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/billing_api.py b/kinde_sdk/api/billing_api.py
new file mode 100644
index 00000000..b92c28f1
--- /dev/null
+++ b/kinde_sdk/api/billing_api.py
@@ -0,0 +1,326 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.get_entitlements_response import GetEntitlementsResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class BillingApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_entitlements(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the entitlement to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEntitlementsResponse:
+ """Get entitlements
+
+ Returns all the entitlements a the user currently has access to
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the entitlement to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_entitlements_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEntitlementsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_entitlements_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the entitlement to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEntitlementsResponse]:
+ """Get entitlements
+
+ Returns all the entitlements a the user currently has access to
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the entitlement to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_entitlements_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEntitlementsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_entitlements_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the entitlement to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get entitlements
+
+ Returns all the entitlements a the user currently has access to
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the entitlement to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_entitlements_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEntitlementsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_entitlements_serialize(
+ self,
+ page_size,
+ starting_after,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/account_api/v1/entitlements',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/billing_entitlements_api.py b/kinde_sdk/api/billing_entitlements_api.py
new file mode 100644
index 00000000..d8a0b804
--- /dev/null
+++ b/kinde_sdk/api/billing_entitlements_api.py
@@ -0,0 +1,398 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.get_billing_entitlements_response import GetBillingEntitlementsResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class BillingEntitlementsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_billing_entitlements(
+ self,
+ customer_id: Annotated[StrictStr, Field(description="The ID of the billing customer to retrieve entitlements for")],
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the billing entitlement to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the billing entitlement to end before.")] = None,
+ max_value: Annotated[Optional[StrictStr], Field(description="When the maximum limit of an entitlement is null, this value is returned as the maximum limit")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional plan data to retrieve. Use \"plans\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetBillingEntitlementsResponse:
+ """Get billing entitlements
+
+ Returns all the entitlements a billing customer currently has access to read:billing_entitlements
+
+ :param customer_id: The ID of the billing customer to retrieve entitlements for (required)
+ :type customer_id: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the billing entitlement to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the billing entitlement to end before.
+ :type ending_before: str
+ :param max_value: When the maximum limit of an entitlement is null, this value is returned as the maximum limit
+ :type max_value: str
+ :param expand: Specify additional plan data to retrieve. Use \"plans\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_billing_entitlements_serialize(
+ customer_id=customer_id,
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ max_value=max_value,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBillingEntitlementsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_billing_entitlements_with_http_info(
+ self,
+ customer_id: Annotated[StrictStr, Field(description="The ID of the billing customer to retrieve entitlements for")],
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the billing entitlement to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the billing entitlement to end before.")] = None,
+ max_value: Annotated[Optional[StrictStr], Field(description="When the maximum limit of an entitlement is null, this value is returned as the maximum limit")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional plan data to retrieve. Use \"plans\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetBillingEntitlementsResponse]:
+ """Get billing entitlements
+
+ Returns all the entitlements a billing customer currently has access to read:billing_entitlements
+
+ :param customer_id: The ID of the billing customer to retrieve entitlements for (required)
+ :type customer_id: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the billing entitlement to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the billing entitlement to end before.
+ :type ending_before: str
+ :param max_value: When the maximum limit of an entitlement is null, this value is returned as the maximum limit
+ :type max_value: str
+ :param expand: Specify additional plan data to retrieve. Use \"plans\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_billing_entitlements_serialize(
+ customer_id=customer_id,
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ max_value=max_value,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBillingEntitlementsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_billing_entitlements_without_preload_content(
+ self,
+ customer_id: Annotated[StrictStr, Field(description="The ID of the billing customer to retrieve entitlements for")],
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the billing entitlement to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the billing entitlement to end before.")] = None,
+ max_value: Annotated[Optional[StrictStr], Field(description="When the maximum limit of an entitlement is null, this value is returned as the maximum limit")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional plan data to retrieve. Use \"plans\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get billing entitlements
+
+ Returns all the entitlements a billing customer currently has access to read:billing_entitlements
+
+ :param customer_id: The ID of the billing customer to retrieve entitlements for (required)
+ :type customer_id: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the billing entitlement to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the billing entitlement to end before.
+ :type ending_before: str
+ :param max_value: When the maximum limit of an entitlement is null, this value is returned as the maximum limit
+ :type max_value: str
+ :param expand: Specify additional plan data to retrieve. Use \"plans\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_billing_entitlements_serialize(
+ customer_id=customer_id,
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ max_value=max_value,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBillingEntitlementsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_billing_entitlements_serialize(
+ self,
+ customer_id,
+ page_size,
+ starting_after,
+ ending_before,
+ max_value,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ if customer_id is not None:
+
+ _query_params.append(('customer_id', customer_id))
+
+ if max_value is not None:
+
+ _query_params.append(('max_value', max_value))
+
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/billing/entitlements',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/billing_meter_usage_api.py b/kinde_sdk/api/billing_meter_usage_api.py
new file mode 100644
index 00000000..2207e283
--- /dev/null
+++ b/kinde_sdk/api/billing_meter_usage_api.py
@@ -0,0 +1,323 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field
+from typing_extensions import Annotated
+from kinde_sdk.models.create_meter_usage_record_request import CreateMeterUsageRecordRequest
+from kinde_sdk.models.create_meter_usage_record_response import CreateMeterUsageRecordResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class BillingMeterUsageApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_meter_usage_record(
+ self,
+ create_meter_usage_record_request: Annotated[CreateMeterUsageRecordRequest, Field(description="Meter usage record")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateMeterUsageRecordResponse:
+ """Create meter usage record
+
+ Create a new meter usage record create:meter_usage
+
+ :param create_meter_usage_record_request: Meter usage record (required)
+ :type create_meter_usage_record_request: CreateMeterUsageRecordRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_meter_usage_record_serialize(
+ create_meter_usage_record_request=create_meter_usage_record_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateMeterUsageRecordResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_meter_usage_record_with_http_info(
+ self,
+ create_meter_usage_record_request: Annotated[CreateMeterUsageRecordRequest, Field(description="Meter usage record")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateMeterUsageRecordResponse]:
+ """Create meter usage record
+
+ Create a new meter usage record create:meter_usage
+
+ :param create_meter_usage_record_request: Meter usage record (required)
+ :type create_meter_usage_record_request: CreateMeterUsageRecordRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_meter_usage_record_serialize(
+ create_meter_usage_record_request=create_meter_usage_record_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateMeterUsageRecordResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_meter_usage_record_without_preload_content(
+ self,
+ create_meter_usage_record_request: Annotated[CreateMeterUsageRecordRequest, Field(description="Meter usage record")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create meter usage record
+
+ Create a new meter usage record create:meter_usage
+
+ :param create_meter_usage_record_request: Meter usage record (required)
+ :type create_meter_usage_record_request: CreateMeterUsageRecordRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_meter_usage_record_serialize(
+ create_meter_usage_record_request=create_meter_usage_record_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateMeterUsageRecordResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_meter_usage_record_serialize(
+ self,
+ create_meter_usage_record_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_meter_usage_record_request is not None:
+ _body_params = create_meter_usage_record_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/billing/meter_usage',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/business_api.py b/kinde_sdk/api/business_api.py
new file mode 100644
index 00000000..102f8c1d
--- /dev/null
+++ b/kinde_sdk/api/business_api.py
@@ -0,0 +1,579 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field
+from typing_extensions import Annotated
+from kinde_sdk.models.get_business_response import GetBusinessResponse
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_business_request import UpdateBusinessRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class BusinessApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_business(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetBusinessResponse:
+ """Get business
+
+ Get your business details. read:businesses
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_business_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBusinessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_business_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetBusinessResponse]:
+ """Get business
+
+ Get your business details. read:businesses
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_business_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBusinessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_business_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get business
+
+ Get your business details. read:businesses
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_business_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetBusinessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_business_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/business',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_business(
+ self,
+ update_business_request: Annotated[UpdateBusinessRequest, Field(description="The business details to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update business
+
+ Update your business details. update:businesses
+
+ :param update_business_request: The business details to update. (required)
+ :type update_business_request: UpdateBusinessRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_business_serialize(
+ update_business_request=update_business_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_business_with_http_info(
+ self,
+ update_business_request: Annotated[UpdateBusinessRequest, Field(description="The business details to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update business
+
+ Update your business details. update:businesses
+
+ :param update_business_request: The business details to update. (required)
+ :type update_business_request: UpdateBusinessRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_business_serialize(
+ update_business_request=update_business_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_business_without_preload_content(
+ self,
+ update_business_request: Annotated[UpdateBusinessRequest, Field(description="The business details to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update business
+
+ Update your business details. update:businesses
+
+ :param update_business_request: The business details to update. (required)
+ :type update_business_request: UpdateBusinessRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_business_serialize(
+ update_business_request=update_business_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_business_serialize(
+ self,
+ update_business_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_business_request is not None:
+ _body_params = update_business_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/business',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/callbacks_api.py b/kinde_sdk/api/callbacks_api.py
new file mode 100644
index 00000000..e12830fc
--- /dev/null
+++ b/kinde_sdk/api/callbacks_api.py
@@ -0,0 +1,2351 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing_extensions import Annotated
+from kinde_sdk.models.logout_redirect_urls import LogoutRedirectUrls
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+from kinde_sdk.models.success_response import SuccessResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class CallbacksApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def add_logout_redirect_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_logout_redirect_urls_request: Annotated[ReplaceLogoutRedirectURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Add logout redirect URLs
+
+ Add additional logout redirect URLs. create:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_logout_redirect_urls_request: Callback details. (required)
+ :type replace_logout_redirect_urls_request: ReplaceLogoutRedirectURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_logout_redirect_urls_serialize(
+ app_id=app_id,
+ replace_logout_redirect_urls_request=replace_logout_redirect_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_logout_redirect_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_logout_redirect_urls_request: Annotated[ReplaceLogoutRedirectURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Add logout redirect URLs
+
+ Add additional logout redirect URLs. create:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_logout_redirect_urls_request: Callback details. (required)
+ :type replace_logout_redirect_urls_request: ReplaceLogoutRedirectURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_logout_redirect_urls_serialize(
+ app_id=app_id,
+ replace_logout_redirect_urls_request=replace_logout_redirect_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_logout_redirect_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_logout_redirect_urls_request: Annotated[ReplaceLogoutRedirectURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add logout redirect URLs
+
+ Add additional logout redirect URLs. create:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_logout_redirect_urls_request: Callback details. (required)
+ :type replace_logout_redirect_urls_request: ReplaceLogoutRedirectURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_logout_redirect_urls_serialize(
+ app_id=app_id,
+ replace_logout_redirect_urls_request=replace_logout_redirect_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_logout_redirect_urls_serialize(
+ self,
+ app_id,
+ replace_logout_redirect_urls_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_logout_redirect_urls_request is not None:
+ _body_params = replace_logout_redirect_urls_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/applications/{app_id}/auth_logout_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def add_redirect_callback_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_redirect_callback_urls_request: Annotated[ReplaceRedirectCallbackURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Add Redirect Callback URLs
+
+ Add additional redirect callback URLs. create:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_redirect_callback_urls_request: Callback details. (required)
+ :type replace_redirect_callback_urls_request: ReplaceRedirectCallbackURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_redirect_callback_urls_serialize(
+ app_id=app_id,
+ replace_redirect_callback_urls_request=replace_redirect_callback_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_redirect_callback_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_redirect_callback_urls_request: Annotated[ReplaceRedirectCallbackURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Add Redirect Callback URLs
+
+ Add additional redirect callback URLs. create:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_redirect_callback_urls_request: Callback details. (required)
+ :type replace_redirect_callback_urls_request: ReplaceRedirectCallbackURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_redirect_callback_urls_serialize(
+ app_id=app_id,
+ replace_redirect_callback_urls_request=replace_redirect_callback_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_redirect_callback_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_redirect_callback_urls_request: Annotated[ReplaceRedirectCallbackURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add Redirect Callback URLs
+
+ Add additional redirect callback URLs. create:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_redirect_callback_urls_request: Callback details. (required)
+ :type replace_redirect_callback_urls_request: ReplaceRedirectCallbackURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_redirect_callback_urls_serialize(
+ app_id=app_id,
+ replace_redirect_callback_urls_request=replace_redirect_callback_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_redirect_callback_urls_serialize(
+ self,
+ app_id,
+ replace_redirect_callback_urls_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_redirect_callback_urls_request is not None:
+ _body_params = replace_redirect_callback_urls_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/applications/{app_id}/auth_redirect_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_callback_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ urls: Annotated[StrictStr, Field(description="Urls to delete, comma separated and url encoded.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Callback URLs
+
+ Delete callback URLs. delete:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param urls: Urls to delete, comma separated and url encoded. (required)
+ :type urls: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_callback_urls_serialize(
+ app_id=app_id,
+ urls=urls,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_callback_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ urls: Annotated[StrictStr, Field(description="Urls to delete, comma separated and url encoded.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Callback URLs
+
+ Delete callback URLs. delete:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param urls: Urls to delete, comma separated and url encoded. (required)
+ :type urls: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_callback_urls_serialize(
+ app_id=app_id,
+ urls=urls,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_callback_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ urls: Annotated[StrictStr, Field(description="Urls to delete, comma separated and url encoded.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Callback URLs
+
+ Delete callback URLs. delete:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param urls: Urls to delete, comma separated and url encoded. (required)
+ :type urls: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_callback_urls_serialize(
+ app_id=app_id,
+ urls=urls,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_callback_urls_serialize(
+ self,
+ app_id,
+ urls,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ if urls is not None:
+
+ _query_params.append(('urls', urls))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/applications/{app_id}/auth_redirect_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_logout_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ urls: Annotated[StrictStr, Field(description="Urls to delete, comma separated and url encoded.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Logout URLs
+
+ Delete logout URLs. delete:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param urls: Urls to delete, comma separated and url encoded. (required)
+ :type urls: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_logout_urls_serialize(
+ app_id=app_id,
+ urls=urls,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_logout_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ urls: Annotated[StrictStr, Field(description="Urls to delete, comma separated and url encoded.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Logout URLs
+
+ Delete logout URLs. delete:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param urls: Urls to delete, comma separated and url encoded. (required)
+ :type urls: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_logout_urls_serialize(
+ app_id=app_id,
+ urls=urls,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_logout_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ urls: Annotated[StrictStr, Field(description="Urls to delete, comma separated and url encoded.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Logout URLs
+
+ Delete logout URLs. delete:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param urls: Urls to delete, comma separated and url encoded. (required)
+ :type urls: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_logout_urls_serialize(
+ app_id=app_id,
+ urls=urls,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_logout_urls_serialize(
+ self,
+ app_id,
+ urls,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ if urls is not None:
+
+ _query_params.append(('urls', urls))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/applications/{app_id}/auth_logout_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_callback_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RedirectCallbackUrls:
+ """List Callback URLs
+
+ Returns an application's redirect callback URLs. read:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_callback_urls_serialize(
+ app_id=app_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RedirectCallbackUrls",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_callback_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[RedirectCallbackUrls]:
+ """List Callback URLs
+
+ Returns an application's redirect callback URLs. read:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_callback_urls_serialize(
+ app_id=app_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RedirectCallbackUrls",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_callback_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Callback URLs
+
+ Returns an application's redirect callback URLs. read:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_callback_urls_serialize(
+ app_id=app_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RedirectCallbackUrls",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_callback_urls_serialize(
+ self,
+ app_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/applications/{app_id}/auth_redirect_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_logout_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> LogoutRedirectUrls:
+ """List logout URLs
+
+ Returns an application's logout redirect URLs. read:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_logout_urls_serialize(
+ app_id=app_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "LogoutRedirectUrls",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_logout_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[LogoutRedirectUrls]:
+ """List logout URLs
+
+ Returns an application's logout redirect URLs. read:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_logout_urls_serialize(
+ app_id=app_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "LogoutRedirectUrls",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_logout_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List logout URLs
+
+ Returns an application's logout redirect URLs. read:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_logout_urls_serialize(
+ app_id=app_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "LogoutRedirectUrls",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_logout_urls_serialize(
+ self,
+ app_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/applications/{app_id}/auth_logout_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def replace_logout_redirect_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_logout_redirect_urls_request: Annotated[ReplaceLogoutRedirectURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Replace logout redirect URls
+
+ Replace all logout redirect URLs. update:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_logout_redirect_urls_request: Callback details. (required)
+ :type replace_logout_redirect_urls_request: ReplaceLogoutRedirectURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_logout_redirect_urls_serialize(
+ app_id=app_id,
+ replace_logout_redirect_urls_request=replace_logout_redirect_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def replace_logout_redirect_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_logout_redirect_urls_request: Annotated[ReplaceLogoutRedirectURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Replace logout redirect URls
+
+ Replace all logout redirect URLs. update:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_logout_redirect_urls_request: Callback details. (required)
+ :type replace_logout_redirect_urls_request: ReplaceLogoutRedirectURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_logout_redirect_urls_serialize(
+ app_id=app_id,
+ replace_logout_redirect_urls_request=replace_logout_redirect_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def replace_logout_redirect_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_logout_redirect_urls_request: Annotated[ReplaceLogoutRedirectURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Replace logout redirect URls
+
+ Replace all logout redirect URLs. update:application_logout_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_logout_redirect_urls_request: Callback details. (required)
+ :type replace_logout_redirect_urls_request: ReplaceLogoutRedirectURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_logout_redirect_urls_serialize(
+ app_id=app_id,
+ replace_logout_redirect_urls_request=replace_logout_redirect_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _replace_logout_redirect_urls_serialize(
+ self,
+ app_id,
+ replace_logout_redirect_urls_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_logout_redirect_urls_request is not None:
+ _body_params = replace_logout_redirect_urls_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/applications/{app_id}/auth_logout_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def replace_redirect_callback_urls(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_redirect_callback_urls_request: Annotated[ReplaceRedirectCallbackURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Replace Redirect Callback URLs
+
+ Replace all redirect callback URLs. update:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_redirect_callback_urls_request: Callback details. (required)
+ :type replace_redirect_callback_urls_request: ReplaceRedirectCallbackURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_redirect_callback_urls_serialize(
+ app_id=app_id,
+ replace_redirect_callback_urls_request=replace_redirect_callback_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def replace_redirect_callback_urls_with_http_info(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_redirect_callback_urls_request: Annotated[ReplaceRedirectCallbackURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Replace Redirect Callback URLs
+
+ Replace all redirect callback URLs. update:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_redirect_callback_urls_request: Callback details. (required)
+ :type replace_redirect_callback_urls_request: ReplaceRedirectCallbackURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_redirect_callback_urls_serialize(
+ app_id=app_id,
+ replace_redirect_callback_urls_request=replace_redirect_callback_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def replace_redirect_callback_urls_without_preload_content(
+ self,
+ app_id: Annotated[StrictStr, Field(description="The identifier for the application.")],
+ replace_redirect_callback_urls_request: Annotated[ReplaceRedirectCallbackURLsRequest, Field(description="Callback details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Replace Redirect Callback URLs
+
+ Replace all redirect callback URLs. update:applications_redirect_uris
+
+ :param app_id: The identifier for the application. (required)
+ :type app_id: str
+ :param replace_redirect_callback_urls_request: Callback details. (required)
+ :type replace_redirect_callback_urls_request: ReplaceRedirectCallbackURLsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_redirect_callback_urls_serialize(
+ app_id=app_id,
+ replace_redirect_callback_urls_request=replace_redirect_callback_urls_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _replace_redirect_callback_urls_serialize(
+ self,
+ app_id,
+ replace_redirect_callback_urls_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if app_id is not None:
+ _path_params['app_id'] = app_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_redirect_callback_urls_request is not None:
+ _body_params = replace_redirect_callback_urls_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/applications/{app_id}/auth_redirect_urls',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/connected_apps_api.py b/kinde_sdk/api/connected_apps_api.py
new file mode 100644
index 00000000..992870fa
--- /dev/null
+++ b/kinde_sdk/api/connected_apps_api.py
@@ -0,0 +1,918 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.connected_apps_access_token import ConnectedAppsAccessToken
+from kinde_sdk.models.connected_apps_auth_url import ConnectedAppsAuthUrl
+from kinde_sdk.models.success_response import SuccessResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class ConnectedAppsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_connected_app_auth_url(
+ self,
+ key_code_ref: Annotated[StrictStr, Field(description="The unique key code reference of the connected app to authenticate against.")],
+ user_id: Annotated[Optional[StrictStr], Field(description="The id of the user that needs to authenticate to the third-party connected app.")] = None,
+ org_code: Annotated[Optional[StrictStr], Field(description="The code of the Kinde organization that needs to authenticate to the third-party connected app.")] = None,
+ override_callback_url: Annotated[Optional[StrictStr], Field(description="A URL that overrides the default callback URL setup in your connected app configuration")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ConnectedAppsAuthUrl:
+ """Get Connected App URL
+
+ Get a URL that authenticates and authorizes a user to a third-party connected app. read:connected_apps
+
+ :param key_code_ref: The unique key code reference of the connected app to authenticate against. (required)
+ :type key_code_ref: str
+ :param user_id: The id of the user that needs to authenticate to the third-party connected app.
+ :type user_id: str
+ :param org_code: The code of the Kinde organization that needs to authenticate to the third-party connected app.
+ :type org_code: str
+ :param override_callback_url: A URL that overrides the default callback URL setup in your connected app configuration
+ :type override_callback_url: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connected_app_auth_url_serialize(
+ key_code_ref=key_code_ref,
+ user_id=user_id,
+ org_code=org_code,
+ override_callback_url=override_callback_url,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ConnectedAppsAuthUrl",
+ '400': "ErrorResponse",
+ '403': None,
+ '404': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_connected_app_auth_url_with_http_info(
+ self,
+ key_code_ref: Annotated[StrictStr, Field(description="The unique key code reference of the connected app to authenticate against.")],
+ user_id: Annotated[Optional[StrictStr], Field(description="The id of the user that needs to authenticate to the third-party connected app.")] = None,
+ org_code: Annotated[Optional[StrictStr], Field(description="The code of the Kinde organization that needs to authenticate to the third-party connected app.")] = None,
+ override_callback_url: Annotated[Optional[StrictStr], Field(description="A URL that overrides the default callback URL setup in your connected app configuration")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ConnectedAppsAuthUrl]:
+ """Get Connected App URL
+
+ Get a URL that authenticates and authorizes a user to a third-party connected app. read:connected_apps
+
+ :param key_code_ref: The unique key code reference of the connected app to authenticate against. (required)
+ :type key_code_ref: str
+ :param user_id: The id of the user that needs to authenticate to the third-party connected app.
+ :type user_id: str
+ :param org_code: The code of the Kinde organization that needs to authenticate to the third-party connected app.
+ :type org_code: str
+ :param override_callback_url: A URL that overrides the default callback URL setup in your connected app configuration
+ :type override_callback_url: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connected_app_auth_url_serialize(
+ key_code_ref=key_code_ref,
+ user_id=user_id,
+ org_code=org_code,
+ override_callback_url=override_callback_url,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ConnectedAppsAuthUrl",
+ '400': "ErrorResponse",
+ '403': None,
+ '404': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_connected_app_auth_url_without_preload_content(
+ self,
+ key_code_ref: Annotated[StrictStr, Field(description="The unique key code reference of the connected app to authenticate against.")],
+ user_id: Annotated[Optional[StrictStr], Field(description="The id of the user that needs to authenticate to the third-party connected app.")] = None,
+ org_code: Annotated[Optional[StrictStr], Field(description="The code of the Kinde organization that needs to authenticate to the third-party connected app.")] = None,
+ override_callback_url: Annotated[Optional[StrictStr], Field(description="A URL that overrides the default callback URL setup in your connected app configuration")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Connected App URL
+
+ Get a URL that authenticates and authorizes a user to a third-party connected app. read:connected_apps
+
+ :param key_code_ref: The unique key code reference of the connected app to authenticate against. (required)
+ :type key_code_ref: str
+ :param user_id: The id of the user that needs to authenticate to the third-party connected app.
+ :type user_id: str
+ :param org_code: The code of the Kinde organization that needs to authenticate to the third-party connected app.
+ :type org_code: str
+ :param override_callback_url: A URL that overrides the default callback URL setup in your connected app configuration
+ :type override_callback_url: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connected_app_auth_url_serialize(
+ key_code_ref=key_code_ref,
+ user_id=user_id,
+ org_code=org_code,
+ override_callback_url=override_callback_url,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ConnectedAppsAuthUrl",
+ '400': "ErrorResponse",
+ '403': None,
+ '404': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_connected_app_auth_url_serialize(
+ self,
+ key_code_ref,
+ user_id,
+ org_code,
+ override_callback_url,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if key_code_ref is not None:
+
+ _query_params.append(('key_code_ref', key_code_ref))
+
+ if user_id is not None:
+
+ _query_params.append(('user_id', user_id))
+
+ if org_code is not None:
+
+ _query_params.append(('org_code', org_code))
+
+ if override_callback_url is not None:
+
+ _query_params.append(('override_callback_url', override_callback_url))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/connected_apps/auth_url',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_connected_app_token(
+ self,
+ session_id: Annotated[StrictStr, Field(description="The unique sesssion id representing the login session of a user.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ConnectedAppsAccessToken:
+ """Get Connected App Token
+
+ Get an access token that can be used to call the third-party provider linked to the connected app. read:connected_apps
+
+ :param session_id: The unique sesssion id representing the login session of a user. (required)
+ :type session_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connected_app_token_serialize(
+ session_id=session_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ConnectedAppsAccessToken",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_connected_app_token_with_http_info(
+ self,
+ session_id: Annotated[StrictStr, Field(description="The unique sesssion id representing the login session of a user.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ConnectedAppsAccessToken]:
+ """Get Connected App Token
+
+ Get an access token that can be used to call the third-party provider linked to the connected app. read:connected_apps
+
+ :param session_id: The unique sesssion id representing the login session of a user. (required)
+ :type session_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connected_app_token_serialize(
+ session_id=session_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ConnectedAppsAccessToken",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_connected_app_token_without_preload_content(
+ self,
+ session_id: Annotated[StrictStr, Field(description="The unique sesssion id representing the login session of a user.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Connected App Token
+
+ Get an access token that can be used to call the third-party provider linked to the connected app. read:connected_apps
+
+ :param session_id: The unique sesssion id representing the login session of a user. (required)
+ :type session_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connected_app_token_serialize(
+ session_id=session_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ConnectedAppsAccessToken",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_connected_app_token_serialize(
+ self,
+ session_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if session_id is not None:
+
+ _query_params.append(('session_id', session_id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/connected_apps/token',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def revoke_connected_app_token(
+ self,
+ session_id: Annotated[StrictStr, Field(description="The unique sesssion id representing the login session of a user.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Revoke Connected App Token
+
+ Revoke the tokens linked to the connected app session. create:connected_apps
+
+ :param session_id: The unique sesssion id representing the login session of a user. (required)
+ :type session_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._revoke_connected_app_token_serialize(
+ session_id=session_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '405': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def revoke_connected_app_token_with_http_info(
+ self,
+ session_id: Annotated[StrictStr, Field(description="The unique sesssion id representing the login session of a user.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Revoke Connected App Token
+
+ Revoke the tokens linked to the connected app session. create:connected_apps
+
+ :param session_id: The unique sesssion id representing the login session of a user. (required)
+ :type session_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._revoke_connected_app_token_serialize(
+ session_id=session_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '405': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def revoke_connected_app_token_without_preload_content(
+ self,
+ session_id: Annotated[StrictStr, Field(description="The unique sesssion id representing the login session of a user.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Revoke Connected App Token
+
+ Revoke the tokens linked to the connected app session. create:connected_apps
+
+ :param session_id: The unique sesssion id representing the login session of a user. (required)
+ :type session_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._revoke_connected_app_token_serialize(
+ session_id=session_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '405': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _revoke_connected_app_token_serialize(
+ self,
+ session_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if session_id is not None:
+
+ _query_params.append(('session_id', session_id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/connected_apps/revoke',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/connections_api.py b/kinde_sdk/api/connections_api.py
new file mode 100644
index 00000000..acc92918
--- /dev/null
+++ b/kinde_sdk/api/connections_api.py
@@ -0,0 +1,1798 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.connection import Connection
+from kinde_sdk.models.create_connection_request import CreateConnectionRequest
+from kinde_sdk.models.create_connection_response import CreateConnectionResponse
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.models.replace_connection_request import ReplaceConnectionRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_connection_request import UpdateConnectionRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class ConnectionsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_connection(
+ self,
+ create_connection_request: Annotated[CreateConnectionRequest, Field(description="Connection details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateConnectionResponse:
+ """Create Connection
+
+ Create Connection. create:connections
+
+ :param create_connection_request: Connection details. (required)
+ :type create_connection_request: CreateConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_connection_serialize(
+ create_connection_request=create_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateConnectionResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_connection_with_http_info(
+ self,
+ create_connection_request: Annotated[CreateConnectionRequest, Field(description="Connection details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateConnectionResponse]:
+ """Create Connection
+
+ Create Connection. create:connections
+
+ :param create_connection_request: Connection details. (required)
+ :type create_connection_request: CreateConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_connection_serialize(
+ create_connection_request=create_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateConnectionResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_connection_without_preload_content(
+ self,
+ create_connection_request: Annotated[CreateConnectionRequest, Field(description="Connection details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create Connection
+
+ Create Connection. create:connections
+
+ :param create_connection_request: Connection details. (required)
+ :type create_connection_request: CreateConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_connection_serialize(
+ create_connection_request=create_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateConnectionResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_connection_serialize(
+ self,
+ create_connection_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_connection_request is not None:
+ _body_params = create_connection_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/connections',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_connection(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Connection
+
+ Delete connection. delete:connections
+
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_connection_serialize(
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_connection_with_http_info(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Connection
+
+ Delete connection. delete:connections
+
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_connection_serialize(
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_connection_without_preload_content(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Connection
+
+ Delete connection. delete:connections
+
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_connection_serialize(
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_connection_serialize(
+ self,
+ connection_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_connection(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Connection:
+ """Get Connection
+
+ Get Connection. read:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connection_serialize(
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Connection",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_connection_with_http_info(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Connection]:
+ """Get Connection
+
+ Get Connection. read:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connection_serialize(
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Connection",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_connection_without_preload_content(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Connection
+
+ Get Connection. read:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connection_serialize(
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Connection",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_connection_serialize(
+ self,
+ connection_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_connections(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ home_realm_domain: Annotated[Optional[StrictStr], Field(description="Filter the results by the home realm domain.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the connection to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the connection to end before.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetConnectionsResponse:
+ """Get connections
+
+ Returns a list of authentication connections. Optionally you can filter this by a home realm domain. read:connections
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param home_realm_domain: Filter the results by the home realm domain.
+ :type home_realm_domain: str
+ :param starting_after: The ID of the connection to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the connection to end before.
+ :type ending_before: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connections_serialize(
+ page_size=page_size,
+ home_realm_domain=home_realm_domain,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_connections_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ home_realm_domain: Annotated[Optional[StrictStr], Field(description="Filter the results by the home realm domain.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the connection to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the connection to end before.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetConnectionsResponse]:
+ """Get connections
+
+ Returns a list of authentication connections. Optionally you can filter this by a home realm domain. read:connections
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param home_realm_domain: Filter the results by the home realm domain.
+ :type home_realm_domain: str
+ :param starting_after: The ID of the connection to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the connection to end before.
+ :type ending_before: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connections_serialize(
+ page_size=page_size,
+ home_realm_domain=home_realm_domain,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_connections_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ home_realm_domain: Annotated[Optional[StrictStr], Field(description="Filter the results by the home realm domain.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the connection to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the connection to end before.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get connections
+
+ Returns a list of authentication connections. Optionally you can filter this by a home realm domain. read:connections
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param home_realm_domain: Filter the results by the home realm domain.
+ :type home_realm_domain: str
+ :param starting_after: The ID of the connection to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the connection to end before.
+ :type ending_before: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_connections_serialize(
+ page_size=page_size,
+ home_realm_domain=home_realm_domain,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_connections_serialize(
+ self,
+ page_size,
+ home_realm_domain,
+ starting_after,
+ ending_before,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if home_realm_domain is not None:
+
+ _query_params.append(('home_realm_domain', home_realm_domain))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/connections',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def replace_connection(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ replace_connection_request: Annotated[ReplaceConnectionRequest, Field(description="The complete connection configuration to replace the existing one.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Replace Connection
+
+ Replace Connection Config. update:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param replace_connection_request: The complete connection configuration to replace the existing one. (required)
+ :type replace_connection_request: ReplaceConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_connection_serialize(
+ connection_id=connection_id,
+ replace_connection_request=replace_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def replace_connection_with_http_info(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ replace_connection_request: Annotated[ReplaceConnectionRequest, Field(description="The complete connection configuration to replace the existing one.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Replace Connection
+
+ Replace Connection Config. update:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param replace_connection_request: The complete connection configuration to replace the existing one. (required)
+ :type replace_connection_request: ReplaceConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_connection_serialize(
+ connection_id=connection_id,
+ replace_connection_request=replace_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def replace_connection_without_preload_content(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ replace_connection_request: Annotated[ReplaceConnectionRequest, Field(description="The complete connection configuration to replace the existing one.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Replace Connection
+
+ Replace Connection Config. update:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param replace_connection_request: The complete connection configuration to replace the existing one. (required)
+ :type replace_connection_request: ReplaceConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_connection_serialize(
+ connection_id=connection_id,
+ replace_connection_request=replace_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _replace_connection_serialize(
+ self,
+ connection_id,
+ replace_connection_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_connection_request is not None:
+ _body_params = replace_connection_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_connection(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ update_connection_request: Annotated[UpdateConnectionRequest, Field(description="The fields of the connection to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Connection
+
+ Update Connection. update:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param update_connection_request: The fields of the connection to update. (required)
+ :type update_connection_request: UpdateConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_connection_serialize(
+ connection_id=connection_id,
+ update_connection_request=update_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_connection_with_http_info(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ update_connection_request: Annotated[UpdateConnectionRequest, Field(description="The fields of the connection to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Connection
+
+ Update Connection. update:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param update_connection_request: The fields of the connection to update. (required)
+ :type update_connection_request: UpdateConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_connection_serialize(
+ connection_id=connection_id,
+ update_connection_request=update_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_connection_without_preload_content(
+ self,
+ connection_id: Annotated[StrictStr, Field(description="The unique identifier for the connection.")],
+ update_connection_request: Annotated[UpdateConnectionRequest, Field(description="The fields of the connection to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Connection
+
+ Update Connection. update:connections
+
+ :param connection_id: The unique identifier for the connection. (required)
+ :type connection_id: str
+ :param update_connection_request: The fields of the connection to update. (required)
+ :type update_connection_request: UpdateConnectionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_connection_serialize(
+ connection_id=connection_id,
+ update_connection_request=update_connection_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_connection_serialize(
+ self,
+ connection_id,
+ update_connection_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_connection_request is not None:
+ _body_params = update_connection_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/environment_variables_api.py b/kinde_sdk/api/environment_variables_api.py
new file mode 100644
index 00000000..c4dea988
--- /dev/null
+++ b/kinde_sdk/api/environment_variables_api.py
@@ -0,0 +1,1421 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing_extensions import Annotated
+from kinde_sdk.models.create_environment_variable_request import CreateEnvironmentVariableRequest
+from kinde_sdk.models.create_environment_variable_response import CreateEnvironmentVariableResponse
+from kinde_sdk.models.delete_environment_variable_response import DeleteEnvironmentVariableResponse
+from kinde_sdk.models.get_environment_variable_response import GetEnvironmentVariableResponse
+from kinde_sdk.models.get_environment_variables_response import GetEnvironmentVariablesResponse
+from kinde_sdk.models.update_environment_variable_request import UpdateEnvironmentVariableRequest
+from kinde_sdk.models.update_environment_variable_response import UpdateEnvironmentVariableResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class EnvironmentVariablesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_environment_variable(
+ self,
+ create_environment_variable_request: Annotated[CreateEnvironmentVariableRequest, Field(description="The environment variable details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateEnvironmentVariableResponse:
+ """Create environment variable
+
+ Create a new environment variable. This feature is in beta and admin UI is not yet available. create:environment_variables
+
+ :param create_environment_variable_request: The environment variable details. (required)
+ :type create_environment_variable_request: CreateEnvironmentVariableRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_environment_variable_serialize(
+ create_environment_variable_request=create_environment_variable_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_environment_variable_with_http_info(
+ self,
+ create_environment_variable_request: Annotated[CreateEnvironmentVariableRequest, Field(description="The environment variable details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateEnvironmentVariableResponse]:
+ """Create environment variable
+
+ Create a new environment variable. This feature is in beta and admin UI is not yet available. create:environment_variables
+
+ :param create_environment_variable_request: The environment variable details. (required)
+ :type create_environment_variable_request: CreateEnvironmentVariableRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_environment_variable_serialize(
+ create_environment_variable_request=create_environment_variable_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_environment_variable_without_preload_content(
+ self,
+ create_environment_variable_request: Annotated[CreateEnvironmentVariableRequest, Field(description="The environment variable details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create environment variable
+
+ Create a new environment variable. This feature is in beta and admin UI is not yet available. create:environment_variables
+
+ :param create_environment_variable_request: The environment variable details. (required)
+ :type create_environment_variable_request: CreateEnvironmentVariableRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_environment_variable_serialize(
+ create_environment_variable_request=create_environment_variable_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_environment_variable_serialize(
+ self,
+ create_environment_variable_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_environment_variable_request is not None:
+ _body_params = create_environment_variable_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/environment_variables',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_environment_variable(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DeleteEnvironmentVariableResponse:
+ """Delete environment variable
+
+ Delete an environment variable you previously created. This feature is in beta and admin UI is not yet available. delete:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environment_variable_serialize(
+ variable_id=variable_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_environment_variable_with_http_info(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DeleteEnvironmentVariableResponse]:
+ """Delete environment variable
+
+ Delete an environment variable you previously created. This feature is in beta and admin UI is not yet available. delete:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environment_variable_serialize(
+ variable_id=variable_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_environment_variable_without_preload_content(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete environment variable
+
+ Delete an environment variable you previously created. This feature is in beta and admin UI is not yet available. delete:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environment_variable_serialize(
+ variable_id=variable_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_environment_variable_serialize(
+ self,
+ variable_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if variable_id is not None:
+ _path_params['variable_id'] = variable_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/environment_variables/{variable_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_environment_variable(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEnvironmentVariableResponse:
+ """Get environment variable
+
+ Retrieve environment variable details by ID. This feature is in beta and admin UI is not yet available. read:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_variable_serialize(
+ variable_id=variable_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_environment_variable_with_http_info(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEnvironmentVariableResponse]:
+ """Get environment variable
+
+ Retrieve environment variable details by ID. This feature is in beta and admin UI is not yet available. read:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_variable_serialize(
+ variable_id=variable_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_environment_variable_without_preload_content(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get environment variable
+
+ Retrieve environment variable details by ID. This feature is in beta and admin UI is not yet available. read:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_variable_serialize(
+ variable_id=variable_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_environment_variable_serialize(
+ self,
+ variable_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if variable_id is not None:
+ _path_params['variable_id'] = variable_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/environment_variables/{variable_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_environment_variables(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEnvironmentVariablesResponse:
+ """Get environment variables
+
+ Get environment variables. This feature is in beta and admin UI is not yet available. read:environment_variables
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_variables_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentVariablesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_environment_variables_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEnvironmentVariablesResponse]:
+ """Get environment variables
+
+ Get environment variables. This feature is in beta and admin UI is not yet available. read:environment_variables
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_variables_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentVariablesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_environment_variables_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get environment variables
+
+ Get environment variables. This feature is in beta and admin UI is not yet available. read:environment_variables
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_variables_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentVariablesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_environment_variables_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/environment_variables',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_environment_variable(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ update_environment_variable_request: Annotated[UpdateEnvironmentVariableRequest, Field(description="The new details for the environment variable")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UpdateEnvironmentVariableResponse:
+ """Update environment variable
+
+ Update an environment variable you previously created. This feature is in beta and admin UI is not yet available. update:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param update_environment_variable_request: The new details for the environment variable (required)
+ :type update_environment_variable_request: UpdateEnvironmentVariableRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_environment_variable_serialize(
+ variable_id=variable_id,
+ update_environment_variable_request=update_environment_variable_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_environment_variable_with_http_info(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ update_environment_variable_request: Annotated[UpdateEnvironmentVariableRequest, Field(description="The new details for the environment variable")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UpdateEnvironmentVariableResponse]:
+ """Update environment variable
+
+ Update an environment variable you previously created. This feature is in beta and admin UI is not yet available. update:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param update_environment_variable_request: The new details for the environment variable (required)
+ :type update_environment_variable_request: UpdateEnvironmentVariableRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_environment_variable_serialize(
+ variable_id=variable_id,
+ update_environment_variable_request=update_environment_variable_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_environment_variable_without_preload_content(
+ self,
+ variable_id: Annotated[StrictStr, Field(description="The environment variable's ID.")],
+ update_environment_variable_request: Annotated[UpdateEnvironmentVariableRequest, Field(description="The new details for the environment variable")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update environment variable
+
+ Update an environment variable you previously created. This feature is in beta and admin UI is not yet available. update:environment_variables
+
+ :param variable_id: The environment variable's ID. (required)
+ :type variable_id: str
+ :param update_environment_variable_request: The new details for the environment variable (required)
+ :type update_environment_variable_request: UpdateEnvironmentVariableRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_environment_variable_serialize(
+ variable_id=variable_id,
+ update_environment_variable_request=update_environment_variable_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateEnvironmentVariableResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_environment_variable_serialize(
+ self,
+ variable_id,
+ update_environment_variable_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if variable_id is not None:
+ _path_params['variable_id'] = variable_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_environment_variable_request is not None:
+ _body_params = update_environment_variable_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/environment_variables/{variable_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/environments_api.py b/kinde_sdk/api/environments_api.py
new file mode 100644
index 00000000..5759ac7b
--- /dev/null
+++ b/kinde_sdk/api/environments_api.py
@@ -0,0 +1,2207 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBytes, StrictStr, field_validator
+from typing import Tuple, Union
+from typing_extensions import Annotated
+from kinde_sdk.models.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
+from kinde_sdk.models.get_environment_response import GetEnvironmentResponse
+from kinde_sdk.models.read_env_logo_response import ReadEnvLogoResponse
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_environement_feature_flag_override_request import UpdateEnvironementFeatureFlagOverrideRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class EnvironmentsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def add_logo(
+ self,
+ type: Annotated[StrictStr, Field(description="The type of logo to add.")],
+ logo: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The logo file to upload.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Add logo
+
+ Add environment logo update:environments
+
+ :param type: The type of logo to add. (required)
+ :type type: str
+ :param logo: The logo file to upload. (required)
+ :type logo: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_logo_serialize(
+ type=type,
+ logo=logo,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_logo_with_http_info(
+ self,
+ type: Annotated[StrictStr, Field(description="The type of logo to add.")],
+ logo: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The logo file to upload.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Add logo
+
+ Add environment logo update:environments
+
+ :param type: The type of logo to add. (required)
+ :type type: str
+ :param logo: The logo file to upload. (required)
+ :type logo: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_logo_serialize(
+ type=type,
+ logo=logo,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_logo_without_preload_content(
+ self,
+ type: Annotated[StrictStr, Field(description="The type of logo to add.")],
+ logo: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The logo file to upload.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add logo
+
+ Add environment logo update:environments
+
+ :param type: The type of logo to add. (required)
+ :type type: str
+ :param logo: The logo file to upload. (required)
+ :type logo: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_logo_serialize(
+ type=type,
+ logo=logo,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_logo_serialize(
+ self,
+ type,
+ logo,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if type is not None:
+ _path_params['type'] = type
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ if logo is not None:
+ _files['logo'] = logo
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'multipart/form-data'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/environment/logos/{type}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_environement_feature_flag_override(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Environment Feature Flag Override
+
+ Delete environment feature flag override. delete:environment_feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environement_feature_flag_override_serialize(
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_environement_feature_flag_override_with_http_info(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Environment Feature Flag Override
+
+ Delete environment feature flag override. delete:environment_feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environement_feature_flag_override_serialize(
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_environement_feature_flag_override_without_preload_content(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Environment Feature Flag Override
+
+ Delete environment feature flag override. delete:environment_feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environement_feature_flag_override_serialize(
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_environement_feature_flag_override_serialize(
+ self,
+ feature_flag_key,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/environment/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_environement_feature_flag_overrides(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Environment Feature Flag Overrides
+
+ Delete all environment feature flag overrides. delete:environment_feature_flags
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environement_feature_flag_overrides_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_environement_feature_flag_overrides_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Environment Feature Flag Overrides
+
+ Delete all environment feature flag overrides. delete:environment_feature_flags
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environement_feature_flag_overrides_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_environement_feature_flag_overrides_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Environment Feature Flag Overrides
+
+ Delete all environment feature flag overrides. delete:environment_feature_flags
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_environement_feature_flag_overrides_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_environement_feature_flag_overrides_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/environment/feature_flags',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_logo(
+ self,
+ type: Annotated[StrictStr, Field(description="The type of logo to delete.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete logo
+
+ Delete environment logo update:environments
+
+ :param type: The type of logo to delete. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_logo_serialize(
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_logo_with_http_info(
+ self,
+ type: Annotated[StrictStr, Field(description="The type of logo to delete.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete logo
+
+ Delete environment logo update:environments
+
+ :param type: The type of logo to delete. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_logo_serialize(
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_logo_without_preload_content(
+ self,
+ type: Annotated[StrictStr, Field(description="The type of logo to delete.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete logo
+
+ Delete environment logo update:environments
+
+ :param type: The type of logo to delete. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_logo_serialize(
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_logo_serialize(
+ self,
+ type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if type is not None:
+ _path_params['type'] = type
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/environment/logos/{type}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_environement_feature_flags(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEnvironmentFeatureFlagsResponse:
+ """List Environment Feature Flags
+
+ Get environment feature flags. read:environment_feature_flags
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environement_feature_flags_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentFeatureFlagsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_environement_feature_flags_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEnvironmentFeatureFlagsResponse]:
+ """List Environment Feature Flags
+
+ Get environment feature flags. read:environment_feature_flags
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environement_feature_flags_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentFeatureFlagsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_environement_feature_flags_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Environment Feature Flags
+
+ Get environment feature flags. read:environment_feature_flags
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environement_feature_flags_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentFeatureFlagsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_environement_feature_flags_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/environment/feature_flags',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_environment(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEnvironmentResponse:
+ """Get environment
+
+ Gets the current environment. read:environments
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_environment_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEnvironmentResponse]:
+ """Get environment
+
+ Gets the current environment. read:environments
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_environment_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get environment
+
+ Gets the current environment. read:environments
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_environment_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEnvironmentResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_environment_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/environment',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def read_logo(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ReadEnvLogoResponse:
+ """Read logo details
+
+ Read environment logo details read:environments
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._read_logo_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ReadEnvLogoResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def read_logo_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ReadEnvLogoResponse]:
+ """Read logo details
+
+ Read environment logo details read:environments
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._read_logo_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ReadEnvLogoResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def read_logo_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Read logo details
+
+ Read environment logo details read:environments
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._read_logo_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ReadEnvLogoResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _read_logo_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/environment/logos',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_environement_feature_flag_override(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ update_environement_feature_flag_override_request: Annotated[UpdateEnvironementFeatureFlagOverrideRequest, Field(description="Flag details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Environment Feature Flag Override
+
+ Update environment feature flag override. update:environment_feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param update_environement_feature_flag_override_request: Flag details. (required)
+ :type update_environement_feature_flag_override_request: UpdateEnvironementFeatureFlagOverrideRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_environement_feature_flag_override_serialize(
+ feature_flag_key=feature_flag_key,
+ update_environement_feature_flag_override_request=update_environement_feature_flag_override_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_environement_feature_flag_override_with_http_info(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ update_environement_feature_flag_override_request: Annotated[UpdateEnvironementFeatureFlagOverrideRequest, Field(description="Flag details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Environment Feature Flag Override
+
+ Update environment feature flag override. update:environment_feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param update_environement_feature_flag_override_request: Flag details. (required)
+ :type update_environement_feature_flag_override_request: UpdateEnvironementFeatureFlagOverrideRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_environement_feature_flag_override_serialize(
+ feature_flag_key=feature_flag_key,
+ update_environement_feature_flag_override_request=update_environement_feature_flag_override_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_environement_feature_flag_override_without_preload_content(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ update_environement_feature_flag_override_request: Annotated[UpdateEnvironementFeatureFlagOverrideRequest, Field(description="Flag details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Environment Feature Flag Override
+
+ Update environment feature flag override. update:environment_feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param update_environement_feature_flag_override_request: Flag details. (required)
+ :type update_environement_feature_flag_override_request: UpdateEnvironementFeatureFlagOverrideRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_environement_feature_flag_override_serialize(
+ feature_flag_key=feature_flag_key,
+ update_environement_feature_flag_override_request=update_environement_feature_flag_override_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_environement_feature_flag_override_serialize(
+ self,
+ feature_flag_key,
+ update_environement_feature_flag_override_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_environement_feature_flag_override_request is not None:
+ _body_params = update_environement_feature_flag_override_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/environment/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/feature_flags0_api.py b/kinde_sdk/api/feature_flags0_api.py
new file mode 100644
index 00000000..54973cba
--- /dev/null
+++ b/kinde_sdk/api/feature_flags0_api.py
@@ -0,0 +1,326 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.get_feature_flags_response import GetFeatureFlagsResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class FeatureFlagsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_feature_flags(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the flag to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetFeatureFlagsResponse:
+ """Get feature flags
+
+ Returns all the feature flags that affect the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the flag to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_feature_flags_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetFeatureFlagsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_feature_flags_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the flag to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetFeatureFlagsResponse]:
+ """Get feature flags
+
+ Returns all the feature flags that affect the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the flag to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_feature_flags_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetFeatureFlagsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_feature_flags_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the flag to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get feature flags
+
+ Returns all the feature flags that affect the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the flag to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_feature_flags_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetFeatureFlagsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_feature_flags_serialize(
+ self,
+ page_size,
+ starting_after,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/account_api/v1/feature_flags',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/feature_flags_api.py b/kinde_sdk/api/feature_flags_api.py
new file mode 100644
index 00000000..e2d4531c
--- /dev/null
+++ b/kinde_sdk/api/feature_flags_api.py
@@ -0,0 +1,951 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing_extensions import Annotated
+from kinde_sdk.models.create_feature_flag_request import CreateFeatureFlagRequest
+from kinde_sdk.models.success_response import SuccessResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class FeatureFlagsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_feature_flag(
+ self,
+ create_feature_flag_request: Annotated[CreateFeatureFlagRequest, Field(description="Flag details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Create Feature Flag
+
+ Create feature flag. create:feature_flags
+
+ :param create_feature_flag_request: Flag details. (required)
+ :type create_feature_flag_request: CreateFeatureFlagRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_feature_flag_serialize(
+ create_feature_flag_request=create_feature_flag_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_feature_flag_with_http_info(
+ self,
+ create_feature_flag_request: Annotated[CreateFeatureFlagRequest, Field(description="Flag details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Create Feature Flag
+
+ Create feature flag. create:feature_flags
+
+ :param create_feature_flag_request: Flag details. (required)
+ :type create_feature_flag_request: CreateFeatureFlagRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_feature_flag_serialize(
+ create_feature_flag_request=create_feature_flag_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_feature_flag_without_preload_content(
+ self,
+ create_feature_flag_request: Annotated[CreateFeatureFlagRequest, Field(description="Flag details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create Feature Flag
+
+ Create feature flag. create:feature_flags
+
+ :param create_feature_flag_request: Flag details. (required)
+ :type create_feature_flag_request: CreateFeatureFlagRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_feature_flag_serialize(
+ create_feature_flag_request=create_feature_flag_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_feature_flag_serialize(
+ self,
+ create_feature_flag_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_feature_flag_request is not None:
+ _body_params = create_feature_flag_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/feature_flags',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_feature_flag(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Feature Flag
+
+ Delete feature flag delete:feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_feature_flag_serialize(
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_feature_flag_with_http_info(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Feature Flag
+
+ Delete feature flag delete:feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_feature_flag_serialize(
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_feature_flag_without_preload_content(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Feature Flag
+
+ Delete feature flag delete:feature_flags
+
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_feature_flag_serialize(
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_feature_flag_serialize(
+ self,
+ feature_flag_key,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_feature_flag(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The key identifier for the feature flag.")],
+ name: Annotated[StrictStr, Field(description="The name of the flag.")],
+ description: Annotated[StrictStr, Field(description="Description of the flag purpose.")],
+ type: Annotated[StrictStr, Field(description="The variable type")],
+ allow_override_level: Annotated[StrictStr, Field(description="Allow the flag to be overridden at a different level.")],
+ default_value: Annotated[StrictStr, Field(description="Default value for the flag used by environments and organizations.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Replace Feature Flag
+
+ Update feature flag. update:feature_flags
+
+ :param feature_flag_key: The key identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param name: The name of the flag. (required)
+ :type name: str
+ :param description: Description of the flag purpose. (required)
+ :type description: str
+ :param type: The variable type (required)
+ :type type: str
+ :param allow_override_level: Allow the flag to be overridden at a different level. (required)
+ :type allow_override_level: str
+ :param default_value: Default value for the flag used by environments and organizations. (required)
+ :type default_value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_feature_flag_serialize(
+ feature_flag_key=feature_flag_key,
+ name=name,
+ description=description,
+ type=type,
+ allow_override_level=allow_override_level,
+ default_value=default_value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_feature_flag_with_http_info(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The key identifier for the feature flag.")],
+ name: Annotated[StrictStr, Field(description="The name of the flag.")],
+ description: Annotated[StrictStr, Field(description="Description of the flag purpose.")],
+ type: Annotated[StrictStr, Field(description="The variable type")],
+ allow_override_level: Annotated[StrictStr, Field(description="Allow the flag to be overridden at a different level.")],
+ default_value: Annotated[StrictStr, Field(description="Default value for the flag used by environments and organizations.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Replace Feature Flag
+
+ Update feature flag. update:feature_flags
+
+ :param feature_flag_key: The key identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param name: The name of the flag. (required)
+ :type name: str
+ :param description: Description of the flag purpose. (required)
+ :type description: str
+ :param type: The variable type (required)
+ :type type: str
+ :param allow_override_level: Allow the flag to be overridden at a different level. (required)
+ :type allow_override_level: str
+ :param default_value: Default value for the flag used by environments and organizations. (required)
+ :type default_value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_feature_flag_serialize(
+ feature_flag_key=feature_flag_key,
+ name=name,
+ description=description,
+ type=type,
+ allow_override_level=allow_override_level,
+ default_value=default_value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_feature_flag_without_preload_content(
+ self,
+ feature_flag_key: Annotated[StrictStr, Field(description="The key identifier for the feature flag.")],
+ name: Annotated[StrictStr, Field(description="The name of the flag.")],
+ description: Annotated[StrictStr, Field(description="Description of the flag purpose.")],
+ type: Annotated[StrictStr, Field(description="The variable type")],
+ allow_override_level: Annotated[StrictStr, Field(description="Allow the flag to be overridden at a different level.")],
+ default_value: Annotated[StrictStr, Field(description="Default value for the flag used by environments and organizations.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Replace Feature Flag
+
+ Update feature flag. update:feature_flags
+
+ :param feature_flag_key: The key identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param name: The name of the flag. (required)
+ :type name: str
+ :param description: Description of the flag purpose. (required)
+ :type description: str
+ :param type: The variable type (required)
+ :type type: str
+ :param allow_override_level: Allow the flag to be overridden at a different level. (required)
+ :type allow_override_level: str
+ :param default_value: Default value for the flag used by environments and organizations. (required)
+ :type default_value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_feature_flag_serialize(
+ feature_flag_key=feature_flag_key,
+ name=name,
+ description=description,
+ type=type,
+ allow_override_level=allow_override_level,
+ default_value=default_value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_feature_flag_serialize(
+ self,
+ feature_flag_key,
+ name,
+ description,
+ type,
+ allow_override_level,
+ default_value,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ if name is not None:
+
+ _query_params.append(('name', name))
+
+ if description is not None:
+
+ _query_params.append(('description', description))
+
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ if allow_override_level is not None:
+
+ _query_params.append(('allow_override_level', allow_override_level))
+
+ if default_value is not None:
+
+ _query_params.append(('default_value', default_value))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/identities_api.py b/kinde_sdk/api/identities_api.py
new file mode 100644
index 00000000..80e4f014
--- /dev/null
+++ b/kinde_sdk/api/identities_api.py
@@ -0,0 +1,882 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing_extensions import Annotated
+from kinde_sdk.models.identity import Identity
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_identity_request import UpdateIdentityRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class IdentitiesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def delete_identity(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete identity
+
+ Delete identity by ID. delete:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_identity_serialize(
+ identity_id=identity_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_identity_with_http_info(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete identity
+
+ Delete identity by ID. delete:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_identity_serialize(
+ identity_id=identity_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_identity_without_preload_content(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete identity
+
+ Delete identity by ID. delete:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_identity_serialize(
+ identity_id=identity_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_identity_serialize(
+ self,
+ identity_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if identity_id is not None:
+ _path_params['identity_id'] = identity_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/identities/{identity_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_identity(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Identity:
+ """Get identity
+
+ Returns an identity by ID read:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_identity_serialize(
+ identity_id=identity_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Identity",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_identity_with_http_info(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Identity]:
+ """Get identity
+
+ Returns an identity by ID read:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_identity_serialize(
+ identity_id=identity_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Identity",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_identity_without_preload_content(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get identity
+
+ Returns an identity by ID read:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_identity_serialize(
+ identity_id=identity_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Identity",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_identity_serialize(
+ self,
+ identity_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if identity_id is not None:
+ _path_params['identity_id'] = identity_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/identities/{identity_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_identity(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ update_identity_request: Annotated[UpdateIdentityRequest, Field(description="The fields of the identity to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update identity
+
+ Update identity by ID. update:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param update_identity_request: The fields of the identity to update. (required)
+ :type update_identity_request: UpdateIdentityRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_identity_serialize(
+ identity_id=identity_id,
+ update_identity_request=update_identity_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_identity_with_http_info(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ update_identity_request: Annotated[UpdateIdentityRequest, Field(description="The fields of the identity to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update identity
+
+ Update identity by ID. update:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param update_identity_request: The fields of the identity to update. (required)
+ :type update_identity_request: UpdateIdentityRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_identity_serialize(
+ identity_id=identity_id,
+ update_identity_request=update_identity_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_identity_without_preload_content(
+ self,
+ identity_id: Annotated[StrictStr, Field(description="The unique identifier for the identity.")],
+ update_identity_request: Annotated[UpdateIdentityRequest, Field(description="The fields of the identity to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update identity
+
+ Update identity by ID. update:identities
+
+ :param identity_id: The unique identifier for the identity. (required)
+ :type identity_id: str
+ :param update_identity_request: The fields of the identity to update. (required)
+ :type update_identity_request: UpdateIdentityRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_identity_serialize(
+ identity_id=identity_id,
+ update_identity_request=update_identity_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_identity_serialize(
+ self,
+ identity_id,
+ update_identity_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if identity_id is not None:
+ _path_params['identity_id'] = identity_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_identity_request is not None:
+ _body_params = update_identity_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/identities/{identity_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/industries_api.py b/kinde_sdk/api/industries_api.py
new file mode 100644
index 00000000..eaba4ab1
--- /dev/null
+++ b/kinde_sdk/api/industries_api.py
@@ -0,0 +1,292 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from kinde_sdk.models.get_industries_response import GetIndustriesResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class IndustriesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_industries(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetIndustriesResponse:
+ """Get industries
+
+ Get a list of industries and associated industry keys. read:industries
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_industries_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetIndustriesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_industries_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetIndustriesResponse]:
+ """Get industries
+
+ Get a list of industries and associated industry keys. read:industries
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_industries_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetIndustriesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_industries_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get industries
+
+ Get a list of industries and associated industry keys. read:industries
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_industries_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetIndustriesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_industries_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/industries',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/mfa_api.py b/kinde_sdk/api/mfa_api.py
new file mode 100644
index 00000000..18c8f431
--- /dev/null
+++ b/kinde_sdk/api/mfa_api.py
@@ -0,0 +1,323 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field
+from typing_extensions import Annotated
+from kinde_sdk.models.replace_mfa_request import ReplaceMFARequest
+from kinde_sdk.models.success_response import SuccessResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class MFAApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def replace_mfa(
+ self,
+ replace_mfa_request: Annotated[ReplaceMFARequest, Field(description="MFA details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Replace MFA Configuration
+
+ Replace MFA Configuration. update:mfa
+
+ :param replace_mfa_request: MFA details. (required)
+ :type replace_mfa_request: ReplaceMFARequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_mfa_serialize(
+ replace_mfa_request=replace_mfa_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def replace_mfa_with_http_info(
+ self,
+ replace_mfa_request: Annotated[ReplaceMFARequest, Field(description="MFA details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Replace MFA Configuration
+
+ Replace MFA Configuration. update:mfa
+
+ :param replace_mfa_request: MFA details. (required)
+ :type replace_mfa_request: ReplaceMFARequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_mfa_serialize(
+ replace_mfa_request=replace_mfa_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def replace_mfa_without_preload_content(
+ self,
+ replace_mfa_request: Annotated[ReplaceMFARequest, Field(description="MFA details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Replace MFA Configuration
+
+ Replace MFA Configuration. update:mfa
+
+ :param replace_mfa_request: MFA details. (required)
+ :type replace_mfa_request: ReplaceMFARequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_mfa_serialize(
+ replace_mfa_request=replace_mfa_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _replace_mfa_serialize(
+ self,
+ replace_mfa_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_mfa_request is not None:
+ _body_params = replace_mfa_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/o_auth_api.py b/kinde_sdk/api/o_auth_api.py
new file mode 100644
index 00000000..cf2e047b
--- /dev/null
+++ b/kinde_sdk/api/o_auth_api.py
@@ -0,0 +1,923 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.token_introspect import TokenIntrospect
+from kinde_sdk.models.user_profile_v2 import UserProfileV2
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class OAuthApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_user_profile_v2(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UserProfileV2:
+ """Get user profile
+
+ This endpoint returns a user's ID, names, profile picture URL and email of the currently logged in user.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_profile_v2_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UserProfileV2",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_profile_v2_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UserProfileV2]:
+ """Get user profile
+
+ This endpoint returns a user's ID, names, profile picture URL and email of the currently logged in user.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_profile_v2_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UserProfileV2",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_profile_v2_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get user profile
+
+ This endpoint returns a user's ID, names, profile picture URL and email of the currently logged in user.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_profile_v2_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UserProfileV2",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_profile_v2_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/oauth2/v2/user_profile',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def token_introspection(
+ self,
+ token: Annotated[StrictStr, Field(description="The token to be introspected.")],
+ token_type_hint: Annotated[Optional[StrictStr], Field(description="A hint about the token type being queried in the request.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> TokenIntrospect:
+ """Introspect
+
+ Retrieve information about the provided token.
+
+ :param token: The token to be introspected. (required)
+ :type token: str
+ :param token_type_hint: A hint about the token type being queried in the request.
+ :type token_type_hint: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._token_introspection_serialize(
+ token=token,
+ token_type_hint=token_type_hint,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenIntrospect",
+ '401': "TokenErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def token_introspection_with_http_info(
+ self,
+ token: Annotated[StrictStr, Field(description="The token to be introspected.")],
+ token_type_hint: Annotated[Optional[StrictStr], Field(description="A hint about the token type being queried in the request.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[TokenIntrospect]:
+ """Introspect
+
+ Retrieve information about the provided token.
+
+ :param token: The token to be introspected. (required)
+ :type token: str
+ :param token_type_hint: A hint about the token type being queried in the request.
+ :type token_type_hint: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._token_introspection_serialize(
+ token=token,
+ token_type_hint=token_type_hint,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenIntrospect",
+ '401': "TokenErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def token_introspection_without_preload_content(
+ self,
+ token: Annotated[StrictStr, Field(description="The token to be introspected.")],
+ token_type_hint: Annotated[Optional[StrictStr], Field(description="A hint about the token type being queried in the request.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Introspect
+
+ Retrieve information about the provided token.
+
+ :param token: The token to be introspected. (required)
+ :type token: str
+ :param token_type_hint: A hint about the token type being queried in the request.
+ :type token_type_hint: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._token_introspection_serialize(
+ token=token,
+ token_type_hint=token_type_hint,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenIntrospect",
+ '401': "TokenErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _token_introspection_serialize(
+ self,
+ token,
+ token_type_hint,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ if token is not None:
+ _form_params.append(('token', token))
+ if token_type_hint is not None:
+ _form_params.append(('token_type_hint', token_type_hint))
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/x-www-form-urlencoded'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/oauth2/introspect',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def token_revocation(
+ self,
+ client_id: Annotated[StrictStr, Field(description="The `client_id` of your application.")],
+ token: Annotated[StrictStr, Field(description="The token to be revoked.")],
+ client_secret: Annotated[Optional[StrictStr], Field(description="The `client_secret` of your application. Required for backend apps only.")] = None,
+ token_type_hint: Annotated[Optional[StrictStr], Field(description="The type of token to be revoked.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Revoke token
+
+ Use this endpoint to invalidate an access or refresh token. The token will no longer be valid for use.
+
+ :param client_id: The `client_id` of your application. (required)
+ :type client_id: str
+ :param token: The token to be revoked. (required)
+ :type token: str
+ :param client_secret: The `client_secret` of your application. Required for backend apps only.
+ :type client_secret: str
+ :param token_type_hint: The type of token to be revoked.
+ :type token_type_hint: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._token_revocation_serialize(
+ client_id=client_id,
+ token=token,
+ client_secret=client_secret,
+ token_type_hint=token_type_hint,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '401': "TokenErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def token_revocation_with_http_info(
+ self,
+ client_id: Annotated[StrictStr, Field(description="The `client_id` of your application.")],
+ token: Annotated[StrictStr, Field(description="The token to be revoked.")],
+ client_secret: Annotated[Optional[StrictStr], Field(description="The `client_secret` of your application. Required for backend apps only.")] = None,
+ token_type_hint: Annotated[Optional[StrictStr], Field(description="The type of token to be revoked.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Revoke token
+
+ Use this endpoint to invalidate an access or refresh token. The token will no longer be valid for use.
+
+ :param client_id: The `client_id` of your application. (required)
+ :type client_id: str
+ :param token: The token to be revoked. (required)
+ :type token: str
+ :param client_secret: The `client_secret` of your application. Required for backend apps only.
+ :type client_secret: str
+ :param token_type_hint: The type of token to be revoked.
+ :type token_type_hint: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._token_revocation_serialize(
+ client_id=client_id,
+ token=token,
+ client_secret=client_secret,
+ token_type_hint=token_type_hint,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '401': "TokenErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def token_revocation_without_preload_content(
+ self,
+ client_id: Annotated[StrictStr, Field(description="The `client_id` of your application.")],
+ token: Annotated[StrictStr, Field(description="The token to be revoked.")],
+ client_secret: Annotated[Optional[StrictStr], Field(description="The `client_secret` of your application. Required for backend apps only.")] = None,
+ token_type_hint: Annotated[Optional[StrictStr], Field(description="The type of token to be revoked.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Revoke token
+
+ Use this endpoint to invalidate an access or refresh token. The token will no longer be valid for use.
+
+ :param client_id: The `client_id` of your application. (required)
+ :type client_id: str
+ :param token: The token to be revoked. (required)
+ :type token: str
+ :param client_secret: The `client_secret` of your application. Required for backend apps only.
+ :type client_secret: str
+ :param token_type_hint: The type of token to be revoked.
+ :type token_type_hint: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._token_revocation_serialize(
+ client_id=client_id,
+ token=token,
+ client_secret=client_secret,
+ token_type_hint=token_type_hint,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '401': "TokenErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _token_revocation_serialize(
+ self,
+ client_id,
+ token,
+ client_secret,
+ token_type_hint,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ if client_id is not None:
+ _form_params.append(('client_id', client_id))
+ if client_secret is not None:
+ _form_params.append(('client_secret', client_secret))
+ if token is not None:
+ _form_params.append(('token', token))
+ if token_type_hint is not None:
+ _form_params.append(('token_type_hint', token_type_hint))
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/x-www-form-urlencoded'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/oauth2/revoke',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/organizations_api.py b/kinde_sdk/api/organizations_api.py
new file mode 100644
index 00000000..03b74892
--- /dev/null
+++ b/kinde_sdk/api/organizations_api.py
@@ -0,0 +1,10649 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator
+from typing import Optional, Tuple, Union
+from typing_extensions import Annotated
+from kinde_sdk.models.add_organization_users_request import AddOrganizationUsersRequest
+from kinde_sdk.models.add_organization_users_response import AddOrganizationUsersResponse
+from kinde_sdk.models.create_organization_request import CreateOrganizationRequest
+from kinde_sdk.models.create_organization_response import CreateOrganizationResponse
+from kinde_sdk.models.create_organization_user_permission_request import CreateOrganizationUserPermissionRequest
+from kinde_sdk.models.create_organization_user_role_request import CreateOrganizationUserRoleRequest
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.models.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
+from kinde_sdk.models.get_organization_response import GetOrganizationResponse
+from kinde_sdk.models.get_organization_users_response import GetOrganizationUsersResponse
+from kinde_sdk.models.get_organizations_response import GetOrganizationsResponse
+from kinde_sdk.models.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
+from kinde_sdk.models.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+from kinde_sdk.models.read_logo_response import ReadLogoResponse
+from kinde_sdk.models.replace_organization_mfa_request import ReplaceOrganizationMFARequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+from kinde_sdk.models.update_organization_request import UpdateOrganizationRequest
+from kinde_sdk.models.update_organization_sessions_request import UpdateOrganizationSessionsRequest
+from kinde_sdk.models.update_organization_users_request import UpdateOrganizationUsersRequest
+from kinde_sdk.models.update_organization_users_response import UpdateOrganizationUsersResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class OrganizationsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def add_organization_logo(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ type: Annotated[StrictStr, Field(description="The type of logo to add.")],
+ logo: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The logo file to upload.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Add organization logo
+
+ Add organization logo update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param type: The type of logo to add. (required)
+ :type type: str
+ :param logo: The logo file to upload. (required)
+ :type logo: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_logo_serialize(
+ org_code=org_code,
+ type=type,
+ logo=logo,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_organization_logo_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ type: Annotated[StrictStr, Field(description="The type of logo to add.")],
+ logo: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The logo file to upload.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Add organization logo
+
+ Add organization logo update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param type: The type of logo to add. (required)
+ :type type: str
+ :param logo: The logo file to upload. (required)
+ :type logo: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_logo_serialize(
+ org_code=org_code,
+ type=type,
+ logo=logo,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_organization_logo_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ type: Annotated[StrictStr, Field(description="The type of logo to add.")],
+ logo: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The logo file to upload.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add organization logo
+
+ Add organization logo update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param type: The type of logo to add. (required)
+ :type type: str
+ :param logo: The logo file to upload. (required)
+ :type logo: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_logo_serialize(
+ org_code=org_code,
+ type=type,
+ logo=logo,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_organization_logo_serialize(
+ self,
+ org_code,
+ type,
+ logo,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if type is not None:
+ _path_params['type'] = type
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ if logo is not None:
+ _files['logo'] = logo
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'multipart/form-data'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organizations/{org_code}/logos/{type}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def add_organization_user_api_scope(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="User ID")],
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Add scope to organization user api
+
+ Add a scope to an organization user api. create:organization_user_api_scopes
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: User ID (required)
+ :type user_id: str
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_user_api_scope_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_organization_user_api_scope_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="User ID")],
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Add scope to organization user api
+
+ Add a scope to an organization user api. create:organization_user_api_scopes
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: User ID (required)
+ :type user_id: str
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_user_api_scope_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_organization_user_api_scope_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="User ID")],
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add scope to organization user api
+
+ Add a scope to an organization user api. create:organization_user_api_scopes
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: User ID (required)
+ :type user_id: str
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_user_api_scope_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_organization_user_api_scope_serialize(
+ self,
+ org_code,
+ user_id,
+ api_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def add_organization_users(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ add_organization_users_request: Optional[AddOrganizationUsersRequest] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AddOrganizationUsersResponse:
+ """Add Organization Users
+
+ Add existing users to an organization. create:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param add_organization_users_request:
+ :type add_organization_users_request: AddOrganizationUsersRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_users_serialize(
+ org_code=org_code,
+ add_organization_users_request=add_organization_users_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AddOrganizationUsersResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_organization_users_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ add_organization_users_request: Optional[AddOrganizationUsersRequest] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AddOrganizationUsersResponse]:
+ """Add Organization Users
+
+ Add existing users to an organization. create:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param add_organization_users_request:
+ :type add_organization_users_request: AddOrganizationUsersRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_users_serialize(
+ org_code=org_code,
+ add_organization_users_request=add_organization_users_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AddOrganizationUsersResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_organization_users_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ add_organization_users_request: Optional[AddOrganizationUsersRequest] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add Organization Users
+
+ Add existing users to an organization. create:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param add_organization_users_request:
+ :type add_organization_users_request: AddOrganizationUsersRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_organization_users_serialize(
+ org_code=org_code,
+ add_organization_users_request=add_organization_users_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AddOrganizationUsersResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_organization_users_serialize(
+ self,
+ org_code,
+ add_organization_users_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if add_organization_users_request is not None:
+ _body_params = add_organization_users_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organizations/{org_code}/users',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def create_organization(
+ self,
+ create_organization_request: Annotated[CreateOrganizationRequest, Field(description="Organization details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateOrganizationResponse:
+ """Create organization
+
+ Create a new organization. To learn more read about [multi tenancy using organizations](https://docs.kinde.com/build/organizations/multi-tenancy-using-organizations/) create:organizations
+
+ :param create_organization_request: Organization details. (required)
+ :type create_organization_request: CreateOrganizationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_serialize(
+ create_organization_request=create_organization_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateOrganizationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_organization_with_http_info(
+ self,
+ create_organization_request: Annotated[CreateOrganizationRequest, Field(description="Organization details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateOrganizationResponse]:
+ """Create organization
+
+ Create a new organization. To learn more read about [multi tenancy using organizations](https://docs.kinde.com/build/organizations/multi-tenancy-using-organizations/) create:organizations
+
+ :param create_organization_request: Organization details. (required)
+ :type create_organization_request: CreateOrganizationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_serialize(
+ create_organization_request=create_organization_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateOrganizationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_organization_without_preload_content(
+ self,
+ create_organization_request: Annotated[CreateOrganizationRequest, Field(description="Organization details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create organization
+
+ Create a new organization. To learn more read about [multi tenancy using organizations](https://docs.kinde.com/build/organizations/multi-tenancy-using-organizations/) create:organizations
+
+ :param create_organization_request: Organization details. (required)
+ :type create_organization_request: CreateOrganizationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_serialize(
+ create_organization_request=create_organization_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateOrganizationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_organization_serialize(
+ self,
+ create_organization_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_organization_request is not None:
+ _body_params = create_organization_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organization',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def create_organization_user_permission(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ create_organization_user_permission_request: Annotated[CreateOrganizationUserPermissionRequest, Field(description="Permission details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Add Organization User Permission
+
+ Add permission to an organization user. create:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param create_organization_user_permission_request: Permission details. (required)
+ :type create_organization_user_permission_request: CreateOrganizationUserPermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_user_permission_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ create_organization_user_permission_request=create_organization_user_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_organization_user_permission_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ create_organization_user_permission_request: Annotated[CreateOrganizationUserPermissionRequest, Field(description="Permission details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Add Organization User Permission
+
+ Add permission to an organization user. create:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param create_organization_user_permission_request: Permission details. (required)
+ :type create_organization_user_permission_request: CreateOrganizationUserPermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_user_permission_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ create_organization_user_permission_request=create_organization_user_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_organization_user_permission_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ create_organization_user_permission_request: Annotated[CreateOrganizationUserPermissionRequest, Field(description="Permission details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add Organization User Permission
+
+ Add permission to an organization user. create:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param create_organization_user_permission_request: Permission details. (required)
+ :type create_organization_user_permission_request: CreateOrganizationUserPermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_user_permission_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ create_organization_user_permission_request=create_organization_user_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_organization_user_permission_serialize(
+ self,
+ org_code,
+ user_id,
+ create_organization_user_permission_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_organization_user_permission_request is not None:
+ _body_params = create_organization_user_permission_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def create_organization_user_role(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ create_organization_user_role_request: Annotated[CreateOrganizationUserRoleRequest, Field(description="Role details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Add Organization User Role
+
+ Add role to an organization user. create:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param create_organization_user_role_request: Role details. (required)
+ :type create_organization_user_role_request: CreateOrganizationUserRoleRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_user_role_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ create_organization_user_role_request=create_organization_user_role_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_organization_user_role_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ create_organization_user_role_request: Annotated[CreateOrganizationUserRoleRequest, Field(description="Role details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Add Organization User Role
+
+ Add role to an organization user. create:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param create_organization_user_role_request: Role details. (required)
+ :type create_organization_user_role_request: CreateOrganizationUserRoleRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_user_role_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ create_organization_user_role_request=create_organization_user_role_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_organization_user_role_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ create_organization_user_role_request: Annotated[CreateOrganizationUserRoleRequest, Field(description="Role details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add Organization User Role
+
+ Add role to an organization user. create:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param create_organization_user_role_request: Role details. (required)
+ :type create_organization_user_role_request: CreateOrganizationUserRoleRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_user_role_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ create_organization_user_role_request=create_organization_user_role_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_organization_user_role_serialize(
+ self,
+ org_code,
+ user_id,
+ create_organization_user_role_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_organization_user_role_request is not None:
+ _body_params = create_organization_user_role_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/roles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Organization
+
+ Delete an organization. delete:organizations
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Organization
+
+ Delete an organization. delete:organizations
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Organization
+
+ Delete an organization. delete:organizations
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_serialize(
+ self,
+ org_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organization/{org_code}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_feature_flag_override(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Organization Feature Flag Override
+
+ Delete organization feature flag override. delete:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_feature_flag_override_serialize(
+ org_code=org_code,
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_feature_flag_override_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Organization Feature Flag Override
+
+ Delete organization feature flag override. delete:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_feature_flag_override_serialize(
+ org_code=org_code,
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_feature_flag_override_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Organization Feature Flag Override
+
+ Delete organization feature flag override. delete:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param feature_flag_key: The identifier for the feature flag. (required)
+ :type feature_flag_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_feature_flag_override_serialize(
+ org_code=org_code,
+ feature_flag_key=feature_flag_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_feature_flag_override_serialize(
+ self,
+ org_code,
+ feature_flag_key,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_feature_flag_overrides(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Organization Feature Flag Overrides
+
+ Delete all organization feature flag overrides. delete:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_feature_flag_overrides_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_feature_flag_overrides_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Organization Feature Flag Overrides
+
+ Delete all organization feature flag overrides. delete:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_feature_flag_overrides_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_feature_flag_overrides_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Organization Feature Flag Overrides
+
+ Delete all organization feature flag overrides. delete:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_feature_flag_overrides_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_feature_flag_overrides_serialize(
+ self,
+ org_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/feature_flags',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_handle(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete organization handle
+
+ Delete organization handle delete:organization_handles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_handle_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_handle_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete organization handle
+
+ Delete organization handle delete:organization_handles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_handle_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_handle_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete organization handle
+
+ Delete organization handle delete:organization_handles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_handle_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_handle_serialize(
+ self,
+ org_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organization/{org_code}/handle',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_logo(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ type: Annotated[StrictStr, Field(description="The type of logo to delete.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete organization logo
+
+ Delete organization logo update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param type: The type of logo to delete. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_logo_serialize(
+ org_code=org_code,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_logo_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ type: Annotated[StrictStr, Field(description="The type of logo to delete.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete organization logo
+
+ Delete organization logo update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param type: The type of logo to delete. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_logo_serialize(
+ org_code=org_code,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_logo_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ type: Annotated[StrictStr, Field(description="The type of logo to delete.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete organization logo
+
+ Delete organization logo update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param type: The type of logo to delete. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_logo_serialize(
+ org_code=org_code,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '204': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_logo_serialize(
+ self,
+ org_code,
+ type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if type is not None:
+ _path_params['type'] = type
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/logos/{type}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_user_api_scope(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="User ID")],
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Delete scope from organization user API
+
+ Delete a scope from an organization user api you previously created. delete:organization_user_api_scopes
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: User ID (required)
+ :type user_id: str
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_api_scope_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_user_api_scope_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="User ID")],
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Delete scope from organization user API
+
+ Delete a scope from an organization user api you previously created. delete:organization_user_api_scopes
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: User ID (required)
+ :type user_id: str
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_api_scope_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_user_api_scope_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="User ID")],
+ api_id: Annotated[StrictStr, Field(description="API ID")],
+ scope_id: Annotated[StrictStr, Field(description="Scope ID")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete scope from organization user API
+
+ Delete a scope from an organization user api you previously created. delete:organization_user_api_scopes
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: User ID (required)
+ :type user_id: str
+ :param api_id: API ID (required)
+ :type api_id: str
+ :param scope_id: Scope ID (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_api_scope_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ api_id=api_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_user_api_scope_serialize(
+ self,
+ org_code,
+ user_id,
+ api_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if api_id is not None:
+ _path_params['api_id'] = api_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_user_permission(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ permission_id: Annotated[StrictStr, Field(description="The permission id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Organization User Permission
+
+ Delete permission for an organization user. delete:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param permission_id: The permission id. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_permission_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_user_permission_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ permission_id: Annotated[StrictStr, Field(description="The permission id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Organization User Permission
+
+ Delete permission for an organization user. delete:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param permission_id: The permission id. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_permission_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_user_permission_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ permission_id: Annotated[StrictStr, Field(description="The permission id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Organization User Permission
+
+ Delete permission for an organization user. delete:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param permission_id: The permission id. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_permission_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_user_permission_serialize(
+ self,
+ org_code,
+ user_id,
+ permission_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if permission_id is not None:
+ _path_params['permission_id'] = permission_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization_user_role(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Organization User Role
+
+ Delete role for an organization user. delete:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_role_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_user_role_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Organization User Role
+
+ Delete role for an organization user. delete:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_role_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_user_role_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Organization User Role
+
+ Delete role for an organization user. delete:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_user_role_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_user_role_serialize(
+ self,
+ org_code,
+ user_id,
+ role_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def enable_org_connection(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The unique code for the organization.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Enable connection
+
+ Enable an auth connection for an organization. create:organization_connections
+
+ :param organization_code: The unique code for the organization. (required)
+ :type organization_code: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._enable_org_connection_serialize(
+ organization_code=organization_code,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def enable_org_connection_with_http_info(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The unique code for the organization.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Enable connection
+
+ Enable an auth connection for an organization. create:organization_connections
+
+ :param organization_code: The unique code for the organization. (required)
+ :type organization_code: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._enable_org_connection_serialize(
+ organization_code=organization_code,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def enable_org_connection_without_preload_content(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The unique code for the organization.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Enable connection
+
+ Enable an auth connection for an organization. create:organization_connections
+
+ :param organization_code: The unique code for the organization. (required)
+ :type organization_code: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._enable_org_connection_serialize(
+ organization_code=organization_code,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _enable_org_connection_serialize(
+ self,
+ organization_code,
+ connection_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if organization_code is not None:
+ _path_params['organization_code'] = organization_code
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/organizations/{organization_code}/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_org_user_mfa(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetUserMfaResponse:
+ """Get an organization user's MFA configuration
+
+ Get an organization user’s MFA configuration. read:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_org_user_mfa_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserMfaResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_org_user_mfa_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetUserMfaResponse]:
+ """Get an organization user's MFA configuration
+
+ Get an organization user’s MFA configuration. read:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_org_user_mfa_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserMfaResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_org_user_mfa_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get an organization user's MFA configuration
+
+ Get an organization user’s MFA configuration. read:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_org_user_mfa_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserMfaResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_org_user_mfa_serialize(
+ self,
+ org_code,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization(
+ self,
+ code: Annotated[Optional[StrictStr], Field(description="The organization's code.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizationResponse:
+ """Get organization
+
+ Retrieve organization details by code. read:organizations
+
+ :param code: The organization's code.
+ :type code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_serialize(
+ code=code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_with_http_info(
+ self,
+ code: Annotated[Optional[StrictStr], Field(description="The organization's code.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizationResponse]:
+ """Get organization
+
+ Retrieve organization details by code. read:organizations
+
+ :param code: The organization's code.
+ :type code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_serialize(
+ code=code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_without_preload_content(
+ self,
+ code: Annotated[Optional[StrictStr], Field(description="The organization's code.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get organization
+
+ Retrieve organization details by code. read:organizations
+
+ :param code: The organization's code.
+ :type code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_serialize(
+ code=code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_serialize(
+ self,
+ code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if code is not None:
+
+ _query_params.append(('code', code))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organization',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_connections(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The organization code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetConnectionsResponse:
+ """Get connections
+
+ Gets all connections for an organization. read:organization_connections
+
+ :param organization_code: The organization code. (required)
+ :type organization_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_connections_serialize(
+ organization_code=organization_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_connections_with_http_info(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The organization code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetConnectionsResponse]:
+ """Get connections
+
+ Gets all connections for an organization. read:organization_connections
+
+ :param organization_code: The organization code. (required)
+ :type organization_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_connections_serialize(
+ organization_code=organization_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_connections_without_preload_content(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The organization code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get connections
+
+ Gets all connections for an organization. read:organization_connections
+
+ :param organization_code: The organization code. (required)
+ :type organization_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_connections_serialize(
+ organization_code=organization_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetConnectionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_connections_serialize(
+ self,
+ organization_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if organization_code is not None:
+ _path_params['organization_code'] = organization_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{organization_code}/connections',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_feature_flags(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizationFeatureFlagsResponse:
+ """List Organization Feature Flags
+
+ Get all organization feature flags. read:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_feature_flags_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationFeatureFlagsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_feature_flags_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizationFeatureFlagsResponse]:
+ """List Organization Feature Flags
+
+ Get all organization feature flags. read:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_feature_flags_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationFeatureFlagsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_feature_flags_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Organization Feature Flags
+
+ Get all organization feature flags. read:organization_feature_flags
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_feature_flags_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationFeatureFlagsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_feature_flags_serialize(
+ self,
+ org_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/feature_flags',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_property_values(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPropertyValuesResponse:
+ """Get Organization Property Values
+
+ Gets properties for an organization by org code. read:organization_properties
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_property_values_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_property_values_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPropertyValuesResponse]:
+ """Get Organization Property Values
+
+ Gets properties for an organization by org code. read:organization_properties
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_property_values_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_property_values_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Organization Property Values
+
+ Gets properties for an organization by org code. read:organization_properties
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_property_values_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_property_values_serialize(
+ self,
+ org_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_user_permissions(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"roles\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizationsUserPermissionsResponse:
+ """List Organization User Permissions
+
+ Get permissions for an organization user. read:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param expand: Specify additional data to retrieve. Use \"roles\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_user_permissions_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsUserPermissionsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_user_permissions_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"roles\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizationsUserPermissionsResponse]:
+ """List Organization User Permissions
+
+ Get permissions for an organization user. read:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param expand: Specify additional data to retrieve. Use \"roles\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_user_permissions_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsUserPermissionsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_user_permissions_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"roles\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Organization User Permissions
+
+ Get permissions for an organization user. read:organization_user_permissions
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param expand: Specify additional data to retrieve. Use \"roles\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_user_permissions_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsUserPermissionsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_user_permissions_serialize(
+ self,
+ org_code,
+ user_id,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_user_roles(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizationsUserRolesResponse:
+ """List Organization User Roles
+
+ Get roles for an organization user. read:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_user_roles_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsUserRolesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_user_roles_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizationsUserRolesResponse]:
+ """List Organization User Roles
+
+ Get roles for an organization user. read:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_user_roles_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsUserRolesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_user_roles_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Organization User Roles
+
+ Get roles for an organization user. read:organization_user_roles
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_user_roles_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsUserRolesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_user_roles_serialize(
+ self,
+ org_code,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/roles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_users(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ permissions: Annotated[Optional[StrictStr], Field(description="Filter by user permissions comma separated (where all match)")] = None,
+ roles: Annotated[Optional[StrictStr], Field(description="Filter by user roles comma separated (where all match)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizationUsersResponse:
+ """Get organization users
+
+ Get user details for all members of an organization. read:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param permissions: Filter by user permissions comma separated (where all match)
+ :type permissions: str
+ :param roles: Filter by user roles comma separated (where all match)
+ :type roles: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_users_serialize(
+ org_code=org_code,
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ permissions=permissions,
+ roles=roles,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_users_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ permissions: Annotated[Optional[StrictStr], Field(description="Filter by user permissions comma separated (where all match)")] = None,
+ roles: Annotated[Optional[StrictStr], Field(description="Filter by user roles comma separated (where all match)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizationUsersResponse]:
+ """Get organization users
+
+ Get user details for all members of an organization. read:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param permissions: Filter by user permissions comma separated (where all match)
+ :type permissions: str
+ :param roles: Filter by user roles comma separated (where all match)
+ :type roles: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_users_serialize(
+ org_code=org_code,
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ permissions=permissions,
+ roles=roles,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_users_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ permissions: Annotated[Optional[StrictStr], Field(description="Filter by user permissions comma separated (where all match)")] = None,
+ roles: Annotated[Optional[StrictStr], Field(description="Filter by user roles comma separated (where all match)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get organization users
+
+ Get user details for all members of an organization. read:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param permissions: Filter by user permissions comma separated (where all match)
+ :type permissions: str
+ :param roles: Filter by user roles comma separated (where all match)
+ :type roles: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_users_serialize(
+ org_code=org_code,
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ permissions=permissions,
+ roles=roles,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_users_serialize(
+ self,
+ org_code,
+ sort,
+ page_size,
+ next_token,
+ permissions,
+ roles,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ if permissions is not None:
+
+ _query_params.append(('permissions', permissions))
+
+ if roles is not None:
+
+ _query_params.append(('roles', roles))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/users',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organizations(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizationsResponse:
+ """Get organizations
+
+ Get a list of organizations. read:organizations
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organizations_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organizations_with_http_info(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizationsResponse]:
+ """Get organizations
+
+ Get a list of organizations. read:organizations
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organizations_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organizations_without_preload_content(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get organizations
+
+ Get a list of organizations. read:organizations
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organizations_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organizations_serialize(
+ self,
+ sort,
+ page_size,
+ next_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def read_organization_logo(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ReadLogoResponse:
+ """Read organization logo details
+
+ Read organization logo details read:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._read_organization_logo_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ReadLogoResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def read_organization_logo_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ReadLogoResponse]:
+ """Read organization logo details
+
+ Read organization logo details read:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._read_organization_logo_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ReadLogoResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def read_organization_logo_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Read organization logo details
+
+ Read organization logo details read:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._read_organization_logo_serialize(
+ org_code=org_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ReadLogoResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _read_organization_logo_serialize(
+ self,
+ org_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/organizations/{org_code}/logos',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def remove_org_connection(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The unique code for the organization.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Remove connection
+
+ Turn off an auth connection for an organization delete:organization_connections
+
+ :param organization_code: The unique code for the organization. (required)
+ :type organization_code: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_org_connection_serialize(
+ organization_code=organization_code,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def remove_org_connection_with_http_info(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The unique code for the organization.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Remove connection
+
+ Turn off an auth connection for an organization delete:organization_connections
+
+ :param organization_code: The unique code for the organization. (required)
+ :type organization_code: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_org_connection_serialize(
+ organization_code=organization_code,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def remove_org_connection_without_preload_content(
+ self,
+ organization_code: Annotated[StrictStr, Field(description="The unique code for the organization.")],
+ connection_id: Annotated[StrictStr, Field(description="The identifier for the connection.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Remove connection
+
+ Turn off an auth connection for an organization delete:organization_connections
+
+ :param organization_code: The unique code for the organization. (required)
+ :type organization_code: str
+ :param connection_id: The identifier for the connection. (required)
+ :type connection_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_org_connection_serialize(
+ organization_code=organization_code,
+ connection_id=connection_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _remove_org_connection_serialize(
+ self,
+ organization_code,
+ connection_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if organization_code is not None:
+ _path_params['organization_code'] = organization_code
+ if connection_id is not None:
+ _path_params['connection_id'] = connection_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{organization_code}/connections/{connection_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def remove_organization_user(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Remove Organization User
+
+ Remove user from an organization. delete:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_organization_user_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def remove_organization_user_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Remove Organization User
+
+ Remove user from an organization. delete:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_organization_user_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def remove_organization_user_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ user_id: Annotated[StrictStr, Field(description="The user's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Remove Organization User
+
+ Remove user from an organization. delete:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param user_id: The user's id. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_organization_user_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _remove_organization_user_serialize(
+ self,
+ org_code,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def replace_organization_mfa(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ replace_organization_mfa_request: Annotated[ReplaceOrganizationMFARequest, Field(description="MFA details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Replace Organization MFA Configuration
+
+ Replace Organization MFA Configuration. update:organization_mfa
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param replace_organization_mfa_request: MFA details. (required)
+ :type replace_organization_mfa_request: ReplaceOrganizationMFARequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_organization_mfa_serialize(
+ org_code=org_code,
+ replace_organization_mfa_request=replace_organization_mfa_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def replace_organization_mfa_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ replace_organization_mfa_request: Annotated[ReplaceOrganizationMFARequest, Field(description="MFA details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Replace Organization MFA Configuration
+
+ Replace Organization MFA Configuration. update:organization_mfa
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param replace_organization_mfa_request: MFA details. (required)
+ :type replace_organization_mfa_request: ReplaceOrganizationMFARequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_organization_mfa_serialize(
+ org_code=org_code,
+ replace_organization_mfa_request=replace_organization_mfa_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def replace_organization_mfa_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ replace_organization_mfa_request: Annotated[ReplaceOrganizationMFARequest, Field(description="MFA details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Replace Organization MFA Configuration
+
+ Replace Organization MFA Configuration. update:organization_mfa
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param replace_organization_mfa_request: MFA details. (required)
+ :type replace_organization_mfa_request: ReplaceOrganizationMFARequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._replace_organization_mfa_serialize(
+ org_code=org_code,
+ replace_organization_mfa_request=replace_organization_mfa_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _replace_organization_mfa_serialize(
+ self,
+ org_code,
+ replace_organization_mfa_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if replace_organization_mfa_request is not None:
+ _body_params = replace_organization_mfa_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/organizations/{org_code}/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def reset_org_user_mfa(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ factor_id: Annotated[StrictStr, Field(description="The identifier for the MFA factor")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Reset specific organization MFA for a user
+
+ Reset a specific organization MFA factor for a user. delete:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param factor_id: The identifier for the MFA factor (required)
+ :type factor_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_org_user_mfa_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ factor_id=factor_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def reset_org_user_mfa_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ factor_id: Annotated[StrictStr, Field(description="The identifier for the MFA factor")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Reset specific organization MFA for a user
+
+ Reset a specific organization MFA factor for a user. delete:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param factor_id: The identifier for the MFA factor (required)
+ :type factor_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_org_user_mfa_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ factor_id=factor_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def reset_org_user_mfa_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ factor_id: Annotated[StrictStr, Field(description="The identifier for the MFA factor")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Reset specific organization MFA for a user
+
+ Reset a specific organization MFA factor for a user. delete:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param factor_id: The identifier for the MFA factor (required)
+ :type factor_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_org_user_mfa_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ factor_id=factor_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _reset_org_user_mfa_serialize(
+ self,
+ org_code,
+ user_id,
+ factor_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if factor_id is not None:
+ _path_params['factor_id'] = factor_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/mfa/{factor_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def reset_org_user_mfa_all(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Reset all organization MFA for a user
+
+ Reset all organization MFA factors for a user. delete:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_org_user_mfa_all_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def reset_org_user_mfa_all_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Reset all organization MFA for a user
+
+ Reset all organization MFA factors for a user. delete:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_org_user_mfa_all_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def reset_org_user_mfa_all_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Reset all organization MFA for a user
+
+ Reset all organization MFA factors for a user. delete:organization_user_mfa
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_org_user_mfa_all_serialize(
+ org_code=org_code,
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _reset_org_user_mfa_all_serialize(
+ self,
+ org_code,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/organizations/{org_code}/users/{user_id}/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"billing\".")] = None,
+ update_organization_request: Annotated[Optional[UpdateOrganizationRequest], Field(description="Organization details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Organization
+
+ Update an organization. update:organizations
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param expand: Specify additional data to retrieve. Use \"billing\".
+ :type expand: str
+ :param update_organization_request: Organization details.
+ :type update_organization_request: UpdateOrganizationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_serialize(
+ org_code=org_code,
+ expand=expand,
+ update_organization_request=update_organization_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"billing\".")] = None,
+ update_organization_request: Annotated[Optional[UpdateOrganizationRequest], Field(description="Organization details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Organization
+
+ Update an organization. update:organizations
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param expand: Specify additional data to retrieve. Use \"billing\".
+ :type expand: str
+ :param update_organization_request: Organization details.
+ :type update_organization_request: UpdateOrganizationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_serialize(
+ org_code=org_code,
+ expand=expand,
+ update_organization_request=update_organization_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"billing\".")] = None,
+ update_organization_request: Annotated[Optional[UpdateOrganizationRequest], Field(description="Organization details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Organization
+
+ Update an organization. update:organizations
+
+ :param org_code: The identifier for the organization. (required)
+ :type org_code: str
+ :param expand: Specify additional data to retrieve. Use \"billing\".
+ :type expand: str
+ :param update_organization_request: Organization details.
+ :type update_organization_request: UpdateOrganizationRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_serialize(
+ org_code=org_code,
+ expand=expand,
+ update_organization_request=update_organization_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_serialize(
+ self,
+ org_code,
+ expand,
+ update_organization_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_organization_request is not None:
+ _body_params = update_organization_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/organization/{org_code}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization_feature_flag_override(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag")],
+ value: Annotated[StrictStr, Field(description="Override value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Organization Feature Flag Override
+
+ Update organization feature flag override. update:organization_feature_flags
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param feature_flag_key: The identifier for the feature flag (required)
+ :type feature_flag_key: str
+ :param value: Override value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_feature_flag_override_serialize(
+ org_code=org_code,
+ feature_flag_key=feature_flag_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_feature_flag_override_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag")],
+ value: Annotated[StrictStr, Field(description="Override value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Organization Feature Flag Override
+
+ Update organization feature flag override. update:organization_feature_flags
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param feature_flag_key: The identifier for the feature flag (required)
+ :type feature_flag_key: str
+ :param value: Override value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_feature_flag_override_serialize(
+ org_code=org_code,
+ feature_flag_key=feature_flag_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_feature_flag_override_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag")],
+ value: Annotated[StrictStr, Field(description="Override value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Organization Feature Flag Override
+
+ Update organization feature flag override. update:organization_feature_flags
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param feature_flag_key: The identifier for the feature flag (required)
+ :type feature_flag_key: str
+ :param value: Override value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_feature_flag_override_serialize(
+ org_code=org_code,
+ feature_flag_key=feature_flag_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_feature_flag_override_serialize(
+ self,
+ org_code,
+ feature_flag_key,
+ value,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ if value is not None:
+
+ _query_params.append(('value', value))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization_properties(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ update_organization_properties_request: Annotated[UpdateOrganizationPropertiesRequest, Field(description="Properties to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Organization Property values
+
+ Update organization property values. update:organization_properties
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param update_organization_properties_request: Properties to update. (required)
+ :type update_organization_properties_request: UpdateOrganizationPropertiesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_properties_serialize(
+ org_code=org_code,
+ update_organization_properties_request=update_organization_properties_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_properties_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ update_organization_properties_request: Annotated[UpdateOrganizationPropertiesRequest, Field(description="Properties to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Organization Property values
+
+ Update organization property values. update:organization_properties
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param update_organization_properties_request: Properties to update. (required)
+ :type update_organization_properties_request: UpdateOrganizationPropertiesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_properties_serialize(
+ org_code=org_code,
+ update_organization_properties_request=update_organization_properties_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_properties_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ update_organization_properties_request: Annotated[UpdateOrganizationPropertiesRequest, Field(description="Properties to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Organization Property values
+
+ Update organization property values. update:organization_properties
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param update_organization_properties_request: Properties to update. (required)
+ :type update_organization_properties_request: UpdateOrganizationPropertiesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_properties_serialize(
+ org_code=org_code,
+ update_organization_properties_request=update_organization_properties_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_properties_serialize(
+ self,
+ org_code,
+ update_organization_properties_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_organization_properties_request is not None:
+ _body_params = update_organization_properties_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/organizations/{org_code}/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization_property(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ property_key: Annotated[StrictStr, Field(description="The identifier for the property")],
+ value: Annotated[StrictStr, Field(description="The new property value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Organization Property value
+
+ Update organization property value. update:organization_properties
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param property_key: The identifier for the property (required)
+ :type property_key: str
+ :param value: The new property value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_property_serialize(
+ org_code=org_code,
+ property_key=property_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_property_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ property_key: Annotated[StrictStr, Field(description="The identifier for the property")],
+ value: Annotated[StrictStr, Field(description="The new property value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Organization Property value
+
+ Update organization property value. update:organization_properties
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param property_key: The identifier for the property (required)
+ :type property_key: str
+ :param value: The new property value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_property_serialize(
+ org_code=org_code,
+ property_key=property_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_property_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The identifier for the organization")],
+ property_key: Annotated[StrictStr, Field(description="The identifier for the property")],
+ value: Annotated[StrictStr, Field(description="The new property value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Organization Property value
+
+ Update organization property value. update:organization_properties
+
+ :param org_code: The identifier for the organization (required)
+ :type org_code: str
+ :param property_key: The identifier for the property (required)
+ :type property_key: str
+ :param value: The new property value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_property_serialize(
+ org_code=org_code,
+ property_key=property_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_property_serialize(
+ self,
+ org_code,
+ property_key,
+ value,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ if property_key is not None:
+ _path_params['property_key'] = property_key
+ # process the query parameters
+ if value is not None:
+
+ _query_params.append(('value', value))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/organizations/{org_code}/properties/{property_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization_sessions(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ update_organization_sessions_request: Annotated[UpdateOrganizationSessionsRequest, Field(description="Organization session configuration.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update organization session configuration
+
+ Update the organization's session configuration. update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param update_organization_sessions_request: Organization session configuration. (required)
+ :type update_organization_sessions_request: UpdateOrganizationSessionsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_sessions_serialize(
+ org_code=org_code,
+ update_organization_sessions_request=update_organization_sessions_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_sessions_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ update_organization_sessions_request: Annotated[UpdateOrganizationSessionsRequest, Field(description="Organization session configuration.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update organization session configuration
+
+ Update the organization's session configuration. update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param update_organization_sessions_request: Organization session configuration. (required)
+ :type update_organization_sessions_request: UpdateOrganizationSessionsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_sessions_serialize(
+ org_code=org_code,
+ update_organization_sessions_request=update_organization_sessions_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_sessions_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ update_organization_sessions_request: Annotated[UpdateOrganizationSessionsRequest, Field(description="Organization session configuration.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update organization session configuration
+
+ Update the organization's session configuration. update:organizations
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param update_organization_sessions_request: Organization session configuration. (required)
+ :type update_organization_sessions_request: UpdateOrganizationSessionsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_sessions_serialize(
+ org_code=org_code,
+ update_organization_sessions_request=update_organization_sessions_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_sessions_serialize(
+ self,
+ org_code,
+ update_organization_sessions_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_organization_sessions_request is not None:
+ _body_params = update_organization_sessions_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/organizations/{org_code}/sessions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization_users(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ update_organization_users_request: Optional[UpdateOrganizationUsersRequest] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UpdateOrganizationUsersResponse:
+ """Update Organization Users
+
+ Update users that belong to an organization. update:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param update_organization_users_request:
+ :type update_organization_users_request: UpdateOrganizationUsersRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_users_serialize(
+ org_code=org_code,
+ update_organization_users_request=update_organization_users_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateOrganizationUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_users_with_http_info(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ update_organization_users_request: Optional[UpdateOrganizationUsersRequest] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UpdateOrganizationUsersResponse]:
+ """Update Organization Users
+
+ Update users that belong to an organization. update:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param update_organization_users_request:
+ :type update_organization_users_request: UpdateOrganizationUsersRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_users_serialize(
+ org_code=org_code,
+ update_organization_users_request=update_organization_users_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateOrganizationUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_users_without_preload_content(
+ self,
+ org_code: Annotated[StrictStr, Field(description="The organization's code.")],
+ update_organization_users_request: Optional[UpdateOrganizationUsersRequest] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Organization Users
+
+ Update users that belong to an organization. update:organization_users
+
+ :param org_code: The organization's code. (required)
+ :type org_code: str
+ :param update_organization_users_request:
+ :type update_organization_users_request: UpdateOrganizationUsersRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_users_serialize(
+ org_code=org_code,
+ update_organization_users_request=update_organization_users_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateOrganizationUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_users_serialize(
+ self,
+ org_code,
+ update_organization_users_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_code is not None:
+ _path_params['org_code'] = org_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_organization_users_request is not None:
+ _body_params = update_organization_users_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/organizations/{org_code}/users',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/permissions_api.py b/kinde_sdk/api/permissions_api.py
new file mode 100644
index 00000000..80719a7f
--- /dev/null
+++ b/kinde_sdk/api/permissions_api.py
@@ -0,0 +1,1485 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+from kinde_sdk.models.get_permissions_response import GetPermissionsResponse
+from kinde_sdk.models.get_user_permissions_response import GetUserPermissionsResponse
+from kinde_sdk.models.success_response import SuccessResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class PermissionsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_permission(
+ self,
+ create_permission_request: Annotated[Optional[CreatePermissionRequest], Field(description="Permission details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Create Permission
+
+ Create a new permission. create:permissions
+
+ :param create_permission_request: Permission details.
+ :type create_permission_request: CreatePermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_permission_serialize(
+ create_permission_request=create_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_permission_with_http_info(
+ self,
+ create_permission_request: Annotated[Optional[CreatePermissionRequest], Field(description="Permission details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Create Permission
+
+ Create a new permission. create:permissions
+
+ :param create_permission_request: Permission details.
+ :type create_permission_request: CreatePermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_permission_serialize(
+ create_permission_request=create_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_permission_without_preload_content(
+ self,
+ create_permission_request: Annotated[Optional[CreatePermissionRequest], Field(description="Permission details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create Permission
+
+ Create a new permission. create:permissions
+
+ :param create_permission_request: Permission details.
+ :type create_permission_request: CreatePermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_permission_serialize(
+ create_permission_request=create_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_permission_serialize(
+ self,
+ create_permission_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_permission_request is not None:
+ _body_params = create_permission_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_permission(
+ self,
+ permission_id: Annotated[StrictStr, Field(description="The identifier for the permission.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Permission
+
+ Delete permission delete:permissions
+
+ :param permission_id: The identifier for the permission. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_permission_serialize(
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_permission_with_http_info(
+ self,
+ permission_id: Annotated[StrictStr, Field(description="The identifier for the permission.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Permission
+
+ Delete permission delete:permissions
+
+ :param permission_id: The identifier for the permission. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_permission_serialize(
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_permission_without_preload_content(
+ self,
+ permission_id: Annotated[StrictStr, Field(description="The identifier for the permission.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Permission
+
+ Delete permission delete:permissions
+
+ :param permission_id: The identifier for the permission. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_permission_serialize(
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_permission_serialize(
+ self,
+ permission_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if permission_id is not None:
+ _path_params['permission_id'] = permission_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/permissions/{permission_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_permissions(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPermissionsResponse:
+ """List Permissions
+
+ The returned list can be sorted by permission name or permission ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:permissions
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_permissions_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPermissionsResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_permissions_with_http_info(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPermissionsResponse]:
+ """List Permissions
+
+ The returned list can be sorted by permission name or permission ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:permissions
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_permissions_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPermissionsResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_permissions_without_preload_content(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Permissions
+
+ The returned list can be sorted by permission name or permission ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:permissions
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_permissions_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPermissionsResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_permissions_serialize(
+ self,
+ sort,
+ page_size,
+ next_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_permissions(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the permission to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetUserPermissionsResponse:
+ """Get permissions
+
+ Returns all the permissions the user has
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the permission to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_permissions_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserPermissionsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_permissions_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the permission to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetUserPermissionsResponse]:
+ """Get permissions
+
+ Returns all the permissions the user has
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the permission to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_permissions_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserPermissionsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_permissions_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the permission to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get permissions
+
+ Returns all the permissions the user has
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the permission to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_permissions_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserPermissionsResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_permissions_serialize(
+ self,
+ page_size,
+ starting_after,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/account_api/v1/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_permissions(
+ self,
+ permission_id: Annotated[StrictStr, Field(description="The identifier for the permission.")],
+ create_permission_request: Annotated[Optional[CreatePermissionRequest], Field(description="Permission details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Permission
+
+ Update permission update:permissions
+
+ :param permission_id: The identifier for the permission. (required)
+ :type permission_id: str
+ :param create_permission_request: Permission details.
+ :type create_permission_request: CreatePermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_permissions_serialize(
+ permission_id=permission_id,
+ create_permission_request=create_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_permissions_with_http_info(
+ self,
+ permission_id: Annotated[StrictStr, Field(description="The identifier for the permission.")],
+ create_permission_request: Annotated[Optional[CreatePermissionRequest], Field(description="Permission details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Permission
+
+ Update permission update:permissions
+
+ :param permission_id: The identifier for the permission. (required)
+ :type permission_id: str
+ :param create_permission_request: Permission details.
+ :type create_permission_request: CreatePermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_permissions_serialize(
+ permission_id=permission_id,
+ create_permission_request=create_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_permissions_without_preload_content(
+ self,
+ permission_id: Annotated[StrictStr, Field(description="The identifier for the permission.")],
+ create_permission_request: Annotated[Optional[CreatePermissionRequest], Field(description="Permission details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Permission
+
+ Update permission update:permissions
+
+ :param permission_id: The identifier for the permission. (required)
+ :type permission_id: str
+ :param create_permission_request: Permission details.
+ :type create_permission_request: CreatePermissionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_permissions_serialize(
+ permission_id=permission_id,
+ create_permission_request=create_permission_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_permissions_serialize(
+ self,
+ permission_id,
+ create_permission_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if permission_id is not None:
+ _path_params['permission_id'] = permission_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_permission_request is not None:
+ _body_params = create_permission_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/permissions/{permission_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/properties_api.py b/kinde_sdk/api/properties_api.py
new file mode 100644
index 00000000..c1fe401c
--- /dev/null
+++ b/kinde_sdk/api/properties_api.py
@@ -0,0 +1,1509 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_property_request import CreatePropertyRequest
+from kinde_sdk.models.create_property_response import CreatePropertyResponse
+from kinde_sdk.models.get_properties_response import GetPropertiesResponse
+from kinde_sdk.models.get_user_properties_response import GetUserPropertiesResponse
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_property_request import UpdatePropertyRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class PropertiesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_property(
+ self,
+ create_property_request: Annotated[CreatePropertyRequest, Field(description="Property details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreatePropertyResponse:
+ """Create Property
+
+ Create property. create:properties
+
+ :param create_property_request: Property details. (required)
+ :type create_property_request: CreatePropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_property_serialize(
+ create_property_request=create_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreatePropertyResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_property_with_http_info(
+ self,
+ create_property_request: Annotated[CreatePropertyRequest, Field(description="Property details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreatePropertyResponse]:
+ """Create Property
+
+ Create property. create:properties
+
+ :param create_property_request: Property details. (required)
+ :type create_property_request: CreatePropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_property_serialize(
+ create_property_request=create_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreatePropertyResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_property_without_preload_content(
+ self,
+ create_property_request: Annotated[CreatePropertyRequest, Field(description="Property details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create Property
+
+ Create property. create:properties
+
+ :param create_property_request: Property details. (required)
+ :type create_property_request: CreatePropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_property_serialize(
+ create_property_request=create_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreatePropertyResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_property_serialize(
+ self,
+ create_property_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_property_request is not None:
+ _body_params = create_property_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_property(
+ self,
+ property_id: Annotated[StrictStr, Field(description="The unique identifier for the property.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete Property
+
+ Delete property. delete:properties
+
+ :param property_id: The unique identifier for the property. (required)
+ :type property_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_property_serialize(
+ property_id=property_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_property_with_http_info(
+ self,
+ property_id: Annotated[StrictStr, Field(description="The unique identifier for the property.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete Property
+
+ Delete property. delete:properties
+
+ :param property_id: The unique identifier for the property. (required)
+ :type property_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_property_serialize(
+ property_id=property_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_property_without_preload_content(
+ self,
+ property_id: Annotated[StrictStr, Field(description="The unique identifier for the property.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Property
+
+ Delete property. delete:properties
+
+ :param property_id: The unique identifier for the property. (required)
+ :type property_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_property_serialize(
+ property_id=property_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_property_serialize(
+ self,
+ property_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if property_id is not None:
+ _path_params['property_id'] = property_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/properties/{property_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_properties(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the property to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the property to end before.")] = None,
+ context: Annotated[Optional[StrictStr], Field(description="Filter results by user, organization or application context")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPropertiesResponse:
+ """List properties
+
+ Returns a list of properties read:properties
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the property to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the property to end before.
+ :type ending_before: str
+ :param context: Filter results by user, organization or application context
+ :type context: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_properties_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ context=context,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertiesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_properties_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the property to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the property to end before.")] = None,
+ context: Annotated[Optional[StrictStr], Field(description="Filter results by user, organization or application context")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPropertiesResponse]:
+ """List properties
+
+ Returns a list of properties read:properties
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the property to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the property to end before.
+ :type ending_before: str
+ :param context: Filter results by user, organization or application context
+ :type context: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_properties_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ context=context,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertiesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_properties_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the property to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the property to end before.")] = None,
+ context: Annotated[Optional[StrictStr], Field(description="Filter results by user, organization or application context")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List properties
+
+ Returns a list of properties read:properties
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the property to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the property to end before.
+ :type ending_before: str
+ :param context: Filter results by user, organization or application context
+ :type context: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_properties_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ context=context,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertiesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_properties_serialize(
+ self,
+ page_size,
+ starting_after,
+ ending_before,
+ context,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ if context is not None:
+
+ _query_params.append(('context', context))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_properties(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the property to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetUserPropertiesResponse:
+ """Get properties
+
+ Returns all properties for the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the property to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_properties_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserPropertiesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_properties_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the property to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetUserPropertiesResponse]:
+ """Get properties
+
+ Returns all properties for the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the property to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_properties_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserPropertiesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_properties_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the property to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get properties
+
+ Returns all properties for the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the property to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_properties_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserPropertiesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_properties_serialize(
+ self,
+ page_size,
+ starting_after,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/account_api/v1/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_property(
+ self,
+ property_id: Annotated[StrictStr, Field(description="The unique identifier for the property.")],
+ update_property_request: Annotated[UpdatePropertyRequest, Field(description="The fields of the property to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Property
+
+ Update property. update:properties
+
+ :param property_id: The unique identifier for the property. (required)
+ :type property_id: str
+ :param update_property_request: The fields of the property to update. (required)
+ :type update_property_request: UpdatePropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_property_serialize(
+ property_id=property_id,
+ update_property_request=update_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_property_with_http_info(
+ self,
+ property_id: Annotated[StrictStr, Field(description="The unique identifier for the property.")],
+ update_property_request: Annotated[UpdatePropertyRequest, Field(description="The fields of the property to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Property
+
+ Update property. update:properties
+
+ :param property_id: The unique identifier for the property. (required)
+ :type property_id: str
+ :param update_property_request: The fields of the property to update. (required)
+ :type update_property_request: UpdatePropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_property_serialize(
+ property_id=property_id,
+ update_property_request=update_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_property_without_preload_content(
+ self,
+ property_id: Annotated[StrictStr, Field(description="The unique identifier for the property.")],
+ update_property_request: Annotated[UpdatePropertyRequest, Field(description="The fields of the property to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Property
+
+ Update property. update:properties
+
+ :param property_id: The unique identifier for the property. (required)
+ :type property_id: str
+ :param update_property_request: The fields of the property to update. (required)
+ :type update_property_request: UpdatePropertyRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_property_serialize(
+ property_id=property_id,
+ update_property_request=update_property_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_property_serialize(
+ self,
+ property_id,
+ update_property_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if property_id is not None:
+ _path_params['property_id'] = property_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_property_request is not None:
+ _body_params = update_property_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/properties/{property_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/property_categories_api.py b/kinde_sdk/api/property_categories_api.py
new file mode 100644
index 00000000..bca46949
--- /dev/null
+++ b/kinde_sdk/api/property_categories_api.py
@@ -0,0 +1,951 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_category_request import CreateCategoryRequest
+from kinde_sdk.models.create_category_response import CreateCategoryResponse
+from kinde_sdk.models.get_categories_response import GetCategoriesResponse
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_category_request import UpdateCategoryRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class PropertyCategoriesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_category(
+ self,
+ create_category_request: Annotated[CreateCategoryRequest, Field(description="Category details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateCategoryResponse:
+ """Create Category
+
+ Create category. create:property_categories
+
+ :param create_category_request: Category details. (required)
+ :type create_category_request: CreateCategoryRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_category_serialize(
+ create_category_request=create_category_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateCategoryResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_category_with_http_info(
+ self,
+ create_category_request: Annotated[CreateCategoryRequest, Field(description="Category details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateCategoryResponse]:
+ """Create Category
+
+ Create category. create:property_categories
+
+ :param create_category_request: Category details. (required)
+ :type create_category_request: CreateCategoryRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_category_serialize(
+ create_category_request=create_category_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateCategoryResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_category_without_preload_content(
+ self,
+ create_category_request: Annotated[CreateCategoryRequest, Field(description="Category details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create Category
+
+ Create category. create:property_categories
+
+ :param create_category_request: Category details. (required)
+ :type create_category_request: CreateCategoryRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_category_serialize(
+ create_category_request=create_category_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateCategoryResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_category_serialize(
+ self,
+ create_category_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_category_request is not None:
+ _body_params = create_category_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/property_categories',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_categories(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the category to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the category to end before.")] = None,
+ context: Annotated[Optional[StrictStr], Field(description="Filter the results by User or Organization context")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetCategoriesResponse:
+ """List categories
+
+ Returns a list of categories. read:property_categories
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the category to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the category to end before.
+ :type ending_before: str
+ :param context: Filter the results by User or Organization context
+ :type context: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_categories_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ context=context,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetCategoriesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_categories_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the category to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the category to end before.")] = None,
+ context: Annotated[Optional[StrictStr], Field(description="Filter the results by User or Organization context")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetCategoriesResponse]:
+ """List categories
+
+ Returns a list of categories. read:property_categories
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the category to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the category to end before.
+ :type ending_before: str
+ :param context: Filter the results by User or Organization context
+ :type context: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_categories_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ context=context,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetCategoriesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_categories_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the category to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the category to end before.")] = None,
+ context: Annotated[Optional[StrictStr], Field(description="Filter the results by User or Organization context")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List categories
+
+ Returns a list of categories. read:property_categories
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the category to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the category to end before.
+ :type ending_before: str
+ :param context: Filter the results by User or Organization context
+ :type context: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_categories_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ context=context,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetCategoriesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_categories_serialize(
+ self,
+ page_size,
+ starting_after,
+ ending_before,
+ context,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ if context is not None:
+
+ _query_params.append(('context', context))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/property_categories',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_category(
+ self,
+ category_id: Annotated[StrictStr, Field(description="The unique identifier for the category.")],
+ update_category_request: Annotated[UpdateCategoryRequest, Field(description="The fields of the category to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Category
+
+ Update category. update:property_categories
+
+ :param category_id: The unique identifier for the category. (required)
+ :type category_id: str
+ :param update_category_request: The fields of the category to update. (required)
+ :type update_category_request: UpdateCategoryRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_category_serialize(
+ category_id=category_id,
+ update_category_request=update_category_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_category_with_http_info(
+ self,
+ category_id: Annotated[StrictStr, Field(description="The unique identifier for the category.")],
+ update_category_request: Annotated[UpdateCategoryRequest, Field(description="The fields of the category to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Category
+
+ Update category. update:property_categories
+
+ :param category_id: The unique identifier for the category. (required)
+ :type category_id: str
+ :param update_category_request: The fields of the category to update. (required)
+ :type update_category_request: UpdateCategoryRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_category_serialize(
+ category_id=category_id,
+ update_category_request=update_category_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_category_without_preload_content(
+ self,
+ category_id: Annotated[StrictStr, Field(description="The unique identifier for the category.")],
+ update_category_request: Annotated[UpdateCategoryRequest, Field(description="The fields of the category to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Category
+
+ Update category. update:property_categories
+
+ :param category_id: The unique identifier for the category. (required)
+ :type category_id: str
+ :param update_category_request: The fields of the category to update. (required)
+ :type update_category_request: UpdateCategoryRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_category_serialize(
+ category_id=category_id,
+ update_category_request=update_category_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_category_serialize(
+ self,
+ category_id,
+ update_category_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if category_id is not None:
+ _path_params['category_id'] = category_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_category_request is not None:
+ _body_params = update_category_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/property_categories/{category_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/roles_api.py b/kinde_sdk/api/roles_api.py
new file mode 100644
index 00000000..92e9fabd
--- /dev/null
+++ b/kinde_sdk/api/roles_api.py
@@ -0,0 +1,3524 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.add_role_scope_request import AddRoleScopeRequest
+from kinde_sdk.models.add_role_scope_response import AddRoleScopeResponse
+from kinde_sdk.models.create_role_request import CreateRoleRequest
+from kinde_sdk.models.create_roles_response import CreateRolesResponse
+from kinde_sdk.models.delete_role_scope_response import DeleteRoleScopeResponse
+from kinde_sdk.models.get_role_response import GetRoleResponse
+from kinde_sdk.models.get_roles_response import GetRolesResponse
+from kinde_sdk.models.get_user_roles_response import GetUserRolesResponse
+from kinde_sdk.models.role_permissions_response import RolePermissionsResponse
+from kinde_sdk.models.role_scopes_response import RoleScopesResponse
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_role_permissions_request import UpdateRolePermissionsRequest
+from kinde_sdk.models.update_role_permissions_response import UpdateRolePermissionsResponse
+from kinde_sdk.models.update_roles_request import UpdateRolesRequest
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class RolesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def add_role_scope(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ add_role_scope_request: Annotated[AddRoleScopeRequest, Field(description="Add scope to role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AddRoleScopeResponse:
+ """Add role scope
+
+ Add scope to role. create:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param add_role_scope_request: Add scope to role. (required)
+ :type add_role_scope_request: AddRoleScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_role_scope_serialize(
+ role_id=role_id,
+ add_role_scope_request=add_role_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "AddRoleScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_role_scope_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ add_role_scope_request: Annotated[AddRoleScopeRequest, Field(description="Add scope to role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AddRoleScopeResponse]:
+ """Add role scope
+
+ Add scope to role. create:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param add_role_scope_request: Add scope to role. (required)
+ :type add_role_scope_request: AddRoleScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_role_scope_serialize(
+ role_id=role_id,
+ add_role_scope_request=add_role_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "AddRoleScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_role_scope_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ add_role_scope_request: Annotated[AddRoleScopeRequest, Field(description="Add scope to role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add role scope
+
+ Add scope to role. create:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param add_role_scope_request: Add scope to role. (required)
+ :type add_role_scope_request: AddRoleScopeRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_role_scope_serialize(
+ role_id=role_id,
+ add_role_scope_request=add_role_scope_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "AddRoleScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_role_scope_serialize(
+ self,
+ role_id,
+ add_role_scope_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if add_role_scope_request is not None:
+ _body_params = add_role_scope_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/roles/{role_id}/scopes',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def create_role(
+ self,
+ create_role_request: Annotated[Optional[CreateRoleRequest], Field(description="Role details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateRolesResponse:
+ """Create role
+
+ Create role. create:roles
+
+ :param create_role_request: Role details.
+ :type create_role_request: CreateRoleRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_role_serialize(
+ create_role_request=create_role_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateRolesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_role_with_http_info(
+ self,
+ create_role_request: Annotated[Optional[CreateRoleRequest], Field(description="Role details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateRolesResponse]:
+ """Create role
+
+ Create role. create:roles
+
+ :param create_role_request: Role details.
+ :type create_role_request: CreateRoleRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_role_serialize(
+ create_role_request=create_role_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateRolesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_role_without_preload_content(
+ self,
+ create_role_request: Annotated[Optional[CreateRoleRequest], Field(description="Role details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create role
+
+ Create role. create:roles
+
+ :param create_role_request: Role details.
+ :type create_role_request: CreateRoleRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_role_serialize(
+ create_role_request=create_role_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateRolesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_role_serialize(
+ self,
+ create_role_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_role_request is not None:
+ _body_params = create_role_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/roles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_role(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete role
+
+ Delete role delete:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_role_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_role_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete role
+
+ Delete role delete:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_role_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_role_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete role
+
+ Delete role delete:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_role_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_role_serialize(
+ self,
+ role_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/roles/{role_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_role_scope(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ scope_id: Annotated[StrictStr, Field(description="The scope id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DeleteRoleScopeResponse:
+ """Delete role scope
+
+ Delete scope from role. delete:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param scope_id: The scope id. (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_role_scope_serialize(
+ role_id=role_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteRoleScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_role_scope_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ scope_id: Annotated[StrictStr, Field(description="The scope id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DeleteRoleScopeResponse]:
+ """Delete role scope
+
+ Delete scope from role. delete:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param scope_id: The scope id. (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_role_scope_serialize(
+ role_id=role_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteRoleScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_role_scope_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ scope_id: Annotated[StrictStr, Field(description="The scope id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete role scope
+
+ Delete scope from role. delete:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param scope_id: The scope id. (required)
+ :type scope_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_role_scope_serialize(
+ role_id=role_id,
+ scope_id=scope_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteRoleScopeResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_role_scope_serialize(
+ self,
+ role_id,
+ scope_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ if scope_id is not None:
+ _path_params['scope_id'] = scope_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/roles/{role_id}/scopes/{scope_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_role(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetRoleResponse:
+ """Get role
+
+ Get a role read:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetRoleResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_role_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetRoleResponse]:
+ """Get role
+
+ Get a role read:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetRoleResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_role_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get role
+
+ Get a role read:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetRoleResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_role_serialize(
+ self,
+ role_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/roles/{role_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_role_permissions(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role's public id.")],
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RolePermissionsResponse:
+ """Get role permissions
+
+ Get permissions for a role. read:role_permissions
+
+ :param role_id: The role's public id. (required)
+ :type role_id: str
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_permissions_serialize(
+ role_id=role_id,
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RolePermissionsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_role_permissions_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role's public id.")],
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[RolePermissionsResponse]:
+ """Get role permissions
+
+ Get permissions for a role. read:role_permissions
+
+ :param role_id: The role's public id. (required)
+ :type role_id: str
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_permissions_serialize(
+ role_id=role_id,
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RolePermissionsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_role_permissions_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role's public id.")],
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get role permissions
+
+ Get permissions for a role. read:role_permissions
+
+ :param role_id: The role's public id. (required)
+ :type role_id: str
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_permissions_serialize(
+ role_id=role_id,
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RolePermissionsResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_role_permissions_serialize(
+ self,
+ role_id,
+ sort,
+ page_size,
+ next_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/roles/{role_id}/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_role_scopes(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RoleScopesResponse:
+ """Get role scopes
+
+ Get scopes for a role. read:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_scopes_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RoleScopesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_role_scopes_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[RoleScopesResponse]:
+ """Get role scopes
+
+ Get scopes for a role. read:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_scopes_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RoleScopesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_role_scopes_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get role scopes
+
+ Get scopes for a role. read:role_scopes
+
+ :param role_id: The role id. (required)
+ :type role_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_role_scopes_serialize(
+ role_id=role_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RoleScopesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_role_scopes_serialize(
+ self,
+ role_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/roles/{role_id}/scopes',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_roles(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetRolesResponse:
+ """List roles
+
+ The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:roles
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_roles_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetRolesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_roles_with_http_info(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetRolesResponse]:
+ """List roles
+
+ The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:roles
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_roles_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetRolesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_roles_without_preload_content(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List roles
+
+ The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:roles
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_roles_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetRolesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_roles_serialize(
+ self,
+ sort,
+ page_size,
+ next_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/roles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_roles(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the role to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetUserRolesResponse:
+ """Get roles
+
+ Returns all roles for the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the role to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_roles_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserRolesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_roles_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the role to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetUserRolesResponse]:
+ """Get roles
+
+ Returns all roles for the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the role to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_roles_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserRolesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_roles_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the role to start after.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get roles
+
+ Returns all roles for the user
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param starting_after: The ID of the role to start after.
+ :type starting_after: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_roles_serialize(
+ page_size=page_size,
+ starting_after=starting_after,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserRolesResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_roles_serialize(
+ self,
+ page_size,
+ starting_after,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/account_api/v1/roles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def remove_role_permission(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role's public id.")],
+ permission_id: Annotated[StrictStr, Field(description="The permission's public id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Remove role permission
+
+ Remove a permission from a role. delete:role_permissions
+
+ :param role_id: The role's public id. (required)
+ :type role_id: str
+ :param permission_id: The permission's public id. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_role_permission_serialize(
+ role_id=role_id,
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def remove_role_permission_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role's public id.")],
+ permission_id: Annotated[StrictStr, Field(description="The permission's public id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Remove role permission
+
+ Remove a permission from a role. delete:role_permissions
+
+ :param role_id: The role's public id. (required)
+ :type role_id: str
+ :param permission_id: The permission's public id. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_role_permission_serialize(
+ role_id=role_id,
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def remove_role_permission_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The role's public id.")],
+ permission_id: Annotated[StrictStr, Field(description="The permission's public id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Remove role permission
+
+ Remove a permission from a role. delete:role_permissions
+
+ :param role_id: The role's public id. (required)
+ :type role_id: str
+ :param permission_id: The permission's public id. (required)
+ :type permission_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._remove_role_permission_serialize(
+ role_id=role_id,
+ permission_id=permission_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _remove_role_permission_serialize(
+ self,
+ role_id,
+ permission_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ if permission_id is not None:
+ _path_params['permission_id'] = permission_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/roles/{role_id}/permissions/{permission_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_role_permissions(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ update_role_permissions_request: UpdateRolePermissionsRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UpdateRolePermissionsResponse:
+ """Update role permissions
+
+ Update role permissions. update:role_permissions
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param update_role_permissions_request: (required)
+ :type update_role_permissions_request: UpdateRolePermissionsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_role_permissions_serialize(
+ role_id=role_id,
+ update_role_permissions_request=update_role_permissions_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateRolePermissionsResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_role_permissions_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ update_role_permissions_request: UpdateRolePermissionsRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UpdateRolePermissionsResponse]:
+ """Update role permissions
+
+ Update role permissions. update:role_permissions
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param update_role_permissions_request: (required)
+ :type update_role_permissions_request: UpdateRolePermissionsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_role_permissions_serialize(
+ role_id=role_id,
+ update_role_permissions_request=update_role_permissions_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateRolePermissionsResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_role_permissions_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ update_role_permissions_request: UpdateRolePermissionsRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update role permissions
+
+ Update role permissions. update:role_permissions
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param update_role_permissions_request: (required)
+ :type update_role_permissions_request: UpdateRolePermissionsRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_role_permissions_serialize(
+ role_id=role_id,
+ update_role_permissions_request=update_role_permissions_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateRolePermissionsResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_role_permissions_serialize(
+ self,
+ role_id,
+ update_role_permissions_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_role_permissions_request is not None:
+ _body_params = update_role_permissions_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/roles/{role_id}/permissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_roles(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ update_roles_request: Annotated[Optional[UpdateRolesRequest], Field(description="Role details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update role
+
+ Update a role update:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param update_roles_request: Role details.
+ :type update_roles_request: UpdateRolesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_roles_serialize(
+ role_id=role_id,
+ update_roles_request=update_roles_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_roles_with_http_info(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ update_roles_request: Annotated[Optional[UpdateRolesRequest], Field(description="Role details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update role
+
+ Update a role update:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param update_roles_request: Role details.
+ :type update_roles_request: UpdateRolesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_roles_serialize(
+ role_id=role_id,
+ update_roles_request=update_roles_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_roles_without_preload_content(
+ self,
+ role_id: Annotated[StrictStr, Field(description="The identifier for the role.")],
+ update_roles_request: Annotated[Optional[UpdateRolesRequest], Field(description="Role details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update role
+
+ Update a role update:roles
+
+ :param role_id: The identifier for the role. (required)
+ :type role_id: str
+ :param update_roles_request: Role details.
+ :type update_roles_request: UpdateRolesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_roles_serialize(
+ role_id=role_id,
+ update_roles_request=update_roles_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_roles_serialize(
+ self,
+ role_id,
+ update_roles_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if role_id is not None:
+ _path_params['role_id'] = role_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_roles_request is not None:
+ _body_params = update_roles_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/roles/{role_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/search_api.py b/kinde_sdk/api/search_api.py
new file mode 100644
index 00000000..2cae07bf
--- /dev/null
+++ b/kinde_sdk/api/search_api.py
@@ -0,0 +1,397 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr
+from typing import Dict, List, Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.search_users_response import SearchUsersResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class SearchApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def search_users(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ query: Annotated[Optional[StrictStr], Field(description="Search the users by email or name. Use '*' to search all.")] = None,
+ properties: Optional[Dict[str, Dict[str, List[StrictStr]]]] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the user to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the user to end before.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SearchUsersResponse:
+ """Search users
+
+ Search for users based on the provided query string. Set query to '*' to filter by other parameters only. The number of records to return at a time can be controlled using the `page_size` query string parameter. read:users
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param query: Search the users by email or name. Use '*' to search all.
+ :type query: str
+ :param properties:
+ :type properties: Dict[str, List[str]]
+ :param starting_after: The ID of the user to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the user to end before.
+ :type ending_before: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_users_serialize(
+ page_size=page_size,
+ query=query,
+ properties=properties,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SearchUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def search_users_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ query: Annotated[Optional[StrictStr], Field(description="Search the users by email or name. Use '*' to search all.")] = None,
+ properties: Optional[Dict[str, Dict[str, List[StrictStr]]]] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the user to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the user to end before.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SearchUsersResponse]:
+ """Search users
+
+ Search for users based on the provided query string. Set query to '*' to filter by other parameters only. The number of records to return at a time can be controlled using the `page_size` query string parameter. read:users
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param query: Search the users by email or name. Use '*' to search all.
+ :type query: str
+ :param properties:
+ :type properties: Dict[str, List[str]]
+ :param starting_after: The ID of the user to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the user to end before.
+ :type ending_before: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_users_serialize(
+ page_size=page_size,
+ query=query,
+ properties=properties,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SearchUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def search_users_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ query: Annotated[Optional[StrictStr], Field(description="Search the users by email or name. Use '*' to search all.")] = None,
+ properties: Optional[Dict[str, Dict[str, List[StrictStr]]]] = None,
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the user to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the user to end before.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Search users
+
+ Search for users based on the provided query string. Set query to '*' to filter by other parameters only. The number of records to return at a time can be controlled using the `page_size` query string parameter. read:users
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param query: Search the users by email or name. Use '*' to search all.
+ :type query: str
+ :param properties:
+ :type properties: Dict[str, List[str]]
+ :param starting_after: The ID of the user to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the user to end before.
+ :type ending_before: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_users_serialize(
+ page_size=page_size,
+ query=query,
+ properties=properties,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SearchUsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _search_users_serialize(
+ self,
+ page_size,
+ query,
+ properties,
+ starting_after,
+ ending_before,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if query is not None:
+
+ _query_params.append(('query', query))
+
+ if properties is not None:
+
+ _query_params.append(('properties', properties))
+
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/search/users',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/self_serve_portal_api.py b/kinde_sdk/api/self_serve_portal_api.py
new file mode 100644
index 00000000..39486e6d
--- /dev/null
+++ b/kinde_sdk/api/self_serve_portal_api.py
@@ -0,0 +1,326 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.get_portal_link import GetPortalLink
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class SelfServePortalApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_portal_link(
+ self,
+ subnav: Annotated[Optional[StrictStr], Field(description="The area of the portal you want the user to land on")] = None,
+ return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect the user to after they have completed their actions in the portal.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPortalLink:
+ """Get self-serve portal link
+
+ Returns a link to the self-serve portal for the authenticated user. The user can use this link to manage their account, update their profile, and view their entitlements.
+
+ :param subnav: The area of the portal you want the user to land on
+ :type subnav: str
+ :param return_url: The URL to redirect the user to after they have completed their actions in the portal.
+ :type return_url: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_portal_link_serialize(
+ subnav=subnav,
+ return_url=return_url,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPortalLink",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_portal_link_with_http_info(
+ self,
+ subnav: Annotated[Optional[StrictStr], Field(description="The area of the portal you want the user to land on")] = None,
+ return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect the user to after they have completed their actions in the portal.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPortalLink]:
+ """Get self-serve portal link
+
+ Returns a link to the self-serve portal for the authenticated user. The user can use this link to manage their account, update their profile, and view their entitlements.
+
+ :param subnav: The area of the portal you want the user to land on
+ :type subnav: str
+ :param return_url: The URL to redirect the user to after they have completed their actions in the portal.
+ :type return_url: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_portal_link_serialize(
+ subnav=subnav,
+ return_url=return_url,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPortalLink",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_portal_link_without_preload_content(
+ self,
+ subnav: Annotated[Optional[StrictStr], Field(description="The area of the portal you want the user to land on")] = None,
+ return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect the user to after they have completed their actions in the portal.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get self-serve portal link
+
+ Returns a link to the self-serve portal for the authenticated user. The user can use this link to manage their account, update their profile, and view their entitlements.
+
+ :param subnav: The area of the portal you want the user to land on
+ :type subnav: str
+ :param return_url: The URL to redirect the user to after they have completed their actions in the portal.
+ :type return_url: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_portal_link_serialize(
+ subnav=subnav,
+ return_url=return_url,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPortalLink",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_portal_link_serialize(
+ self,
+ subnav,
+ return_url,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if subnav is not None:
+
+ _query_params.append(('subnav', subnav))
+
+ if return_url is not None:
+
+ _query_params.append(('return_url', return_url))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/account_api/v1/get_portal_link',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/subscribers_api.py b/kinde_sdk/api/subscribers_api.py
new file mode 100644
index 00000000..4552dfb1
--- /dev/null
+++ b/kinde_sdk/api/subscribers_api.py
@@ -0,0 +1,921 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_subscriber_success_response import CreateSubscriberSuccessResponse
+from kinde_sdk.models.get_subscriber_response import GetSubscriberResponse
+from kinde_sdk.models.get_subscribers_response import GetSubscribersResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class SubscribersApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_subscriber(
+ self,
+ first_name: Annotated[StrictStr, Field(description="Subscriber's first name.")],
+ last_name: Annotated[Optional[StrictStr], Field(description="Subscriber's last name.")],
+ email: Annotated[Optional[StrictStr], Field(description="The email address of the subscriber.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateSubscriberSuccessResponse:
+ """Create Subscriber
+
+ Create subscriber. create:subscribers
+
+ :param first_name: Subscriber's first name. (required)
+ :type first_name: str
+ :param last_name: Subscriber's last name. (required)
+ :type last_name: str
+ :param email: The email address of the subscriber. (required)
+ :type email: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_subscriber_serialize(
+ first_name=first_name,
+ last_name=last_name,
+ email=email,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateSubscriberSuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_subscriber_with_http_info(
+ self,
+ first_name: Annotated[StrictStr, Field(description="Subscriber's first name.")],
+ last_name: Annotated[Optional[StrictStr], Field(description="Subscriber's last name.")],
+ email: Annotated[Optional[StrictStr], Field(description="The email address of the subscriber.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateSubscriberSuccessResponse]:
+ """Create Subscriber
+
+ Create subscriber. create:subscribers
+
+ :param first_name: Subscriber's first name. (required)
+ :type first_name: str
+ :param last_name: Subscriber's last name. (required)
+ :type last_name: str
+ :param email: The email address of the subscriber. (required)
+ :type email: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_subscriber_serialize(
+ first_name=first_name,
+ last_name=last_name,
+ email=email,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateSubscriberSuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_subscriber_without_preload_content(
+ self,
+ first_name: Annotated[StrictStr, Field(description="Subscriber's first name.")],
+ last_name: Annotated[Optional[StrictStr], Field(description="Subscriber's last name.")],
+ email: Annotated[Optional[StrictStr], Field(description="The email address of the subscriber.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create Subscriber
+
+ Create subscriber. create:subscribers
+
+ :param first_name: Subscriber's first name. (required)
+ :type first_name: str
+ :param last_name: Subscriber's last name. (required)
+ :type last_name: str
+ :param email: The email address of the subscriber. (required)
+ :type email: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_subscriber_serialize(
+ first_name=first_name,
+ last_name=last_name,
+ email=email,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateSubscriberSuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_subscriber_serialize(
+ self,
+ first_name,
+ last_name,
+ email,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if first_name is not None:
+
+ _query_params.append(('first_name', first_name))
+
+ if last_name is not None:
+
+ _query_params.append(('last_name', last_name))
+
+ if email is not None:
+
+ _query_params.append(('email', email))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/subscribers',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_subscriber(
+ self,
+ subscriber_id: Annotated[StrictStr, Field(description="The subscriber's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetSubscriberResponse:
+ """Get Subscriber
+
+ Retrieve a subscriber record. read:subscribers
+
+ :param subscriber_id: The subscriber's id. (required)
+ :type subscriber_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_subscriber_serialize(
+ subscriber_id=subscriber_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetSubscriberResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_subscriber_with_http_info(
+ self,
+ subscriber_id: Annotated[StrictStr, Field(description="The subscriber's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetSubscriberResponse]:
+ """Get Subscriber
+
+ Retrieve a subscriber record. read:subscribers
+
+ :param subscriber_id: The subscriber's id. (required)
+ :type subscriber_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_subscriber_serialize(
+ subscriber_id=subscriber_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetSubscriberResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_subscriber_without_preload_content(
+ self,
+ subscriber_id: Annotated[StrictStr, Field(description="The subscriber's id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Subscriber
+
+ Retrieve a subscriber record. read:subscribers
+
+ :param subscriber_id: The subscriber's id. (required)
+ :type subscriber_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_subscriber_serialize(
+ subscriber_id=subscriber_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetSubscriberResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_subscriber_serialize(
+ self,
+ subscriber_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if subscriber_id is not None:
+ _path_params['subscriber_id'] = subscriber_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/subscribers/{subscriber_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_subscribers(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetSubscribersResponse:
+ """List Subscribers
+
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:subscribers
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_subscribers_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetSubscribersResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_subscribers_with_http_info(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetSubscribersResponse]:
+ """List Subscribers
+
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:subscribers
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_subscribers_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetSubscribersResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_subscribers_without_preload_content(
+ self,
+ sort: Annotated[Optional[StrictStr], Field(description="Field and order to sort the result by.")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Subscribers
+
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:subscribers
+
+ :param sort: Field and order to sort the result by.
+ :type sort: str
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_subscribers_serialize(
+ sort=sort,
+ page_size=page_size,
+ next_token=next_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetSubscribersResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_subscribers_serialize(
+ self,
+ sort,
+ page_size,
+ next_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/subscribers',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/timezones_api.py b/kinde_sdk/api/timezones_api.py
new file mode 100644
index 00000000..4ca4de6b
--- /dev/null
+++ b/kinde_sdk/api/timezones_api.py
@@ -0,0 +1,292 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from kinde_sdk.models.get_timezones_response import GetTimezonesResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class TimezonesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_timezones(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetTimezonesResponse:
+ """Get timezones
+
+ Get a list of timezones and associated timezone keys. read:timezones
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_timezones_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetTimezonesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_timezones_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetTimezonesResponse]:
+ """Get timezones
+
+ Get a list of timezones and associated timezone keys. read:timezones
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_timezones_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetTimezonesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_timezones_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get timezones
+
+ Get a list of timezones and associated timezone keys. read:timezones
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_timezones_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetTimezonesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_timezones_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/timezones',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/users_api.py b/kinde_sdk/api/users_api.py
new file mode 100644
index 00000000..37aaf0fd
--- /dev/null
+++ b/kinde_sdk/api/users_api.py
@@ -0,0 +1,5319 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictInt, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from kinde_sdk.models.create_identity_response import CreateIdentityResponse
+from kinde_sdk.models.create_user_identity_request import CreateUserIdentityRequest
+from kinde_sdk.models.create_user_request import CreateUserRequest
+from kinde_sdk.models.create_user_response import CreateUserResponse
+from kinde_sdk.models.get_identities_response import GetIdentitiesResponse
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+from kinde_sdk.models.get_user_sessions_response import GetUserSessionsResponse
+from kinde_sdk.models.set_user_password_request import SetUserPasswordRequest
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+from kinde_sdk.models.update_user_request import UpdateUserRequest
+from kinde_sdk.models.update_user_response import UpdateUserResponse
+from kinde_sdk.models.user import User
+from kinde_sdk.models.users_response import UsersResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class UsersApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_user(
+ self,
+ create_user_request: Annotated[Optional[CreateUserRequest], Field(description="The details of the user to create.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateUserResponse:
+ """Create user
+
+ Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user. create:users
+
+ :param create_user_request: The details of the user to create.
+ :type create_user_request: CreateUserRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_user_serialize(
+ create_user_request=create_user_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateUserResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_user_with_http_info(
+ self,
+ create_user_request: Annotated[Optional[CreateUserRequest], Field(description="The details of the user to create.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateUserResponse]:
+ """Create user
+
+ Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user. create:users
+
+ :param create_user_request: The details of the user to create.
+ :type create_user_request: CreateUserRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_user_serialize(
+ create_user_request=create_user_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateUserResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_user_without_preload_content(
+ self,
+ create_user_request: Annotated[Optional[CreateUserRequest], Field(description="The details of the user to create.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create user
+
+ Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user. create:users
+
+ :param create_user_request: The details of the user to create.
+ :type create_user_request: CreateUserRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_user_serialize(
+ create_user_request=create_user_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateUserResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_user_serialize(
+ self,
+ create_user_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_user_request is not None:
+ _body_params = create_user_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/user',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def create_user_identity(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ create_user_identity_request: Annotated[Optional[CreateUserIdentityRequest], Field(description="The identity details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateIdentityResponse:
+ """Create identity
+
+ Creates an identity for a user. create:user_identities
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param create_user_identity_request: The identity details.
+ :type create_user_identity_request: CreateUserIdentityRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_user_identity_serialize(
+ user_id=user_id,
+ create_user_identity_request=create_user_identity_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateIdentityResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_user_identity_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ create_user_identity_request: Annotated[Optional[CreateUserIdentityRequest], Field(description="The identity details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateIdentityResponse]:
+ """Create identity
+
+ Creates an identity for a user. create:user_identities
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param create_user_identity_request: The identity details.
+ :type create_user_identity_request: CreateUserIdentityRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_user_identity_serialize(
+ user_id=user_id,
+ create_user_identity_request=create_user_identity_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateIdentityResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_user_identity_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ create_user_identity_request: Annotated[Optional[CreateUserIdentityRequest], Field(description="The identity details.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create identity
+
+ Creates an identity for a user. create:user_identities
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param create_user_identity_request: The identity details.
+ :type create_user_identity_request: CreateUserIdentityRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_user_identity_serialize(
+ user_id=user_id,
+ create_user_identity_request=create_user_identity_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "CreateIdentityResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_user_identity_serialize(
+ self,
+ user_id,
+ create_user_identity_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_user_identity_request is not None:
+ _body_params = create_user_identity_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/users/{user_id}/identities',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_user(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ is_delete_profile: Annotated[Optional[StrictBool], Field(description="Delete all data and remove the user's profile from all of Kinde, including the subscriber list")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete user
+
+ Delete a user record. delete:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param is_delete_profile: Delete all data and remove the user's profile from all of Kinde, including the subscriber list
+ :type is_delete_profile: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_user_serialize(
+ id=id,
+ is_delete_profile=is_delete_profile,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_user_with_http_info(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ is_delete_profile: Annotated[Optional[StrictBool], Field(description="Delete all data and remove the user's profile from all of Kinde, including the subscriber list")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete user
+
+ Delete a user record. delete:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param is_delete_profile: Delete all data and remove the user's profile from all of Kinde, including the subscriber list
+ :type is_delete_profile: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_user_serialize(
+ id=id,
+ is_delete_profile=is_delete_profile,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_user_without_preload_content(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ is_delete_profile: Annotated[Optional[StrictBool], Field(description="Delete all data and remove the user's profile from all of Kinde, including the subscriber list")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete user
+
+ Delete a user record. delete:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param is_delete_profile: Delete all data and remove the user's profile from all of Kinde, including the subscriber list
+ :type is_delete_profile: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_user_serialize(
+ id=id,
+ is_delete_profile=is_delete_profile,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_user_serialize(
+ self,
+ id,
+ is_delete_profile,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if id is not None:
+
+ _query_params.append(('id', id))
+
+ if is_delete_profile is not None:
+
+ _query_params.append(('is_delete_profile', is_delete_profile))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/user',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_user_sessions(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Delete user sessions
+
+ Invalidate user sessions. delete:user_sessions
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_user_sessions_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_user_sessions_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Delete user sessions
+
+ Invalidate user sessions. delete:user_sessions
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_user_sessions_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_user_sessions_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete user sessions
+
+ Invalidate user sessions. delete:user_sessions
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_user_sessions_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_user_sessions_serialize(
+ self,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/users/{user_id}/sessions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_data(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> User:
+ """Get user
+
+ Retrieve a user record. read:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_data_serialize(
+ id=id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "User",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_data_with_http_info(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[User]:
+ """Get user
+
+ Retrieve a user record. read:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_data_serialize(
+ id=id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "User",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_data_without_preload_content(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get user
+
+ Retrieve a user record. read:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_data_serialize(
+ id=id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "User",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_data_serialize(
+ self,
+ id,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if id is not None:
+
+ _query_params.append(('id', id))
+
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/user',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_identities(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the identity to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the identity to end before.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetIdentitiesResponse:
+ """Get identities
+
+ Gets a list of identities for an user by ID. read:user_identities
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param starting_after: The ID of the identity to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the identity to end before.
+ :type ending_before: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_identities_serialize(
+ user_id=user_id,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetIdentitiesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_identities_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the identity to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the identity to end before.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetIdentitiesResponse]:
+ """Get identities
+
+ Gets a list of identities for an user by ID. read:user_identities
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param starting_after: The ID of the identity to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the identity to end before.
+ :type ending_before: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_identities_serialize(
+ user_id=user_id,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetIdentitiesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_identities_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ starting_after: Annotated[Optional[StrictStr], Field(description="The ID of the identity to start after.")] = None,
+ ending_before: Annotated[Optional[StrictStr], Field(description="The ID of the identity to end before.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get identities
+
+ Gets a list of identities for an user by ID. read:user_identities
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param starting_after: The ID of the identity to start after.
+ :type starting_after: str
+ :param ending_before: The ID of the identity to end before.
+ :type ending_before: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_identities_serialize(
+ user_id=user_id,
+ starting_after=starting_after,
+ ending_before=ending_before,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetIdentitiesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_identities_serialize(
+ self,
+ user_id,
+ starting_after,
+ ending_before,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ if starting_after is not None:
+
+ _query_params.append(('starting_after', starting_after))
+
+ if ending_before is not None:
+
+ _query_params.append(('ending_before', ending_before))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/users/{user_id}/identities',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_property_values(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPropertyValuesResponse:
+ """Get property values
+
+ Gets properties for an user by ID. read:user_properties
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_property_values_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_property_values_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPropertyValuesResponse]:
+ """Get property values
+
+ Gets properties for an user by ID. read:user_properties
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_property_values_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_property_values_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The user's ID.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get property values
+
+ Gets properties for an user by ID. read:user_properties
+
+ :param user_id: The user's ID. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_property_values_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPropertyValuesResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_property_values_serialize(
+ self,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/users/{user_id}/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_sessions(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetUserSessionsResponse:
+ """Get user sessions
+
+ Retrieve the list of active sessions for a specific user. read:user_sessions
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_sessions_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserSessionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_sessions_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetUserSessionsResponse]:
+ """Get user sessions
+
+ Retrieve the list of active sessions for a specific user. read:user_sessions
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_sessions_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserSessionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_sessions_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get user sessions
+
+ Retrieve the list of active sessions for a specific user. read:user_sessions
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_sessions_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserSessionsResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_sessions_serialize(
+ self,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/users/{user_id}/sessions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_users(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ user_id: Annotated[Optional[StrictStr], Field(description="Filter the results by User ID. The query string should be comma separated and url encoded.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ email: Annotated[Optional[StrictStr], Field(description="Filter the results by email address. The query string should be comma separated and url encoded.")] = None,
+ username: Annotated[Optional[StrictStr], Field(description="Filter the results by username. The query string should be comma separated and url encoded.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ has_organization: Annotated[Optional[StrictBool], Field(description="Filter the results by if the user has at least one organization assigned.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UsersResponse:
+ """Get users
+
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:users
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param user_id: Filter the results by User ID. The query string should be comma separated and url encoded.
+ :type user_id: str
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param email: Filter the results by email address. The query string should be comma separated and url encoded.
+ :type email: str
+ :param username: Filter the results by username. The query string should be comma separated and url encoded.
+ :type username: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param has_organization: Filter the results by if the user has at least one organization assigned.
+ :type has_organization: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_serialize(
+ page_size=page_size,
+ user_id=user_id,
+ next_token=next_token,
+ email=email,
+ username=username,
+ expand=expand,
+ has_organization=has_organization,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_users_with_http_info(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ user_id: Annotated[Optional[StrictStr], Field(description="Filter the results by User ID. The query string should be comma separated and url encoded.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ email: Annotated[Optional[StrictStr], Field(description="Filter the results by email address. The query string should be comma separated and url encoded.")] = None,
+ username: Annotated[Optional[StrictStr], Field(description="Filter the results by username. The query string should be comma separated and url encoded.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ has_organization: Annotated[Optional[StrictBool], Field(description="Filter the results by if the user has at least one organization assigned.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UsersResponse]:
+ """Get users
+
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:users
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param user_id: Filter the results by User ID. The query string should be comma separated and url encoded.
+ :type user_id: str
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param email: Filter the results by email address. The query string should be comma separated and url encoded.
+ :type email: str
+ :param username: Filter the results by username. The query string should be comma separated and url encoded.
+ :type username: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param has_organization: Filter the results by if the user has at least one organization assigned.
+ :type has_organization: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_serialize(
+ page_size=page_size,
+ user_id=user_id,
+ next_token=next_token,
+ email=email,
+ username=username,
+ expand=expand,
+ has_organization=has_organization,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_users_without_preload_content(
+ self,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of results per page. Defaults to 10 if parameter not sent.")] = None,
+ user_id: Annotated[Optional[StrictStr], Field(description="Filter the results by User ID. The query string should be comma separated and url encoded.")] = None,
+ next_token: Annotated[Optional[StrictStr], Field(description="A string to get the next page of results if there are more results.")] = None,
+ email: Annotated[Optional[StrictStr], Field(description="Filter the results by email address. The query string should be comma separated and url encoded.")] = None,
+ username: Annotated[Optional[StrictStr], Field(description="Filter the results by username. The query string should be comma separated and url encoded.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".")] = None,
+ has_organization: Annotated[Optional[StrictBool], Field(description="Filter the results by if the user has at least one organization assigned.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get users
+
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter. read:users
+
+ :param page_size: Number of results per page. Defaults to 10 if parameter not sent.
+ :type page_size: int
+ :param user_id: Filter the results by User ID. The query string should be comma separated and url encoded.
+ :type user_id: str
+ :param next_token: A string to get the next page of results if there are more results.
+ :type next_token: str
+ :param email: Filter the results by email address. The query string should be comma separated and url encoded.
+ :type email: str
+ :param username: Filter the results by username. The query string should be comma separated and url encoded.
+ :type username: str
+ :param expand: Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
+ :type expand: str
+ :param has_organization: Filter the results by if the user has at least one organization assigned.
+ :type has_organization: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_serialize(
+ page_size=page_size,
+ user_id=user_id,
+ next_token=next_token,
+ email=email,
+ username=username,
+ expand=expand,
+ has_organization=has_organization,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UsersResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_users_serialize(
+ self,
+ page_size,
+ user_id,
+ next_token,
+ email,
+ username,
+ expand,
+ has_organization,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page_size is not None:
+
+ _query_params.append(('page_size', page_size))
+
+ if user_id is not None:
+
+ _query_params.append(('user_id', user_id))
+
+ if next_token is not None:
+
+ _query_params.append(('next_token', next_token))
+
+ if email is not None:
+
+ _query_params.append(('email', email))
+
+ if username is not None:
+
+ _query_params.append(('username', username))
+
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ if has_organization is not None:
+
+ _query_params.append(('has_organization', has_organization))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/users',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_users_mfa(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetUserMfaResponse:
+ """Get user's MFA configuration
+
+ Get a user’s MFA configuration. read:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_mfa_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserMfaResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_users_mfa_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetUserMfaResponse]:
+ """Get user's MFA configuration
+
+ Get a user’s MFA configuration. read:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_mfa_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserMfaResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_users_mfa_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get user's MFA configuration
+
+ Get a user’s MFA configuration. read:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_mfa_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetUserMfaResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_users_mfa_serialize(
+ self,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/users/{user_id}/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def refresh_user_claims(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The id of the user whose claims needs to be updated.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Refresh User Claims and Invalidate Cache
+
+ Refreshes the user's claims and invalidates the current cache. update:user_refresh_claims
+
+ :param user_id: The id of the user whose claims needs to be updated. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._refresh_user_claims_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def refresh_user_claims_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The id of the user whose claims needs to be updated.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Refresh User Claims and Invalidate Cache
+
+ Refreshes the user's claims and invalidates the current cache. update:user_refresh_claims
+
+ :param user_id: The id of the user whose claims needs to be updated. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._refresh_user_claims_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def refresh_user_claims_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The id of the user whose claims needs to be updated.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Refresh User Claims and Invalidate Cache
+
+ Refreshes the user's claims and invalidates the current cache. update:user_refresh_claims
+
+ :param user_id: The id of the user whose claims needs to be updated. (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._refresh_user_claims_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _refresh_user_claims_serialize(
+ self,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/users/{user_id}/refresh_claims',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def reset_users_mfa(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ factor_id: Annotated[StrictStr, Field(description="The identifier for the MFA factor")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Reset specific environment MFA for a user
+
+ Reset a specific environment MFA factor for a user. delete:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param factor_id: The identifier for the MFA factor (required)
+ :type factor_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_users_mfa_serialize(
+ user_id=user_id,
+ factor_id=factor_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def reset_users_mfa_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ factor_id: Annotated[StrictStr, Field(description="The identifier for the MFA factor")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Reset specific environment MFA for a user
+
+ Reset a specific environment MFA factor for a user. delete:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param factor_id: The identifier for the MFA factor (required)
+ :type factor_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_users_mfa_serialize(
+ user_id=user_id,
+ factor_id=factor_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def reset_users_mfa_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ factor_id: Annotated[StrictStr, Field(description="The identifier for the MFA factor")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Reset specific environment MFA for a user
+
+ Reset a specific environment MFA factor for a user. delete:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param factor_id: The identifier for the MFA factor (required)
+ :type factor_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_users_mfa_serialize(
+ user_id=user_id,
+ factor_id=factor_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _reset_users_mfa_serialize(
+ self,
+ user_id,
+ factor_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if factor_id is not None:
+ _path_params['factor_id'] = factor_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/users/{user_id}/mfa/{factor_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def reset_users_mfa_all(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Reset all environment MFA for a user
+
+ Reset all environment MFA factors for a user. delete:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_users_mfa_all_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def reset_users_mfa_all_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Reset all environment MFA for a user
+
+ Reset all environment MFA factors for a user. delete:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_users_mfa_all_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def reset_users_mfa_all_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Reset all environment MFA for a user
+
+ Reset all environment MFA factors for a user. delete:user_mfa
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._reset_users_mfa_all_serialize(
+ user_id=user_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '404': "NotFoundResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _reset_users_mfa_all_serialize(
+ self,
+ user_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/users/{user_id}/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def set_user_password(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ set_user_password_request: Annotated[SetUserPasswordRequest, Field(description="Password details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Set User password
+
+ Set user password. update:user_passwords
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param set_user_password_request: Password details. (required)
+ :type set_user_password_request: SetUserPasswordRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._set_user_password_serialize(
+ user_id=user_id,
+ set_user_password_request=set_user_password_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def set_user_password_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ set_user_password_request: Annotated[SetUserPasswordRequest, Field(description="Password details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Set User password
+
+ Set user password. update:user_passwords
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param set_user_password_request: Password details. (required)
+ :type set_user_password_request: SetUserPasswordRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._set_user_password_serialize(
+ user_id=user_id,
+ set_user_password_request=set_user_password_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def set_user_password_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ set_user_password_request: Annotated[SetUserPasswordRequest, Field(description="Password details.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Set User password
+
+ Set user password. update:user_passwords
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param set_user_password_request: Password details. (required)
+ :type set_user_password_request: SetUserPasswordRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._set_user_password_serialize(
+ user_id=user_id,
+ set_user_password_request=set_user_password_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _set_user_password_serialize(
+ self,
+ user_id,
+ set_user_password_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if set_user_password_request is not None:
+ _body_params = set_user_password_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/users/{user_id}/password',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_user(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ update_user_request: Annotated[UpdateUserRequest, Field(description="The user to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UpdateUserResponse:
+ """Update user
+
+ Update a user record. update:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param update_user_request: The user to update. (required)
+ :type update_user_request: UpdateUserRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_serialize(
+ id=id,
+ update_user_request=update_user_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateUserResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_user_with_http_info(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ update_user_request: Annotated[UpdateUserRequest, Field(description="The user to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UpdateUserResponse]:
+ """Update user
+
+ Update a user record. update:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param update_user_request: The user to update. (required)
+ :type update_user_request: UpdateUserRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_serialize(
+ id=id,
+ update_user_request=update_user_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateUserResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_user_without_preload_content(
+ self,
+ id: Annotated[StrictStr, Field(description="The user's id.")],
+ update_user_request: Annotated[UpdateUserRequest, Field(description="The user to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update user
+
+ Update a user record. update:users
+
+ :param id: The user's id. (required)
+ :type id: str
+ :param update_user_request: The user to update. (required)
+ :type update_user_request: UpdateUserRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_serialize(
+ id=id,
+ update_user_request=update_user_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateUserResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': "ErrorResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_user_serialize(
+ self,
+ id,
+ update_user_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if id is not None:
+
+ _query_params.append(('id', id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_user_request is not None:
+ _body_params = update_user_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/user',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_user_feature_flag_override(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag")],
+ value: Annotated[StrictStr, Field(description="Override value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update User Feature Flag Override
+
+ Update user feature flag override. update:user_feature_flags
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param feature_flag_key: The identifier for the feature flag (required)
+ :type feature_flag_key: str
+ :param value: Override value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_feature_flag_override_serialize(
+ user_id=user_id,
+ feature_flag_key=feature_flag_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_user_feature_flag_override_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag")],
+ value: Annotated[StrictStr, Field(description="Override value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update User Feature Flag Override
+
+ Update user feature flag override. update:user_feature_flags
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param feature_flag_key: The identifier for the feature flag (required)
+ :type feature_flag_key: str
+ :param value: Override value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_feature_flag_override_serialize(
+ user_id=user_id,
+ feature_flag_key=feature_flag_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_user_feature_flag_override_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ feature_flag_key: Annotated[StrictStr, Field(description="The identifier for the feature flag")],
+ value: Annotated[StrictStr, Field(description="Override value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update User Feature Flag Override
+
+ Update user feature flag override. update:user_feature_flags
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param feature_flag_key: The identifier for the feature flag (required)
+ :type feature_flag_key: str
+ :param value: Override value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_feature_flag_override_serialize(
+ user_id=user_id,
+ feature_flag_key=feature_flag_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_user_feature_flag_override_serialize(
+ self,
+ user_id,
+ feature_flag_key,
+ value,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if feature_flag_key is not None:
+ _path_params['feature_flag_key'] = feature_flag_key
+ # process the query parameters
+ if value is not None:
+
+ _query_params.append(('value', value))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/users/{user_id}/feature_flags/{feature_flag_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_user_properties(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ update_organization_properties_request: Annotated[UpdateOrganizationPropertiesRequest, Field(description="Properties to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Property values
+
+ Update property values. update:user_properties
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param update_organization_properties_request: Properties to update. (required)
+ :type update_organization_properties_request: UpdateOrganizationPropertiesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_properties_serialize(
+ user_id=user_id,
+ update_organization_properties_request=update_organization_properties_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_user_properties_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ update_organization_properties_request: Annotated[UpdateOrganizationPropertiesRequest, Field(description="Properties to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Property values
+
+ Update property values. update:user_properties
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param update_organization_properties_request: Properties to update. (required)
+ :type update_organization_properties_request: UpdateOrganizationPropertiesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_properties_serialize(
+ user_id=user_id,
+ update_organization_properties_request=update_organization_properties_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_user_properties_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ update_organization_properties_request: Annotated[UpdateOrganizationPropertiesRequest, Field(description="Properties to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Property values
+
+ Update property values. update:user_properties
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param update_organization_properties_request: Properties to update. (required)
+ :type update_organization_properties_request: UpdateOrganizationPropertiesRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_properties_serialize(
+ user_id=user_id,
+ update_organization_properties_request=update_organization_properties_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_user_properties_serialize(
+ self,
+ user_id,
+ update_organization_properties_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_organization_properties_request is not None:
+ _body_params = update_organization_properties_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/users/{user_id}/properties',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_user_property(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ property_key: Annotated[StrictStr, Field(description="The identifier for the property")],
+ value: Annotated[StrictStr, Field(description="The new property value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SuccessResponse:
+ """Update Property value
+
+ Update property value. update:user_properties
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param property_key: The identifier for the property (required)
+ :type property_key: str
+ :param value: The new property value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_property_serialize(
+ user_id=user_id,
+ property_key=property_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_user_property_with_http_info(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ property_key: Annotated[StrictStr, Field(description="The identifier for the property")],
+ value: Annotated[StrictStr, Field(description="The new property value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SuccessResponse]:
+ """Update Property value
+
+ Update property value. update:user_properties
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param property_key: The identifier for the property (required)
+ :type property_key: str
+ :param value: The new property value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_property_serialize(
+ user_id=user_id,
+ property_key=property_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_user_property_without_preload_content(
+ self,
+ user_id: Annotated[StrictStr, Field(description="The identifier for the user")],
+ property_key: Annotated[StrictStr, Field(description="The identifier for the property")],
+ value: Annotated[StrictStr, Field(description="The new property value")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update Property value
+
+ Update property value. update:user_properties
+
+ :param user_id: The identifier for the user (required)
+ :type user_id: str
+ :param property_key: The identifier for the property (required)
+ :type property_key: str
+ :param value: The new property value (required)
+ :type value: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_user_property_serialize(
+ user_id=user_id,
+ property_key=property_key,
+ value=value,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SuccessResponse",
+ '400': "ErrorResponse",
+ '403': None,
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_user_property_serialize(
+ self,
+ user_id,
+ property_key,
+ value,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if user_id is not None:
+ _path_params['user_id'] = user_id
+ if property_key is not None:
+ _path_params['property_key'] = property_key
+ # process the query parameters
+ if value is not None:
+
+ _query_params.append(('value', value))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json',
+ 'application/json; charset=utf-8'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/api/v1/users/{user_id}/properties/{property_key}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api/webhooks_api.py b/kinde_sdk/api/webhooks_api.py
new file mode 100644
index 00000000..af41c81d
--- /dev/null
+++ b/kinde_sdk/api/webhooks_api.py
@@ -0,0 +1,1683 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing_extensions import Annotated
+from kinde_sdk.models.create_web_hook_request import CreateWebHookRequest
+from kinde_sdk.models.create_webhook_response import CreateWebhookResponse
+from kinde_sdk.models.delete_webhook_response import DeleteWebhookResponse
+from kinde_sdk.models.get_event_response import GetEventResponse
+from kinde_sdk.models.get_event_types_response import GetEventTypesResponse
+from kinde_sdk.models.get_webhooks_response import GetWebhooksResponse
+from kinde_sdk.models.update_web_hook_request import UpdateWebHookRequest
+from kinde_sdk.models.update_webhook_response import UpdateWebhookResponse
+
+from kinde_sdk.api_client import ApiClient, RequestSerialized
+from kinde_sdk.api_response import ApiResponse
+from kinde_sdk.rest import RESTResponseType
+
+
+class WebhooksApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_web_hook(
+ self,
+ create_web_hook_request: Annotated[CreateWebHookRequest, Field(description="Webhook request specification.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreateWebhookResponse:
+ """Create a Webhook
+
+ Create a webhook create:webhooks
+
+ :param create_web_hook_request: Webhook request specification. (required)
+ :type create_web_hook_request: CreateWebHookRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_web_hook_serialize(
+ create_web_hook_request=create_web_hook_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_web_hook_with_http_info(
+ self,
+ create_web_hook_request: Annotated[CreateWebHookRequest, Field(description="Webhook request specification.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreateWebhookResponse]:
+ """Create a Webhook
+
+ Create a webhook create:webhooks
+
+ :param create_web_hook_request: Webhook request specification. (required)
+ :type create_web_hook_request: CreateWebHookRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_web_hook_serialize(
+ create_web_hook_request=create_web_hook_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_web_hook_without_preload_content(
+ self,
+ create_web_hook_request: Annotated[CreateWebHookRequest, Field(description="Webhook request specification.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create a Webhook
+
+ Create a webhook create:webhooks
+
+ :param create_web_hook_request: Webhook request specification. (required)
+ :type create_web_hook_request: CreateWebHookRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_web_hook_serialize(
+ create_web_hook_request=create_web_hook_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreateWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_web_hook_serialize(
+ self,
+ create_web_hook_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_web_hook_request is not None:
+ _body_params = create_web_hook_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/api/v1/webhooks',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_web_hook(
+ self,
+ webhook_id: Annotated[StrictStr, Field(description="The webhook id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DeleteWebhookResponse:
+ """Delete Webhook
+
+ Delete webhook delete:webhooks
+
+ :param webhook_id: The webhook id. (required)
+ :type webhook_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_web_hook_serialize(
+ webhook_id=webhook_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_web_hook_with_http_info(
+ self,
+ webhook_id: Annotated[StrictStr, Field(description="The webhook id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DeleteWebhookResponse]:
+ """Delete Webhook
+
+ Delete webhook delete:webhooks
+
+ :param webhook_id: The webhook id. (required)
+ :type webhook_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_web_hook_serialize(
+ webhook_id=webhook_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_web_hook_without_preload_content(
+ self,
+ webhook_id: Annotated[StrictStr, Field(description="The webhook id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete Webhook
+
+ Delete webhook delete:webhooks
+
+ :param webhook_id: The webhook id. (required)
+ :type webhook_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_web_hook_serialize(
+ webhook_id=webhook_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DeleteWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_web_hook_serialize(
+ self,
+ webhook_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if webhook_id is not None:
+ _path_params['webhook_id'] = webhook_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/api/v1/webhooks/{webhook_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_event(
+ self,
+ event_id: Annotated[StrictStr, Field(description="The event id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEventResponse:
+ """Get Event
+
+ Returns an event read:events
+
+ :param event_id: The event id. (required)
+ :type event_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_event_serialize(
+ event_id=event_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEventResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_event_with_http_info(
+ self,
+ event_id: Annotated[StrictStr, Field(description="The event id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEventResponse]:
+ """Get Event
+
+ Returns an event read:events
+
+ :param event_id: The event id. (required)
+ :type event_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_event_serialize(
+ event_id=event_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEventResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_event_without_preload_content(
+ self,
+ event_id: Annotated[StrictStr, Field(description="The event id.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Event
+
+ Returns an event read:events
+
+ :param event_id: The event id. (required)
+ :type event_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_event_serialize(
+ event_id=event_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEventResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_event_serialize(
+ self,
+ event_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if event_id is not None:
+ _path_params['event_id'] = event_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/events/{event_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_event_types(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetEventTypesResponse:
+ """List Event Types
+
+ Returns a list event type definitions read:event_types
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_event_types_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEventTypesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_event_types_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetEventTypesResponse]:
+ """List Event Types
+
+ Returns a list event type definitions read:event_types
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_event_types_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEventTypesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_event_types_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Event Types
+
+ Returns a list event type definitions read:event_types
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_event_types_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetEventTypesResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_event_types_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/event_types',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_web_hooks(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetWebhooksResponse:
+ """List Webhooks
+
+ List webhooks read:webhooks
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_web_hooks_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetWebhooksResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_web_hooks_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetWebhooksResponse]:
+ """List Webhooks
+
+ List webhooks read:webhooks
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_web_hooks_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetWebhooksResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_web_hooks_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Webhooks
+
+ List webhooks read:webhooks
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_web_hooks_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetWebhooksResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_web_hooks_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/api/v1/webhooks',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_web_hook(
+ self,
+ webhook_id: Annotated[StrictStr, Field(description="The webhook id.")],
+ update_web_hook_request: Annotated[UpdateWebHookRequest, Field(description="Update webhook request specification.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UpdateWebhookResponse:
+ """Update a Webhook
+
+ Update a webhook update:webhooks
+
+ :param webhook_id: The webhook id. (required)
+ :type webhook_id: str
+ :param update_web_hook_request: Update webhook request specification. (required)
+ :type update_web_hook_request: UpdateWebHookRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_web_hook_serialize(
+ webhook_id=webhook_id,
+ update_web_hook_request=update_web_hook_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_web_hook_with_http_info(
+ self,
+ webhook_id: Annotated[StrictStr, Field(description="The webhook id.")],
+ update_web_hook_request: Annotated[UpdateWebHookRequest, Field(description="Update webhook request specification.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UpdateWebhookResponse]:
+ """Update a Webhook
+
+ Update a webhook update:webhooks
+
+ :param webhook_id: The webhook id. (required)
+ :type webhook_id: str
+ :param update_web_hook_request: Update webhook request specification. (required)
+ :type update_web_hook_request: UpdateWebHookRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_web_hook_serialize(
+ webhook_id=webhook_id,
+ update_web_hook_request=update_web_hook_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_web_hook_without_preload_content(
+ self,
+ webhook_id: Annotated[StrictStr, Field(description="The webhook id.")],
+ update_web_hook_request: Annotated[UpdateWebHookRequest, Field(description="Update webhook request specification.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update a Webhook
+
+ Update a webhook update:webhooks
+
+ :param webhook_id: The webhook id. (required)
+ :type webhook_id: str
+ :param update_web_hook_request: Update webhook request specification. (required)
+ :type update_web_hook_request: UpdateWebHookRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_web_hook_serialize(
+ webhook_id=webhook_id,
+ update_web_hook_request=update_web_hook_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateWebhookResponse",
+ '400': "ErrorResponse",
+ '403': "ErrorResponse",
+ '429': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_web_hook_serialize(
+ self,
+ webhook_id,
+ update_web_hook_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if webhook_id is not None:
+ _path_params['webhook_id'] = webhook_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_web_hook_request is not None:
+ _body_params = update_web_hook_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json; charset=utf-8',
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'kindeBearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/api/v1/webhooks/{webhook_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/kinde_sdk/api_client.py b/kinde_sdk/api_client.py
index 24bb1ba4..fede6e24 100644
--- a/kinde_sdk/api_client.py
+++ b/kinde_sdk/api_client.py
@@ -1,1500 +1,798 @@
# coding: utf-8
+
"""
Kinde Management API
- Provides endpoints to manage your Kinde Businesses # noqa: E501
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
The version of the OpenAPI document: 1
Contact: support@kinde.com
- Generated by: https://openapi-generator.tech
-"""
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
-from dataclasses import dataclass
-from decimal import Decimal
-import enum
-import email
+import datetime
+from dateutil.parser import parse
+from enum import Enum
+import decimal
import json
+import mimetypes
import os
-import io
-import atexit
-from multiprocessing.pool import ThreadPool
import re
import tempfile
-import typing
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-from urllib.parse import urlparse, quote
-from urllib3.fields import RequestField as RequestFieldBase
-import frozendict
+from urllib.parse import quote
+from typing import Tuple, Optional, List, Dict, Union
+from pydantic import SecretStr
-from kinde_sdk import rest
from kinde_sdk.configuration import Configuration
-from kinde_sdk.exceptions import ApiTypeError, ApiValueError
-from kinde_sdk.schemas import (
- NoneClass,
- BoolClass,
- Schema,
- FileIO,
- BinarySchema,
- date,
- datetime,
- none_type,
- Unset,
- unset,
+from kinde_sdk.api_response import ApiResponse, T as ApiResponseT
+import kinde_sdk.models
+from kinde_sdk import rest
+from kinde_sdk.exceptions import (
+ ApiValueError,
+ ApiException,
+ BadRequestException,
+ UnauthorizedException,
+ ForbiddenException,
+ NotFoundException,
+ ServiceException
)
+RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
-class RequestField(RequestFieldBase):
- def __eq__(self, other):
- if not isinstance(other, RequestField):
- return False
- return self.__dict__ == other.__dict__
+class ApiClient:
+ """Generic API client for OpenAPI client library builds.
+ OpenAPI generic API client. This client handles the client-
+ server communication, and is invariant across implementations. Specifics of
+ the methods and models for each application are generated from the OpenAPI
+ templates.
-class JSONEncoder(json.JSONEncoder):
- compact_separators = (',', ':')
+ :param configuration: .Configuration object for this client
+ :param header_name: a header to pass when making calls to the API.
+ :param header_value: a header value to pass when making calls to
+ the API.
+ :param cookie: a cookie to include in the header when making calls
+ to the API
+ """
- def default(self, obj):
- if isinstance(obj, str):
- return str(obj)
- elif isinstance(obj, float):
- return float(obj)
- elif isinstance(obj, int):
- return int(obj)
- elif isinstance(obj, Decimal):
- if obj.as_tuple().exponent >= 0:
- return int(obj)
- return float(obj)
- elif isinstance(obj, NoneClass):
- return None
- elif isinstance(obj, BoolClass):
- return bool(obj)
- elif isinstance(obj, (dict, frozendict.frozendict)):
- return {key: self.default(val) for key, val in obj.items()}
- elif isinstance(obj, (list, tuple)):
- return [self.default(item) for item in obj]
- raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__))
-
-
-class ParameterInType(enum.Enum):
- QUERY = 'query'
- HEADER = 'header'
- PATH = 'path'
- COOKIE = 'cookie'
-
-
-class ParameterStyle(enum.Enum):
- MATRIX = 'matrix'
- LABEL = 'label'
- FORM = 'form'
- SIMPLE = 'simple'
- SPACE_DELIMITED = 'spaceDelimited'
- PIPE_DELIMITED = 'pipeDelimited'
- DEEP_OBJECT = 'deepObject'
-
-
-class PrefixSeparatorIterator:
- # A class to store prefixes and separators for rfc6570 expansions
-
- def __init__(self, prefix: str, separator: str):
- self.prefix = prefix
- self.separator = separator
- self.first = True
- if separator in {'.', '|', '%20'}:
- item_separator = separator
- else:
- item_separator = ','
- self.item_separator = item_separator
+ PRIMITIVE_TYPES = (float, bool, bytes, str, int)
+ NATIVE_TYPES_MAPPING = {
+ 'int': int,
+ 'long': int, # TODO remove as only py3 is supported?
+ 'float': float,
+ 'str': str,
+ 'bool': bool,
+ 'date': datetime.date,
+ 'datetime': datetime.datetime,
+ 'decimal': decimal.Decimal,
+ 'object': object,
+ }
+ _pool = None
- def __iter__(self):
+ def __init__(
+ self,
+ configuration=None,
+ header_name=None,
+ header_value=None,
+ cookie=None
+ ) -> None:
+ # use default configuration if none is provided
+ if configuration is None:
+ configuration = Configuration.get_default()
+ self.configuration = configuration
+
+ self.rest_client = rest.RESTClientObject(configuration)
+ self.default_headers = {}
+ if header_name is not None:
+ self.default_headers[header_name] = header_value
+ self.cookie = cookie
+ # Set default User-Agent.
+ self.user_agent = 'OpenAPI-Generator/1.0.0/python'
+ self.client_side_validation = configuration.client_side_validation
+
+ def __enter__(self):
return self
- def __next__(self):
- if self.first:
- self.first = False
- return self.prefix
- return self.separator
+ def __exit__(self, exc_type, exc_value, traceback):
+ pass
+ @property
+ def user_agent(self):
+ """User agent for this API client"""
+ return self.default_headers['User-Agent']
-class ParameterSerializerBase:
- @classmethod
- def _get_default_explode(cls, style: ParameterStyle) -> bool:
- return False
+ @user_agent.setter
+ def user_agent(self, value):
+ self.default_headers['User-Agent'] = value
- @staticmethod
- def __ref6570_item_value(in_data: typing.Any, percent_encode: bool):
- """
- Get representation if str/float/int/None/items in list/ values in dict
- None is returned if an item is undefined, use cases are value=
- - None
- - []
- - {}
- - [None, None None]
- - {'a': None, 'b': None}
- """
- if type(in_data) in {str, float, int}:
- if percent_encode:
- return quote(str(in_data))
- return str(in_data)
- elif isinstance(in_data, none_type):
- # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1
- return None
- elif isinstance(in_data, list) and not in_data:
- # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1
- return None
- elif isinstance(in_data, dict) and not in_data:
- # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1
- return None
- raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data))
+ def set_default_header(self, header_name, header_value):
+ self.default_headers[header_name] = header_value
- @staticmethod
- def _to_dict(name: str, value: str):
- return {name: value}
- @classmethod
- def __ref6570_str_float_int_expansion(
- cls,
- variable_name: str,
- in_data: typing.Any,
- explode: bool,
- percent_encode: bool,
- prefix_separator_iterator: PrefixSeparatorIterator,
- var_name_piece: str,
- named_parameter_expansion: bool
- ) -> str:
- item_value = cls.__ref6570_item_value(in_data, percent_encode)
- if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'):
- return next(prefix_separator_iterator) + var_name_piece
- value_pair_equals = '=' if named_parameter_expansion else ''
- return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value
+ _default = None
@classmethod
- def __ref6570_list_expansion(
- cls,
- variable_name: str,
- in_data: typing.Any,
- explode: bool,
- percent_encode: bool,
- prefix_separator_iterator: PrefixSeparatorIterator,
- var_name_piece: str,
- named_parameter_expansion: bool
- ) -> str:
- item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data]
- item_values = [v for v in item_values if v is not None]
- if not item_values:
- # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1
- return ""
- value_pair_equals = '=' if named_parameter_expansion else ''
- if not explode:
- return (
- next(prefix_separator_iterator) +
- var_name_piece +
- value_pair_equals +
- prefix_separator_iterator.item_separator.join(item_values)
- )
- # exploded
- return next(prefix_separator_iterator) + next(prefix_separator_iterator).join(
- [var_name_piece + value_pair_equals + val for val in item_values]
- )
+ def get_default(cls):
+ """Return new instance of ApiClient.
- @classmethod
- def __ref6570_dict_expansion(
- cls,
- variable_name: str,
- in_data: typing.Any,
- explode: bool,
- percent_encode: bool,
- prefix_separator_iterator: PrefixSeparatorIterator,
- var_name_piece: str,
- named_parameter_expansion: bool
- ) -> str:
- in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()}
- in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None}
- if not in_data_transformed:
- # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1
- return ""
- value_pair_equals = '=' if named_parameter_expansion else ''
- if not explode:
- return (
- next(prefix_separator_iterator) +
- var_name_piece + value_pair_equals +
- prefix_separator_iterator.item_separator.join(
- prefix_separator_iterator.item_separator.join(
- item_pair
- ) for item_pair in in_data_transformed.items()
- )
- )
- # exploded
- return next(prefix_separator_iterator) + next(prefix_separator_iterator).join(
- [key + '=' + val for key, val in in_data_transformed.items()]
- )
+ This method returns newly created, based on default constructor,
+ object of ApiClient class or returns a copy of default
+ ApiClient.
- @classmethod
- def _ref6570_expansion(
- cls,
- variable_name: str,
- in_data: typing.Any,
- explode: bool,
- percent_encode: bool,
- prefix_separator_iterator: PrefixSeparatorIterator
- ) -> str:
- """
- Separator is for separate variables like dict with explode true, not for array item separation
+ :return: The ApiClient object.
"""
- named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'}
- var_name_piece = variable_name if named_parameter_expansion else ''
- if type(in_data) in {str, float, int}:
- return cls.__ref6570_str_float_int_expansion(
- variable_name,
- in_data,
- explode,
- percent_encode,
- prefix_separator_iterator,
- var_name_piece,
- named_parameter_expansion
- )
- elif isinstance(in_data, none_type):
- # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1
- return ""
- elif isinstance(in_data, list):
- return cls.__ref6570_list_expansion(
- variable_name,
- in_data,
- explode,
- percent_encode,
- prefix_separator_iterator,
- var_name_piece,
- named_parameter_expansion
- )
- elif isinstance(in_data, dict):
- return cls.__ref6570_dict_expansion(
- variable_name,
- in_data,
- explode,
- percent_encode,
- prefix_separator_iterator,
- var_name_piece,
- named_parameter_expansion
- )
- # bool, bytes, etc
- raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data))
+ if cls._default is None:
+ cls._default = ApiClient()
+ return cls._default
-
-class StyleFormSerializer(ParameterSerializerBase):
@classmethod
- def _get_default_explode(cls, style: ParameterStyle) -> bool:
- if style is ParameterStyle.FORM:
- return True
- return super()._get_default_explode(style)
-
- def _serialize_form(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- name: str,
- explode: bool,
- percent_encode: bool,
- prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None
- ) -> str:
- if prefix_separator_iterator is None:
- prefix_separator_iterator = PrefixSeparatorIterator('', '&')
- return self._ref6570_expansion(
- variable_name=name,
- in_data=in_data,
- explode=explode,
- percent_encode=percent_encode,
- prefix_separator_iterator=prefix_separator_iterator
- )
+ def set_default(cls, default):
+ """Set default instance of ApiClient.
+ It stores default ApiClient.
-class StyleSimpleSerializer(ParameterSerializerBase):
+ :param default: object of ApiClient.
+ """
+ cls._default = default
- def _serialize_simple(
+ def param_serialize(
self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- name: str,
- explode: bool,
- percent_encode: bool
- ) -> str:
- prefix_separator_iterator = PrefixSeparatorIterator('', ',')
- return self._ref6570_expansion(
- variable_name=name,
- in_data=in_data,
- explode=explode,
- percent_encode=percent_encode,
- prefix_separator_iterator=prefix_separator_iterator
- )
-
+ method,
+ resource_path,
+ path_params=None,
+ query_params=None,
+ header_params=None,
+ body=None,
+ post_params=None,
+ files=None, auth_settings=None,
+ collection_formats=None,
+ _host=None,
+ _request_auth=None
+ ) -> RequestSerialized:
+
+ """Builds the HTTP request params needed by the request.
+ :param method: Method to call.
+ :param resource_path: Path to method endpoint.
+ :param path_params: Path parameters in the url.
+ :param query_params: Query parameters in the url.
+ :param header_params: Header parameters to be
+ placed in the request header.
+ :param body: Request body.
+ :param post_params dict: Request post form parameters,
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
+ :param auth_settings list: Auth Settings names for the request.
+ :param files dict: key -> filename, value -> filepath,
+ for `multipart/form-data`.
+ :param collection_formats: dict of collection formats for path, query,
+ header, and post parameters.
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the authentication
+ in the spec for a single request.
+ :return: tuple of form (path, http_method, query_params, header_params,
+ body, post_params, files)
+ """
-class JSONDetector:
- """
- Works for:
- application/json
- application/json; charset=UTF-8
- application/json-patch+json
- application/geo+json
- """
- __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*")
+ config = self.configuration
- @classmethod
- def _content_type_is_json(cls, content_type: str) -> bool:
- if cls.__json_content_type_pattern.match(content_type):
- return True
- return False
-
-
-@dataclass
-class ParameterBase(JSONDetector):
- name: str
- in_type: ParameterInType
- required: bool
- style: typing.Optional[ParameterStyle]
- explode: typing.Optional[bool]
- allow_reserved: typing.Optional[bool]
- schema: typing.Optional[typing.Type[Schema]]
- content: typing.Optional[typing.Dict[str, typing.Type[Schema]]]
-
- __style_to_in_type = {
- ParameterStyle.MATRIX: {ParameterInType.PATH},
- ParameterStyle.LABEL: {ParameterInType.PATH},
- ParameterStyle.FORM: {ParameterInType.QUERY, ParameterInType.COOKIE},
- ParameterStyle.SIMPLE: {ParameterInType.PATH, ParameterInType.HEADER},
- ParameterStyle.SPACE_DELIMITED: {ParameterInType.QUERY},
- ParameterStyle.PIPE_DELIMITED: {ParameterInType.QUERY},
- ParameterStyle.DEEP_OBJECT: {ParameterInType.QUERY},
- }
- __in_type_to_default_style = {
- ParameterInType.QUERY: ParameterStyle.FORM,
- ParameterInType.PATH: ParameterStyle.SIMPLE,
- ParameterInType.HEADER: ParameterStyle.SIMPLE,
- ParameterInType.COOKIE: ParameterStyle.FORM,
- }
- __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'}
- _json_encoder = JSONEncoder()
-
- @classmethod
- def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType):
- if style is None:
- return
- in_type_set = cls.__style_to_in_type[style]
- if in_type not in in_type_set:
- raise ValueError(
- 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format(
- style, in_type_set
- )
+ # header parameters
+ header_params = header_params or {}
+ header_params.update(self.default_headers)
+ if self.cookie:
+ header_params['Cookie'] = self.cookie
+ if header_params:
+ header_params = self.sanitize_for_serialization(header_params)
+ header_params = dict(
+ self.parameters_to_tuples(header_params,collection_formats)
)
- def __init__(
- self,
- name: str,
- in_type: ParameterInType,
- required: bool = False,
- style: typing.Optional[ParameterStyle] = None,
- explode: bool = False,
- allow_reserved: typing.Optional[bool] = None,
- schema: typing.Optional[typing.Type[Schema]] = None,
- content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
- ):
- if schema is None and content is None:
- raise ValueError('Value missing; Pass in either schema or content')
- if schema and content:
- raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input')
- if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER:
- raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names))
- self.__verify_style_to_in_type(style, in_type)
- if content is None and style is None:
- style = self.__in_type_to_default_style[in_type]
- if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1:
- raise ValueError('Invalid content length, content length must equal 1')
- self.in_type = in_type
- self.name = name
- self.required = required
- self.style = style
- self.explode = explode
- self.allow_reserved = allow_reserved
- self.schema = schema
- self.content = content
-
- def _serialize_json(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- eliminate_whitespace: bool = False
- ) -> str:
- if eliminate_whitespace:
- return json.dumps(in_data, separators=self._json_encoder.compact_separators)
- return json.dumps(in_data)
-
-
-class PathParameter(ParameterBase, StyleSimpleSerializer):
+ # path parameters
+ if path_params:
+ path_params = self.sanitize_for_serialization(path_params)
+ path_params = self.parameters_to_tuples(
+ path_params,
+ collection_formats
+ )
+ for k, v in path_params:
+ # specified safe chars, encode everything
+ resource_path = resource_path.replace(
+ '{%s}' % k,
+ quote(str(v), safe=config.safe_chars_for_path_param)
+ )
- def __init__(
- self,
- name: str,
- required: bool = False,
- style: typing.Optional[ParameterStyle] = None,
- explode: bool = False,
- allow_reserved: typing.Optional[bool] = None,
- schema: typing.Optional[typing.Type[Schema]] = None,
- content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
- ):
- super().__init__(
- name,
- in_type=ParameterInType.PATH,
- required=required,
- style=style,
- explode=explode,
- allow_reserved=allow_reserved,
- schema=schema,
- content=content
- )
+ # post parameters
+ if post_params or files:
+ post_params = post_params if post_params else []
+ post_params = self.sanitize_for_serialization(post_params)
+ post_params = self.parameters_to_tuples(
+ post_params,
+ collection_formats
+ )
+ if files:
+ post_params.extend(self.files_parameters(files))
- def __serialize_label(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list]
- ) -> typing.Dict[str, str]:
- prefix_separator_iterator = PrefixSeparatorIterator('.', '.')
- value = self._ref6570_expansion(
- variable_name=self.name,
- in_data=in_data,
- explode=self.explode,
- percent_encode=True,
- prefix_separator_iterator=prefix_separator_iterator
+ # auth setting
+ self.update_params_for_auth(
+ header_params,
+ query_params,
+ auth_settings,
+ resource_path,
+ method,
+ body,
+ request_auth=_request_auth
)
- return self._to_dict(self.name, value)
- def __serialize_matrix(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list]
- ) -> typing.Dict[str, str]:
- prefix_separator_iterator = PrefixSeparatorIterator(';', ';')
- value = self._ref6570_expansion(
- variable_name=self.name,
- in_data=in_data,
- explode=self.explode,
- percent_encode=True,
- prefix_separator_iterator=prefix_separator_iterator
- )
- return self._to_dict(self.name, value)
+ # body
+ if body:
+ body = self.sanitize_for_serialization(body)
- def __serialize_simple(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- ) -> typing.Dict[str, str]:
- value = self._serialize_simple(
- in_data=in_data,
- name=self.name,
- explode=self.explode,
- percent_encode=True
- )
- return self._to_dict(self.name, value)
+ # request url
+ if _host is None or self.configuration.ignore_operation_servers:
+ url = self.configuration.host + resource_path
+ else:
+ # use server/host defined in path or operation instead
+ url = _host + resource_path
+
+ # query parameters
+ if query_params:
+ query_params = self.sanitize_for_serialization(query_params)
+ url_query = self.parameters_to_url_query(
+ query_params,
+ collection_formats
+ )
+ url += "?" + url_query
- def serialize(
- self,
- in_data: typing.Union[
- Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]
- ) -> typing.Dict[str, str]:
- if self.schema:
- cast_in_data = self.schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- """
- simple -> path
- path:
- returns path_params: dict
- label -> path
- returns path_params
- matrix -> path
- returns path_params
- """
- if self.style:
- if self.style is ParameterStyle.SIMPLE:
- return self.__serialize_simple(cast_in_data)
- elif self.style is ParameterStyle.LABEL:
- return self.__serialize_label(cast_in_data)
- elif self.style is ParameterStyle.MATRIX:
- return self.__serialize_matrix(cast_in_data)
- # self.content will be length one
- for content_type, schema in self.content.items():
- cast_in_data = schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- if self._content_type_is_json(content_type):
- value = self._serialize_json(cast_in_data)
- return self._to_dict(self.name, value)
- raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
-
-
-class QueryParameter(ParameterBase, StyleFormSerializer):
+ return method, url, header_params, body, post_params
- def __init__(
- self,
- name: str,
- required: bool = False,
- style: typing.Optional[ParameterStyle] = None,
- explode: typing.Optional[bool] = None,
- allow_reserved: typing.Optional[bool] = None,
- schema: typing.Optional[typing.Type[Schema]] = None,
- content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
- ):
- used_style = ParameterStyle.FORM if style is None else style
- used_explode = self._get_default_explode(used_style) if explode is None else explode
-
- super().__init__(
- name,
- in_type=ParameterInType.QUERY,
- required=required,
- style=used_style,
- explode=used_explode,
- allow_reserved=allow_reserved,
- schema=schema,
- content=content
- )
- def __serialize_space_delimited(
+ def call_api(
self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator]
- ) -> typing.Dict[str, str]:
- if prefix_separator_iterator is None:
- prefix_separator_iterator = self.get_prefix_separator_iterator()
- value = self._ref6570_expansion(
- variable_name=self.name,
- in_data=in_data,
- explode=self.explode,
- percent_encode=True,
- prefix_separator_iterator=prefix_separator_iterator
- )
- return self._to_dict(self.name, value)
+ method,
+ url,
+ header_params=None,
+ body=None,
+ post_params=None,
+ _request_timeout=None
+ ) -> rest.RESTResponse:
+ """Makes the HTTP request (synchronous)
+ :param method: Method to call.
+ :param url: Path to method endpoint.
+ :param header_params: Header parameters to be
+ placed in the request header.
+ :param body: Request body.
+ :param post_params dict: Request post form parameters,
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
+ :param _request_timeout: timeout setting for this request.
+ :return: RESTResponse
+ """
- def __serialize_pipe_delimited(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator]
- ) -> typing.Dict[str, str]:
- if prefix_separator_iterator is None:
- prefix_separator_iterator = self.get_prefix_separator_iterator()
- value = self._ref6570_expansion(
- variable_name=self.name,
- in_data=in_data,
- explode=self.explode,
- percent_encode=True,
- prefix_separator_iterator=prefix_separator_iterator
- )
- return self._to_dict(self.name, value)
+ try:
+ # perform request and return response
+ response_data = self.rest_client.request(
+ method, url,
+ headers=header_params,
+ body=body, post_params=post_params,
+ _request_timeout=_request_timeout
+ )
- def __serialize_form(
- self,
- in_data: typing.Union[None, int, float, str, bool, dict, list],
- prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator]
- ) -> typing.Dict[str, str]:
- if prefix_separator_iterator is None:
- prefix_separator_iterator = self.get_prefix_separator_iterator()
- value = self._serialize_form(
- in_data,
- name=self.name,
- explode=self.explode,
- percent_encode=True,
- prefix_separator_iterator=prefix_separator_iterator
- )
- return self._to_dict(self.name, value)
+ except ApiException as e:
+ raise e
- def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]:
- if self.style is ParameterStyle.FORM:
- return PrefixSeparatorIterator('?', '&')
- elif self.style is ParameterStyle.SPACE_DELIMITED:
- return PrefixSeparatorIterator('', '%20')
- elif self.style is ParameterStyle.PIPE_DELIMITED:
- return PrefixSeparatorIterator('', '|')
+ return response_data
- def serialize(
+ def response_deserialize(
self,
- in_data: typing.Union[
- Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict],
- prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None
- ) -> typing.Dict[str, str]:
- if self.schema:
- cast_in_data = self.schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- """
- form -> query
- query:
- - GET/HEAD/DELETE: could use fields
- - PUT/POST: must use urlencode to send parameters
- returns fields: tuple
- spaceDelimited -> query
- returns fields
- pipeDelimited -> query
- returns fields
- deepObject -> query, https://github.com/OAI/OpenAPI-Specification/issues/1706
- returns fields
- """
- if self.style:
- # TODO update query ones to omit setting values when [] {} or None is input
- if self.style is ParameterStyle.FORM:
- return self.__serialize_form(cast_in_data, prefix_separator_iterator)
- elif self.style is ParameterStyle.SPACE_DELIMITED:
- return self.__serialize_space_delimited(cast_in_data, prefix_separator_iterator)
- elif self.style is ParameterStyle.PIPE_DELIMITED:
- return self.__serialize_pipe_delimited(cast_in_data, prefix_separator_iterator)
- # self.content will be length one
- if prefix_separator_iterator is None:
- prefix_separator_iterator = self.get_prefix_separator_iterator()
- for content_type, schema in self.content.items():
- cast_in_data = schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- if self._content_type_is_json(content_type):
- value = self._serialize_json(cast_in_data, eliminate_whitespace=True)
- return self._to_dict(
- self.name,
- next(prefix_separator_iterator) + self.name + '=' + quote(value)
- )
- raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
-
+ response_data: rest.RESTResponse,
+ response_types_map: Optional[Dict[str, ApiResponseT]]=None
+ ) -> ApiResponse[ApiResponseT]:
+ """Deserializes response into an object.
+ :param response_data: RESTResponse object to be deserialized.
+ :param response_types_map: dict of response types.
+ :return: ApiResponse
+ """
-class CookieParameter(ParameterBase, StyleFormSerializer):
+ msg = "RESTResponse.read() must be called before passing it to response_deserialize()"
+ assert response_data.data is not None, msg
- def __init__(
- self,
- name: str,
- required: bool = False,
- style: typing.Optional[ParameterStyle] = None,
- explode: typing.Optional[bool] = None,
- allow_reserved: typing.Optional[bool] = None,
- schema: typing.Optional[typing.Type[Schema]] = None,
- content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
- ):
- used_style = ParameterStyle.FORM if style is None and content is None and schema else style
- used_explode = self._get_default_explode(used_style) if explode is None else explode
-
- super().__init__(
- name,
- in_type=ParameterInType.COOKIE,
- required=required,
- style=used_style,
- explode=used_explode,
- allow_reserved=allow_reserved,
- schema=schema,
- content=content
- )
+ response_type = response_types_map.get(str(response_data.status), None)
+ if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599:
+ # if not found, look for '1XX', '2XX', etc.
+ response_type = response_types_map.get(str(response_data.status)[0] + "XX", None)
- def serialize(
- self,
- in_data: typing.Union[
- Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]
- ) -> typing.Dict[str, str]:
- if self.schema:
- cast_in_data = self.schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- """
- form -> cookie
- returns fields: tuple
- """
- if self.style:
- """
- TODO add escaping of comma, space, equals
- or turn encoding on
- """
- value = self._serialize_form(
- cast_in_data,
- explode=self.explode,
- name=self.name,
- percent_encode=False,
- prefix_separator_iterator=PrefixSeparatorIterator('', '&')
+ # deserialize response data
+ response_text = None
+ return_data = None
+ try:
+ if response_type == "bytearray":
+ return_data = response_data.data
+ elif response_type == "file":
+ return_data = self.__deserialize_file(response_data)
+ elif response_type is not None:
+ match = None
+ content_type = response_data.getheader('content-type')
+ if content_type is not None:
+ match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
+ encoding = match.group(1) if match else "utf-8"
+ response_text = response_data.data.decode(encoding)
+ return_data = self.deserialize(response_text, response_type, content_type)
+ finally:
+ if not 200 <= response_data.status <= 299:
+ raise ApiException.from_response(
+ http_resp=response_data,
+ body=response_text,
+ data=return_data,
)
- return self._to_dict(self.name, value)
- # self.content will be length one
- for content_type, schema in self.content.items():
- cast_in_data = schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- if self._content_type_is_json(content_type):
- value = self._serialize_json(cast_in_data)
- return self._to_dict(self.name, value)
- raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
-
-
-class HeaderParameter(ParameterBase, StyleSimpleSerializer):
- def __init__(
- self,
- name: str,
- required: bool = False,
- style: typing.Optional[ParameterStyle] = None,
- explode: bool = False,
- allow_reserved: typing.Optional[bool] = None,
- schema: typing.Optional[typing.Type[Schema]] = None,
- content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None
- ):
- super().__init__(
- name,
- in_type=ParameterInType.HEADER,
- required=required,
- style=style,
- explode=explode,
- allow_reserved=allow_reserved,
- schema=schema,
- content=content
- )
- @staticmethod
- def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict:
- data = tuple(t for t in in_data if t)
- headers = HTTPHeaderDict()
- if not data:
- return headers
- headers.extend(data)
- return headers
+ return ApiResponse(
+ status_code = response_data.status,
+ data = return_data,
+ headers = response_data.getheaders(),
+ raw_data = response_data.data
+ )
- def serialize(
- self,
- in_data: typing.Union[
- Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]
- ) -> HTTPHeaderDict:
- if self.schema:
- cast_in_data = self.schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- """
- simple -> header
- headers: PoolManager needs a mapping, tuple is close
- returns headers: dict
- """
- if self.style:
- value = self._serialize_simple(cast_in_data, self.name, self.explode, False)
- return self.__to_headers(((self.name, value),))
- # self.content will be length one
- for content_type, schema in self.content.items():
- cast_in_data = schema(in_data)
- cast_in_data = self._json_encoder.default(cast_in_data)
- if self._content_type_is_json(content_type):
- value = self._serialize_json(cast_in_data)
- return self.__to_headers(((self.name, value),))
- raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))
-
-
-class Encoding:
- def __init__(
- self,
- content_type: str,
- headers: typing.Optional[typing.Dict[str, HeaderParameter]] = None,
- style: typing.Optional[ParameterStyle] = None,
- explode: bool = False,
- allow_reserved: bool = False,
- ):
- self.content_type = content_type
- self.headers = headers
- self.style = style
- self.explode = explode
- self.allow_reserved = allow_reserved
+ def sanitize_for_serialization(self, obj):
+ """Builds a JSON POST object.
+
+ If obj is None, return None.
+ If obj is SecretStr, return obj.get_secret_value()
+ If obj is str, int, long, float, bool, return directly.
+ If obj is datetime.datetime, datetime.date
+ convert to string in iso8601 format.
+ If obj is decimal.Decimal return string representation.
+ If obj is list, sanitize each element in the list.
+ If obj is dict, return the dict.
+ If obj is OpenAPI model, return the properties dict.
+
+ :param obj: The data to serialize.
+ :return: The serialized form of data.
+ """
+ if obj is None:
+ return None
+ elif isinstance(obj, Enum):
+ return obj.value
+ elif isinstance(obj, SecretStr):
+ return obj.get_secret_value()
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
+ return obj
+ elif isinstance(obj, list):
+ return [
+ self.sanitize_for_serialization(sub_obj) for sub_obj in obj
+ ]
+ elif isinstance(obj, tuple):
+ return tuple(
+ self.sanitize_for_serialization(sub_obj) for sub_obj in obj
+ )
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
+ return obj.isoformat()
+ elif isinstance(obj, decimal.Decimal):
+ return str(obj)
+ elif isinstance(obj, dict):
+ obj_dict = obj
+ else:
+ # Convert model obj to dict except
+ # attributes `openapi_types`, `attribute_map`
+ # and attributes which value is not None.
+ # Convert attribute name to json key in
+ # model definition for request.
+ if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
+ obj_dict = obj.to_dict()
+ else:
+ obj_dict = obj.__dict__
-@dataclass
-class MediaType:
- """
- Used to store request and response body schema information
- encoding:
- A map between a property name and its encoding information.
- The key, being the property name, MUST exist in the schema as a property.
- The encoding object SHALL only apply to requestBody objects when the media type is
- multipart or application/x-www-form-urlencoded.
- """
- schema: typing.Optional[typing.Type[Schema]] = None
- encoding: typing.Optional[typing.Dict[str, Encoding]] = None
+ return {
+ key: self.sanitize_for_serialization(val)
+ for key, val in obj_dict.items()
+ }
+ def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
+ """Deserializes response into an object.
-@dataclass
-class ApiResponse:
- response: urllib3.HTTPResponse
- body: typing.Union[Unset, Schema] = unset
- headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset
+ :param response: RESTResponse object to be deserialized.
+ :param response_type: class literal for
+ deserialized object, or string of class name.
+ :param content_type: content type of response.
- def __init__(
- self,
- response: urllib3.HTTPResponse,
- body: typing.Union[Unset, Schema] = unset,
- headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset
- ):
- """
- pycharm needs this to prevent 'Unexpected argument' warnings
+ :return: deserialized object.
"""
- self.response = response
- self.body = body
- self.headers = headers
+ # fetch data from response object
+ if content_type is None:
+ try:
+ data = json.loads(response_text)
+ except ValueError:
+ data = response_text
+ elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
+ if response_text == "":
+ data = ""
+ else:
+ data = json.loads(response_text)
+ elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE):
+ data = response_text
+ else:
+ raise ApiException(
+ status=0,
+ reason="Unsupported content type: {0}".format(content_type)
+ )
-@dataclass
-class ApiResponseWithoutDeserialization(ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[Unset, typing.Type[Schema]] = unset
- headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset
+ return self.__deserialize(data, response_type)
+ def __deserialize(self, data, klass):
+ """Deserializes dict, list, str into an object.
-class OpenApiResponse(JSONDetector):
- __filename_content_disposition_pattern = re.compile('filename="(.+?)"')
+ :param data: dict, list or str.
+ :param klass: class literal, or string of class name.
- def __init__(
- self,
- response_cls: typing.Type[ApiResponse] = ApiResponse,
- content: typing.Optional[typing.Dict[str, MediaType]] = None,
- headers: typing.Optional[typing.List[HeaderParameter]] = None,
- ):
- self.headers = headers
- if content is not None and len(content) == 0:
- raise ValueError('Invalid value for content, the content dict must have >= 1 entry')
- self.content = content
- self.response_cls = response_cls
-
- @staticmethod
- def __deserialize_json(response: urllib3.HTTPResponse) -> typing.Any:
- # python must be >= 3.9 so we can pass in bytes into json.loads
- return json.loads(response.data)
-
- @staticmethod
- def __file_name_from_response_url(response_url: typing.Optional[str]) -> typing.Optional[str]:
- if response_url is None:
- return None
- url_path = urlparse(response_url).path
- if url_path:
- path_basename = os.path.basename(url_path)
- if path_basename:
- _filename, ext = os.path.splitext(path_basename)
- if ext:
- return path_basename
- return None
-
- @classmethod
- def __file_name_from_content_disposition(cls, content_disposition: typing.Optional[str]) -> typing.Optional[str]:
- if content_disposition is None:
- return None
- match = cls.__filename_content_disposition_pattern.search(content_disposition)
- if not match:
- return None
- return match.group(1)
-
- def __deserialize_application_octet_stream(
- self, response: urllib3.HTTPResponse
- ) -> typing.Union[bytes, io.BufferedReader]:
- """
- urllib3 use cases:
- 1. when preload_content=True (stream=False) then supports_chunked_reads is False and bytes are returned
- 2. when preload_content=False (stream=True) then supports_chunked_reads is True and
- a file will be written and returned
+ :return: object.
"""
- if response.supports_chunked_reads():
- file_name = (
- self.__file_name_from_content_disposition(response.headers.get('content-disposition'))
- or self.__file_name_from_response_url(response.geturl())
- )
+ if data is None:
+ return None
- if file_name is None:
- _fd, path = tempfile.mkstemp()
+ if isinstance(klass, str):
+ if klass.startswith('List['):
+ m = re.match(r'List\[(.*)]', klass)
+ assert m is not None, "Malformed List type definition"
+ sub_kls = m.group(1)
+ return [self.__deserialize(sub_data, sub_kls)
+ for sub_data in data]
+
+ if klass.startswith('Dict['):
+ m = re.match(r'Dict\[([^,]*), (.*)]', klass)
+ assert m is not None, "Malformed Dict type definition"
+ sub_kls = m.group(2)
+ return {k: self.__deserialize(v, sub_kls)
+ for k, v in data.items()}
+
+ # convert str to class
+ if klass in self.NATIVE_TYPES_MAPPING:
+ klass = self.NATIVE_TYPES_MAPPING[klass]
else:
- path = os.path.join(tempfile.gettempdir(), file_name)
-
- with open(path, 'wb') as new_file:
- chunk_size = 1024
- while True:
- data = response.read(chunk_size)
- if not data:
- break
- new_file.write(data)
- # release_conn is needed for streaming connections only
- response.release_conn()
- new_file = open(path, 'rb')
- return new_file
+ klass = getattr(kinde_sdk.models, klass)
+
+ if klass in self.PRIMITIVE_TYPES:
+ return self.__deserialize_primitive(data, klass)
+ elif klass == object:
+ return self.__deserialize_object(data)
+ elif klass == datetime.date:
+ return self.__deserialize_date(data)
+ elif klass == datetime.datetime:
+ return self.__deserialize_datetime(data)
+ elif klass == decimal.Decimal:
+ return decimal.Decimal(data)
+ elif issubclass(klass, Enum):
+ return self.__deserialize_enum(data, klass)
else:
- return response.data
-
- @staticmethod
- def __deserialize_multipart_form_data(
- response: urllib3.HTTPResponse
- ) -> typing.Dict[str, typing.Any]:
- msg = email.message_from_bytes(response.data)
- return {
- part.get_param("name", header="Content-Disposition"): part.get_payload(
- decode=True
- ).decode(part.get_content_charset())
- if part.get_content_charset()
- else part.get_payload()
- for part in msg.get_payload()
- }
+ return self.__deserialize_model(data, klass)
- def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse:
- content_type = response.getheader('content-type')
- deserialized_body = unset
- streamed = response.supports_chunked_reads()
-
- deserialized_headers = unset
- if self.headers is not None:
- # TODO add header deserialiation here
- pass
-
- if self.content is not None:
- if content_type not in self.content:
- raise ApiValueError(
- f"Invalid content_type returned. Content_type='{content_type}' was returned "
- f"when only {str(set(self.content))} are defined for status_code={str(response.status)}"
- )
- body_schema = self.content[content_type].schema
- if body_schema is None:
- # some specs do not define response content media type schemas
- return self.response_cls(
- response=response,
- headers=deserialized_headers,
- body=unset
- )
+ def parameters_to_tuples(self, params, collection_formats):
+ """Get parameters as list of tuples, formatting collections.
- if self._content_type_is_json(content_type):
- body_data = self.__deserialize_json(response)
- elif content_type == 'application/octet-stream':
- body_data = self.__deserialize_application_octet_stream(response)
- elif content_type.startswith('multipart/form-data'):
- body_data = self.__deserialize_multipart_form_data(response)
- content_type = 'multipart/form-data'
+ :param params: Parameters as dict or list of two-tuples
+ :param dict collection_formats: Parameter collection formats
+ :return: Parameters as list of tuples, collections formatted
+ """
+ new_params: List[Tuple[str, str]] = []
+ if collection_formats is None:
+ collection_formats = {}
+ for k, v in params.items() if isinstance(params, dict) else params:
+ if k in collection_formats:
+ collection_format = collection_formats[k]
+ if collection_format == 'multi':
+ new_params.extend((k, value) for value in v)
+ else:
+ if collection_format == 'ssv':
+ delimiter = ' '
+ elif collection_format == 'tsv':
+ delimiter = '\t'
+ elif collection_format == 'pipes':
+ delimiter = '|'
+ else: # csv is the default
+ delimiter = ','
+ new_params.append(
+ (k, delimiter.join(str(value) for value in v)))
else:
- raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type))
- deserialized_body = body_schema.from_openapi_data_oapg(
- body_data, _configuration=configuration)
- elif streamed:
- response.release_conn()
-
- return self.response_cls(
- response=response,
- headers=deserialized_headers,
- body=deserialized_body
- )
-
+ new_params.append((k, v))
+ return new_params
-class ApiClient:
- """Generic API client for OpenAPI client library builds.
+ def parameters_to_url_query(self, params, collection_formats):
+ """Get parameters as list of tuples, formatting collections.
- OpenAPI generic API client. This client handles the client-
- server communication, and is invariant across implementations. Specifics of
- the methods and models for each application are generated from the OpenAPI
- templates.
-
- NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
- Do not edit the class manually.
-
- :param configuration: .Configuration object for this client
- :param header_name: a header to pass when making calls to the API.
- :param header_value: a header value to pass when making calls to
- the API.
- :param cookie: a cookie to include in the header when making calls
- to the API
- :param pool_threads: The number of threads to use for async requests
- to the API. More threads means more concurrent API requests.
- """
+ :param params: Parameters as dict or list of two-tuples
+ :param dict collection_formats: Parameter collection formats
+ :return: URL query string (e.g. a=Hello%20World&b=123)
+ """
+ new_params: List[Tuple[str, str]] = []
+ if collection_formats is None:
+ collection_formats = {}
+ for k, v in params.items() if isinstance(params, dict) else params:
+ if isinstance(v, bool):
+ v = str(v).lower()
+ if isinstance(v, (int, float)):
+ v = str(v)
+ if isinstance(v, dict):
+ v = json.dumps(v)
+
+ if k in collection_formats:
+ collection_format = collection_formats[k]
+ if collection_format == 'multi':
+ new_params.extend((k, quote(str(value))) for value in v)
+ else:
+ if collection_format == 'ssv':
+ delimiter = ' '
+ elif collection_format == 'tsv':
+ delimiter = '\t'
+ elif collection_format == 'pipes':
+ delimiter = '|'
+ else: # csv is the default
+ delimiter = ','
+ new_params.append(
+ (k, delimiter.join(quote(str(value)) for value in v))
+ )
+ else:
+ new_params.append((k, quote(str(v))))
- _pool = None
+ return "&".join(["=".join(map(str, item)) for item in new_params])
- def __init__(
+ def files_parameters(
self,
- configuration: typing.Optional[Configuration] = None,
- header_name: typing.Optional[str] = None,
- header_value: typing.Optional[str] = None,
- cookie: typing.Optional[str] = None,
- pool_threads: int = 1
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
):
- if configuration is None:
- configuration = Configuration()
- self.configuration = configuration
- self.pool_threads = pool_threads
+ """Builds form parameters.
- self.rest_client = rest.RESTClientObject(configuration)
- self.default_headers = HTTPHeaderDict()
- if header_name is not None:
- self.default_headers[header_name] = header_value
- self.cookie = cookie
- # Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/1.0.0/python'
-
- def __enter__(self):
- return self
-
- def __exit__(self, exc_type, exc_value, traceback):
- self.close()
+ :param files: File parameters.
+ :return: Form parameters with files.
+ """
+ params = []
+ for k, v in files.items():
+ if isinstance(v, str):
+ with open(v, 'rb') as f:
+ filename = os.path.basename(f.name)
+ filedata = f.read()
+ elif isinstance(v, bytes):
+ filename = k
+ filedata = v
+ elif isinstance(v, tuple):
+ filename, filedata = v
+ elif isinstance(v, list):
+ for file_param in v:
+ params.extend(self.files_parameters({k: file_param}))
+ continue
+ else:
+ raise ValueError("Unsupported file value")
+ mimetype = (
+ mimetypes.guess_type(filename)[0]
+ or 'application/octet-stream'
+ )
+ params.append(
+ tuple([k, tuple([filename, filedata, mimetype])])
+ )
+ return params
- def close(self):
- if self._pool:
- self._pool.close()
- self._pool.join()
- self._pool = None
- if hasattr(atexit, 'unregister'):
- atexit.unregister(self.close)
+ def select_header_accept(self, accepts: List[str]) -> Optional[str]:
+ """Returns `Accept` based on an array of accepts provided.
- @property
- def pool(self):
- """Create thread pool on first request
- avoids instantiating unused threadpool for blocking clients.
+ :param accepts: List of headers.
+ :return: Accept (e.g. application/json).
"""
- if self._pool is None:
- atexit.register(self.close)
- self._pool = ThreadPool(self.pool_threads)
- return self._pool
-
- @property
- def user_agent(self):
- """User agent for this API client"""
- return self.default_headers['User-Agent']
+ if not accepts:
+ return None
- @user_agent.setter
- def user_agent(self, value):
- self.default_headers['User-Agent'] = value
+ for accept in accepts:
+ if re.search('json', accept, re.IGNORECASE):
+ return accept
- def set_default_header(self, header_name, header_value):
- self.default_headers[header_name] = header_value
+ return accepts[0]
- def __call_api(
- self,
- resource_path: str,
- method: str,
- headers: typing.Optional[HTTPHeaderDict] = None,
- body: typing.Optional[typing.Union[str, bytes]] = None,
- fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None,
- auth_settings: typing.Optional[typing.List[str]] = None,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- host: typing.Optional[str] = None,
- ) -> urllib3.HTTPResponse:
+ def select_header_content_type(self, content_types):
+ """Returns `Content-Type` based on an array of content_types provided.
- # header parameters
- used_headers = HTTPHeaderDict(self.default_headers)
- if self.cookie:
- headers['Cookie'] = self.cookie
+ :param content_types: List of content-types.
+ :return: Content-Type (e.g. application/json).
+ """
+ if not content_types:
+ return None
- # auth setting
- self.update_params_for_auth(used_headers,
- auth_settings, resource_path, method, body)
+ for content_type in content_types:
+ if re.search('json', content_type, re.IGNORECASE):
+ return content_type
- # must happen after cookie setting and auth setting in case user is overriding those
- if headers:
- used_headers.update(headers)
+ return content_types[0]
- # request url
- if host is None:
- url = self.configuration.host + resource_path
- else:
- # use server/host defined in path or operation instead
- url = host + resource_path
-
- # perform request and return response
- response = self.request(
- method,
- url,
- headers=used_headers,
- fields=fields,
- body=body,
- stream=stream,
- timeout=timeout,
- )
- return response
-
- def call_api(
+ def update_params_for_auth(
self,
- resource_path: str,
- method: str,
- headers: typing.Optional[HTTPHeaderDict] = None,
- body: typing.Optional[typing.Union[str, bytes]] = None,
- fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None,
- auth_settings: typing.Optional[typing.List[str]] = None,
- async_req: typing.Optional[bool] = None,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- host: typing.Optional[str] = None,
- ) -> urllib3.HTTPResponse:
- """Makes the HTTP request (synchronous) and returns deserialized data.
-
- To make an async_req request, set the async_req parameter.
+ headers,
+ queries,
+ auth_settings,
+ resource_path,
+ method,
+ body,
+ request_auth=None
+ ) -> None:
+ """Updates header and query params based on authentication setting.
- :param resource_path: Path to method endpoint.
- :param method: Method to call.
- :param headers: Header parameters to be
- placed in the request header.
- :param body: Request body.
- :param fields: Request post form parameters,
- for `application/x-www-form-urlencoded`, `multipart/form-data`.
- :param auth_settings: Auth Settings names for the request.
- :param async_req: execute request asynchronously
- :type async_req: bool, optional TODO remove, unused
- :param stream: if True, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Also when True, if the openapi spec describes a file download,
- the data will be written to a local filesystme file and the BinarySchema
- instance will also inherit from FileSchema and FileIO
- Default is False.
- :type stream: bool, optional
- :param timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :param host: api endpoint host
- :return:
- If async_req parameter is True,
- the request will be called asynchronously.
- The method will return the request thread.
- If parameter async_req is False or missing,
- then the method will return the response directly.
+ :param headers: Header parameters dict to be updated.
+ :param queries: Query parameters tuple list to be updated.
+ :param auth_settings: Authentication setting identifiers list.
+ :resource_path: A string representation of the HTTP request resource path.
+ :method: A string representation of the HTTP request method.
+ :body: A object representing the body of the HTTP request.
+ The object type is the return value of sanitize_for_serialization().
+ :param request_auth: if set, the provided settings will
+ override the token in the configuration.
"""
+ if not auth_settings:
+ return
- if not async_req:
- return self.__call_api(
- resource_path,
- method,
+ if request_auth:
+ self._apply_auth_params(
headers,
- body,
- fields,
- auth_settings,
- stream,
- timeout,
- host,
- )
-
- return self.pool.apply_async(
- self.__call_api,
- (
+ queries,
resource_path,
method,
- headers,
body,
- json,
- fields,
- auth_settings,
- stream,
- timeout,
- host,
+ request_auth
)
- )
-
- def request(
+ else:
+ for auth in auth_settings:
+ auth_setting = self.configuration.auth_settings().get(auth)
+ if auth_setting:
+ self._apply_auth_params(
+ headers,
+ queries,
+ resource_path,
+ method,
+ body,
+ auth_setting
+ )
+
+ def _apply_auth_params(
self,
- method: str,
- url: str,
- headers: typing.Optional[HTTPHeaderDict] = None,
- fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None,
- body: typing.Optional[typing.Union[str, bytes]] = None,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> urllib3.HTTPResponse:
- """Makes the HTTP request using RESTClient."""
- if method == "GET":
- return self.rest_client.GET(url,
- stream=stream,
- timeout=timeout,
- headers=headers)
- elif method == "HEAD":
- return self.rest_client.HEAD(url,
- stream=stream,
- timeout=timeout,
- headers=headers)
- elif method == "OPTIONS":
- return self.rest_client.OPTIONS(url,
- headers=headers,
- fields=fields,
- stream=stream,
- timeout=timeout,
- body=body)
- elif method == "POST":
- return self.rest_client.POST(url,
- headers=headers,
- fields=fields,
- stream=stream,
- timeout=timeout,
- body=body)
- elif method == "PUT":
- return self.rest_client.PUT(url,
- headers=headers,
- fields=fields,
- stream=stream,
- timeout=timeout,
- body=body)
- elif method == "PATCH":
- return self.rest_client.PATCH(url,
- headers=headers,
- fields=fields,
- stream=stream,
- timeout=timeout,
- body=body)
- elif method == "DELETE":
- return self.rest_client.DELETE(url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- body=body)
+ headers,
+ queries,
+ resource_path,
+ method,
+ body,
+ auth_setting
+ ) -> None:
+ """Updates the request parameters based on a single auth_setting
+
+ :param headers: Header parameters dict to be updated.
+ :param queries: Query parameters tuple list to be updated.
+ :resource_path: A string representation of the HTTP request resource path.
+ :method: A string representation of the HTTP request method.
+ :body: A object representing the body of the HTTP request.
+ The object type is the return value of sanitize_for_serialization().
+ :param auth_setting: auth settings for the endpoint
+ """
+ if auth_setting['in'] == 'cookie':
+ headers['Cookie'] = auth_setting['value']
+ elif auth_setting['in'] == 'header':
+ if auth_setting['type'] != 'http-signature':
+ headers[auth_setting['key']] = auth_setting['value']
+ elif auth_setting['in'] == 'query':
+ queries.append((auth_setting['key'], auth_setting['value']))
else:
raise ApiValueError(
- "http method must be `GET`, `HEAD`, `OPTIONS`,"
- " `POST`, `PATCH`, `PUT` or `DELETE`."
+ 'Authentication token must be in `query` or `header`'
)
- def update_params_for_auth(self, headers, auth_settings,
- resource_path, method, body):
- """Updates header and query params based on authentication setting.
+ def __deserialize_file(self, response):
+ """Deserializes body to file
- :param headers: Header parameters dict to be updated.
- :param auth_settings: Authentication setting identifiers list.
- :param resource_path: A string representation of the HTTP request resource path.
- :param method: A string representation of the HTTP request method.
- :param body: A object representing the body of the HTTP request.
- The object type is the return value of _encoder.default().
- """
- if not auth_settings:
- return
+ Saves response body into a file in a temporary folder,
+ using the filename from the `Content-Disposition` header if provided.
- for auth in auth_settings:
- auth_setting = self.configuration.auth_settings().get(auth)
- if not auth_setting:
- continue
- if auth_setting['in'] == 'cookie':
- headers.add('Cookie', auth_setting['value'])
- elif auth_setting['in'] == 'header':
- if auth_setting['type'] != 'http-signature':
- headers.add(auth_setting['key'], auth_setting['value'])
- elif auth_setting['in'] == 'query':
- """ TODO implement auth in query
- need to pass in prefix_separator_iterator
- and need to output resource_path with query params added
- """
- raise ApiValueError("Auth in query not yet implemented")
- else:
- raise ApiValueError(
- 'Authentication token must be in `query` or `header`'
- )
+ handle file downloading
+ save response body into a tmp file and return the instance
+ :param response: RESTResponse.
+ :return: file path.
+ """
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
+ os.close(fd)
+ os.remove(path)
+
+ content_disposition = response.getheader("Content-Disposition")
+ if content_disposition:
+ m = re.search(
+ r'filename=[\'"]?([^\'"\s]+)[\'"]?',
+ content_disposition
+ )
+ assert m is not None, "Unexpected 'content-disposition' header value"
+ filename = m.group(1)
+ path = os.path.join(os.path.dirname(path), filename)
-class Api:
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
+ with open(path, "wb") as f:
+ f.write(response.data)
- Do not edit the class manually.
- """
+ return path
+
+ def __deserialize_primitive(self, data, klass):
+ """Deserializes string to primitive type.
- def __init__(self, api_client: typing.Optional[ApiClient] = None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
+ :param data: str.
+ :param klass: class literal.
- @staticmethod
- def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]):
+ :return: int, long, float, str, bool.
"""
- Ensures that:
- - required keys are present
- - additional properties are not input
- - value stored under required keys do not have the value unset
- Note: detailed value checking is done in schema classes
+ try:
+ return klass(data)
+ except UnicodeEncodeError:
+ return str(data)
+ except TypeError:
+ return data
+
+ def __deserialize_object(self, value):
+ """Return an original value.
+
+ :return: object.
"""
- missing_required_keys = []
- required_keys_with_unset_values = []
- for required_key in cls.__required_keys__:
- if required_key not in data:
- missing_required_keys.append(required_key)
- continue
- value = data[required_key]
- if value is unset:
- required_keys_with_unset_values.append(required_key)
- if missing_required_keys:
- raise ApiTypeError(
- '{} missing {} required arguments: {}'.format(
- cls.__name__, len(missing_required_keys), missing_required_keys
- )
- )
- if required_keys_with_unset_values:
- raise ApiValueError(
- '{} contains invalid unset values for {} required keys: {}'.format(
- cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values
- )
- )
+ return value
- disallowed_additional_keys = []
- for key in data:
- if key in cls.__required_keys__ or key in cls.__optional_keys__:
- continue
- disallowed_additional_keys.append(key)
- if disallowed_additional_keys:
- raise ApiTypeError(
- '{} got {} unexpected keyword arguments: {}'.format(
- cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys
- )
- )
+ def __deserialize_date(self, string):
+ """Deserializes string to date.
- def _get_host_oapg(
- self,
- operation_id: str,
- servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(),
- host_index: typing.Optional[int] = None
- ) -> typing.Optional[str]:
- configuration = self.api_client.configuration
+ :param string: str.
+ :return: date.
+ """
try:
- if host_index is None:
- index = configuration.server_operation_index.get(
- operation_id, configuration.server_index
- )
- else:
- index = host_index
- server_variables = configuration.server_operation_variables.get(
- operation_id, configuration.server_variables
+ return parse(string).date()
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason="Failed to parse `{0}` as date object".format(string)
)
- host = configuration.get_host_from_settings(
- index, variables=server_variables, servers=servers
- )
- except IndexError:
- if servers:
- raise ApiValueError(
- "Invalid host index. Must be 0 <= index < %s" %
- len(servers)
- )
- host = None
- return host
-
-class SerializedRequestBody(typing_extensions.TypedDict, total=False):
- body: typing.Union[str, bytes]
- fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]
+ def __deserialize_datetime(self, string):
+ """Deserializes string to datetime.
+ The string should be in iso8601 datetime format.
-class RequestBody(StyleFormSerializer, JSONDetector):
- """
- A request body parameter
- content: content_type to MediaType Schema info
- """
- __json_encoder = JSONEncoder()
+ :param string: str.
+ :return: datetime.
+ """
+ try:
+ return parse(string)
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason=(
+ "Failed to parse `{0}` as datetime object"
+ .format(string)
+ )
+ )
- def __init__(
- self,
- content: typing.Dict[str, MediaType],
- required: bool = False,
- ):
- self.required = required
- if len(content) == 0:
- raise ValueError('Invalid value for content, the content dict must have >= 1 entry')
- self.content = content
+ def __deserialize_enum(self, data, klass):
+ """Deserializes primitive type to enum.
- def __serialize_json(
- self,
- in_data: typing.Any
- ) -> typing.Dict[str, bytes]:
- in_data = self.__json_encoder.default(in_data)
- json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode(
- "utf-8"
- )
- return dict(body=json_str)
-
- @staticmethod
- def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]:
- if isinstance(in_data, frozendict.frozendict):
- raise ValueError('Unable to serialize type frozendict.frozendict to text/plain')
- elif isinstance(in_data, tuple):
- raise ValueError('Unable to serialize type tuple to text/plain')
- elif isinstance(in_data, NoneClass):
- raise ValueError('Unable to serialize type NoneClass to text/plain')
- elif isinstance(in_data, BoolClass):
- raise ValueError('Unable to serialize type BoolClass to text/plain')
- return dict(body=str(in_data))
-
- def __multipart_json_item(self, key: str, value: Schema) -> RequestField:
- json_value = self.__json_encoder.default(value)
- request_field = RequestField(name=key, data=json.dumps(json_value))
- request_field.make_multipart(content_type='application/json')
- return request_field
-
- def __multipart_form_item(self, key: str, value: Schema) -> RequestField:
- if isinstance(value, str):
- request_field = RequestField(name=key, data=str(value))
- request_field.make_multipart(content_type='text/plain')
- elif isinstance(value, bytes):
- request_field = RequestField(name=key, data=value)
- request_field.make_multipart(content_type='application/octet-stream')
- elif isinstance(value, FileIO):
- # TODO use content.encoding to limit allowed content types if they are present
- request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read()))
- value.close()
- else:
- request_field = self.__multipart_json_item(key=key, value=value)
- return request_field
-
- def __serialize_multipart_form_data(
- self, in_data: Schema
- ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]:
- if not isinstance(in_data, frozendict.frozendict):
- raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data')
+ :param data: primitive type.
+ :param klass: class literal.
+ :return: enum value.
"""
- In a multipart/form-data request body, each schema property, or each element of a schema array property,
- takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy
- for each property of a multipart/form-data request body can be specified in an associated Encoding Object.
+ try:
+ return klass(data)
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason=(
+ "Failed to parse `{0}` as `{1}`"
+ .format(data, klass)
+ )
+ )
- When passing in multipart types, boundaries MAY be used to separate sections of the content being
- transferred – thus, the following default Content-Types are defined for multipart:
+ def __deserialize_model(self, data, klass):
+ """Deserializes list or dict to model.
- If the (object) property is a primitive, or an array of primitive values, the default Content-Type is text/plain
- If the property is complex, or an array of complex values, the default Content-Type is application/json
- Question: how is the array of primitives encoded?
- If the property is a type: string with a contentEncoding, the default Content-Type is application/octet-stream
- """
- fields = []
- for key, value in in_data.items():
- if isinstance(value, tuple):
- if value:
- # values use explode = True, so the code makes a RequestField for each item with name=key
- for item in value:
- request_field = self.__multipart_form_item(key=key, value=item)
- fields.append(request_field)
- else:
- # send an empty array as json because exploding will not send it
- request_field = self.__multipart_json_item(key=key, value=value)
- fields.append(request_field)
- else:
- request_field = self.__multipart_form_item(key=key, value=value)
- fields.append(request_field)
-
- return dict(fields=tuple(fields))
-
- def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing.Dict[str, bytes]:
- if isinstance(in_data, bytes):
- return dict(body=in_data)
- # FileIO type
- result = dict(body=in_data.read())
- in_data.close()
- return result
-
- def __serialize_application_x_www_form_data(
- self, in_data: typing.Any
- ) -> SerializedRequestBody:
- """
- POST submission of form data in body
- """
- if not isinstance(in_data, frozendict.frozendict):
- raise ValueError(
- f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data')
- cast_in_data = self.__json_encoder.default(in_data)
- value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True)
- return dict(body=value)
-
- def serialize(
- self, in_data: typing.Any, content_type: str
- ) -> SerializedRequestBody:
+ :param data: dict, list.
+ :param klass: class literal.
+ :return: model object.
"""
- If a str is returned then the result will be assigned to data when making the request
- If a tuple is returned then the result will be used as fields input in encode_multipart_formdata
- Return a tuple of
- The key of the return dict is
- - body for application/json
- - encode_multipart and fields for multipart/form-data
- """
- media_type = self.content[content_type]
- if isinstance(in_data, media_type.schema):
- cast_in_data = in_data
- elif isinstance(in_data, (dict, frozendict.frozendict)) and in_data:
- cast_in_data = media_type.schema(**in_data)
- else:
- cast_in_data = media_type.schema(in_data)
- # TODO check for and use encoding if it exists
- # and content_type is multipart or application/x-www-form-urlencoded
- if self._content_type_is_json(content_type):
- return self.__serialize_json(cast_in_data)
- elif content_type == 'text/plain':
- return self.__serialize_text_plain(cast_in_data)
- elif content_type == 'multipart/form-data':
- return self.__serialize_multipart_form_data(cast_in_data)
- elif content_type == 'application/x-www-form-urlencoded':
- return self.__serialize_application_x_www_form_data(cast_in_data)
- elif content_type == 'application/octet-stream':
- return self.__serialize_application_octet_stream(cast_in_data)
- raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type))
\ No newline at end of file
+ return klass.from_dict(data)
diff --git a/kinde_sdk/api_response.py b/kinde_sdk/api_response.py
new file mode 100644
index 00000000..9bc7c11f
--- /dev/null
+++ b/kinde_sdk/api_response.py
@@ -0,0 +1,21 @@
+"""API response object."""
+
+from __future__ import annotations
+from typing import Optional, Generic, Mapping, TypeVar
+from pydantic import Field, StrictInt, StrictBytes, BaseModel
+
+T = TypeVar("T")
+
+class ApiResponse(BaseModel, Generic[T]):
+ """
+ API response object
+ """
+
+ status_code: StrictInt = Field(description="HTTP status code")
+ headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers")
+ data: T = Field(description="Deserialized data given the data type")
+ raw_data: StrictBytes = Field(description="Raw data (HTTP response body)")
+
+ model_config = {
+ "arbitrary_types_allowed": True
+ }
diff --git a/kinde_sdk/configuration.py b/kinde_sdk/configuration.py
index 476e3510..e0e3e779 100644
--- a/kinde_sdk/configuration.py
+++ b/kinde_sdk/configuration.py
@@ -3,70 +3,152 @@
"""
Kinde Management API
- Provides endpoints to manage your Kinde Businesses # noqa: E501
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
The version of the OpenAPI document: 1
Contact: support@kinde.com
- Generated by: https://openapi-generator.tech
-"""
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
import copy
+import http.client as httplib
import logging
+from logging import FileHandler
import multiprocessing
import sys
-import urllib3
+from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
+from typing_extensions import NotRequired, Self
-from http import client as http_client
-from kinde_sdk.exceptions import ApiValueError
+import urllib3
JSON_SCHEMA_VALIDATION_KEYWORDS = {
'multipleOf', 'maximum', 'exclusiveMaximum',
'minimum', 'exclusiveMinimum', 'maxLength',
- 'minLength', 'pattern', 'maxItems', 'minItems',
- 'uniqueItems', 'maxProperties', 'minProperties',
+ 'minLength', 'pattern', 'maxItems', 'minItems'
}
-class Configuration(object):
- """NOTE: This class is auto generated by OpenAPI Generator
-
- Ref: https://openapi-generator.tech
- Do not edit the class manually.
-
- :param host: Base url
+ServerVariablesT = Dict[str, str]
+
+GenericAuthSetting = TypedDict(
+ "GenericAuthSetting",
+ {
+ "type": str,
+ "in": str,
+ "key": str,
+ "value": str,
+ },
+)
+
+
+OAuth2AuthSetting = TypedDict(
+ "OAuth2AuthSetting",
+ {
+ "type": Literal["oauth2"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+APIKeyAuthSetting = TypedDict(
+ "APIKeyAuthSetting",
+ {
+ "type": Literal["api_key"],
+ "in": str,
+ "key": str,
+ "value": Optional[str],
+ },
+)
+
+
+BasicAuthSetting = TypedDict(
+ "BasicAuthSetting",
+ {
+ "type": Literal["basic"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": Optional[str],
+ },
+)
+
+
+BearerFormatAuthSetting = TypedDict(
+ "BearerFormatAuthSetting",
+ {
+ "type": Literal["bearer"],
+ "in": Literal["header"],
+ "format": Literal["JWT"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+BearerAuthSetting = TypedDict(
+ "BearerAuthSetting",
+ {
+ "type": Literal["bearer"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+HTTPSignatureAuthSetting = TypedDict(
+ "HTTPSignatureAuthSetting",
+ {
+ "type": Literal["http-signature"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": None,
+ },
+)
+
+
+AuthSettings = TypedDict(
+ "AuthSettings",
+ {
+ "kindeBearerAuth": BearerFormatAuthSetting,
+ },
+ total=False,
+)
+
+
+class HostSettingVariable(TypedDict):
+ description: str
+ default_value: str
+ enum_values: List[str]
+
+
+class HostSetting(TypedDict):
+ url: str
+ description: str
+ variables: NotRequired[Dict[str, HostSettingVariable]]
+
+
+class Configuration:
+ """This class contains various settings of the API client.
+
+ :param host: Base url.
+ :param ignore_operation_servers
+ Boolean to ignore operation servers for the API client.
+ Config will use `host` as the base url regardless of the operation servers.
:param api_key: Dict to store API key(s).
Each entry in the dict specifies an API key.
The dict key is the name of the security scheme in the OAS specification.
The dict value is the API key secret.
- :param api_key_prefix: Dict to store API prefix (e.g. Bearer)
+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
The dict key is the name of the security scheme in the OAS specification.
The dict value is an API key prefix when generating the auth data.
- :param username: Username for HTTP basic authentication
- :param password: Password for HTTP basic authentication
- :param discard_unknown_keys: Boolean value indicating whether to discard
- unknown properties. A server may send a response that includes additional
- properties that are not known by the client in the following scenarios:
- 1. The OpenAPI document is incomplete, i.e. it does not match the server
- implementation.
- 2. The client was generated using an older version of the OpenAPI document
- and the server has been upgraded since then.
- If a schema in the OpenAPI document defines the additionalProperties attribute,
- then all undeclared properties received by the server are injected into the
- additional properties map. In that case, there are undeclared properties, and
- nothing to discard.
- :param disabled_client_side_validations (string): Comma-separated list of
- JSON schema validation keywords to disable JSON schema structural validation
- rules. The following keywords may be specified: multipleOf, maximum,
- exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,
- maxItems, minItems.
- By default, the validation is performed for data generated locally by the client
- and data received from the server, independent of any validation performed by
- the server side. If the input data does not satisfy the JSON schema validation
- rules specified in the OpenAPI document, an exception is raised.
- If disabled_client_side_validations is set, structural validation is
- disabled. This can be useful to troubleshoot data validation problem, such as
- when the OpenAPI document validation rules do not match the actual API data
- received by the server.
+ :param username: Username for HTTP basic authentication.
+ :param password: Password for HTTP basic authentication.
+ :param access_token: Access token.
:param server_index: Index to servers configuration.
:param server_variables: Mapping with string values to replace variables in
templated server configuration. The validation of enums is performed for
@@ -75,26 +157,41 @@ class Configuration(object):
configuration.
:param server_operation_variables: Mapping from operation ID to a mapping with
string values to replace variables in templated server configuration.
- The validation of enums is performed for variables with defined enum values before.
+ The validation of enums is performed for variables with defined enum
+ values before.
+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
+ in PEM format.
+ :param retries: Number of retries for API requests.
+ :param ca_cert_data: verify the peer using concatenated CA certificate data
+ in PEM (str) or DER (bytes) format.
:Example:
"""
- _default = None
+ _default: ClassVar[Optional[Self]] = None
def __init__(
self,
- host=None,
- discard_unknown_keys=False,
- disabled_client_side_validations="",
- server_index=None,
- server_variables=None,
- server_operation_index=None,
- server_operation_variables=None,
- ):
+ host: Optional[str]=None,
+ api_key: Optional[Dict[str, str]]=None,
+ api_key_prefix: Optional[Dict[str, str]]=None,
+ username: Optional[str]=None,
+ password: Optional[str]=None,
+ access_token: Optional[str]=None,
+ server_index: Optional[int]=None,
+ server_variables: Optional[ServerVariablesT]=None,
+ server_operation_index: Optional[Dict[int, int]]=None,
+ server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
+ ignore_operation_servers: bool=False,
+ ssl_ca_cert: Optional[str]=None,
+ retries: Optional[int] = None,
+ ca_cert_data: Optional[Union[str, bytes]] = None,
+ *,
+ debug: Optional[bool] = None,
+ ) -> None:
"""Constructor
"""
- self._base_path = "https://app.kinde.com" if host is None else host
+ self._base_path = "https://your_kinde_subdomain.kinde.com" if host is None else host
"""Default Base url
"""
self.server_index = 0 if server_index is None and host is None else server_index
@@ -105,11 +202,35 @@ def __init__(
self.server_operation_variables = server_operation_variables or {}
"""Default server variables
"""
+ self.ignore_operation_servers = ignore_operation_servers
+ """Ignore operation servers
+ """
self.temp_folder_path = None
"""Temp file folder for downloading files
"""
# Authentication Settings
- self.disabled_client_side_validations = disabled_client_side_validations
+ self.api_key = {}
+ if api_key:
+ self.api_key = api_key
+ """dict to store API key(s)
+ """
+ self.api_key_prefix = {}
+ if api_key_prefix:
+ self.api_key_prefix = api_key_prefix
+ """dict to store API prefix (e.g. Bearer)
+ """
+ self.refresh_api_key_hook = None
+ """function hook to refresh API key if expired
+ """
+ self.username = username
+ """Username for HTTP basic authentication
+ """
+ self.password = password
+ """Password for HTTP basic authentication
+ """
+ self.access_token = access_token
+ """Access token
+ """
self.logger = {}
"""Logging Settings
"""
@@ -121,13 +242,16 @@ def __init__(
self.logger_stream_handler = None
"""Log stream handler
"""
- self.logger_file_handler = None
+ self.logger_file_handler: Optional[FileHandler] = None
"""Log file handler
"""
self.logger_file = None
"""Debug file location
"""
- self.debug = False
+ if debug is not None:
+ self.debug = debug
+ else:
+ self.__debug = False
"""Debug switch
"""
@@ -136,9 +260,13 @@ def __init__(
Set this to false to skip verifying SSL certificate when calling API
from https server.
"""
- self.ssl_ca_cert = None
+ self.ssl_ca_cert = ssl_ca_cert
"""Set this to customize the certificate file to verify the peer.
"""
+ self.ca_cert_data = ca_cert_data
+ """Set this to verify the peer using PEM (str) or DER (bytes)
+ certificate data.
+ """
self.cert_file = None
"""client certificate file
"""
@@ -148,6 +276,10 @@ def __init__(
self.assert_hostname = None
"""Set this to True/False to enable/disable SSL hostname verification.
"""
+ self.tls_server_name = None
+ """SSL/TLS Server Name Indication (SNI)
+ Set this to the SNI value expected by the server.
+ """
self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
"""urllib3 connection pool's maximum number of connections saved
@@ -157,7 +289,7 @@ def __init__(
cpu_count * 5 is used as default value to increase performance.
"""
- self.proxy = None
+ self.proxy: Optional[str] = None
"""Proxy URL
"""
self.proxy_headers = None
@@ -166,16 +298,25 @@ def __init__(
self.safe_chars_for_path_param = ''
"""Safe chars for path_param
"""
- self.retries = None
+ self.retries = retries
"""Adding retries to override urllib3 default value 3
"""
# Enable client side validation
self.client_side_validation = True
- # Options to pass down to the underlying urllib3 socket
self.socket_options = None
+ """Options to pass down to the underlying urllib3 socket
+ """
+
+ self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
+ """datetime format
+ """
+
+ self.date_format = "%Y-%m-%d"
+ """date format
+ """
- def __deepcopy__(self, memo):
+ def __deepcopy__(self, memo: Dict[int, Any]) -> Self:
cls = self.__class__
result = cls.__new__(cls)
memo[id(self)] = result
@@ -189,18 +330,11 @@ def __deepcopy__(self, memo):
result.debug = self.debug
return result
- def __setattr__(self, name, value):
+ def __setattr__(self, name: str, value: Any) -> None:
object.__setattr__(self, name, value)
- if name == 'disabled_client_side_validations':
- s = set(filter(None, value.split(',')))
- for v in s:
- if v not in JSON_SCHEMA_VALIDATION_KEYWORDS:
- raise ApiValueError(
- "Invalid keyword: '{0}''".format(v))
- self._disabled_client_side_validations = s
@classmethod
- def set_default(cls, default):
+ def set_default(cls, default: Optional[Self]) -> None:
"""Set default instance of configuration.
It stores default configuration, which can be
@@ -208,24 +342,34 @@ def set_default(cls, default):
:param default: object of Configuration
"""
- cls._default = copy.deepcopy(default)
+ cls._default = default
@classmethod
- def get_default_copy(cls):
- """Return new instance of configuration.
+ def get_default_copy(cls) -> Self:
+ """Deprecated. Please use `get_default` instead.
+
+ Deprecated. Please use `get_default` instead.
+
+ :return: The configuration object.
+ """
+ return cls.get_default()
+
+ @classmethod
+ def get_default(cls) -> Self:
+ """Return the default configuration.
This method returns newly created, based on default constructor,
object of Configuration class or returns a copy of default
- configuration passed by the set_default method.
+ configuration.
:return: The configuration object.
"""
- if cls._default is not None:
- return copy.deepcopy(cls._default)
- return Configuration()
+ if cls._default is None:
+ cls._default = cls()
+ return cls._default
@property
- def logger_file(self):
+ def logger_file(self) -> Optional[str]:
"""The logger file.
If the logger_file is None, then add stream handler and remove file
@@ -237,7 +381,7 @@ def logger_file(self):
return self.__logger_file
@logger_file.setter
- def logger_file(self, value):
+ def logger_file(self, value: Optional[str]) -> None:
"""The logger file.
If the logger_file is None, then add stream handler and remove file
@@ -256,7 +400,7 @@ def logger_file(self, value):
logger.addHandler(self.logger_file_handler)
@property
- def debug(self):
+ def debug(self) -> bool:
"""Debug status
:param value: The debug status, True or False.
@@ -265,7 +409,7 @@ def debug(self):
return self.__debug
@debug.setter
- def debug(self, value):
+ def debug(self, value: bool) -> None:
"""Debug status
:param value: The debug status, True or False.
@@ -276,18 +420,18 @@ def debug(self, value):
# if debug status is True, turn on debug logging
for _, logger in self.logger.items():
logger.setLevel(logging.DEBUG)
- # turn on http_client debug
- http_client.HTTPConnection.debuglevel = 1
+ # turn on httplib debug
+ httplib.HTTPConnection.debuglevel = 1
else:
# if debug status is False, turn off debug logging,
# setting log level to default `logging.WARNING`
for _, logger in self.logger.items():
logger.setLevel(logging.WARNING)
- # turn off http_client debug
- http_client.HTTPConnection.debuglevel = 0
+ # turn off httplib debug
+ httplib.HTTPConnection.debuglevel = 0
@property
- def logger_format(self):
+ def logger_format(self) -> str:
"""The logger format.
The logger_formatter will be updated when sets logger_format.
@@ -298,7 +442,7 @@ def logger_format(self):
return self.__logger_format
@logger_format.setter
- def logger_format(self, value):
+ def logger_format(self, value: str) -> None:
"""The logger format.
The logger_formatter will be updated when sets logger_format.
@@ -309,7 +453,7 @@ def logger_format(self, value):
self.__logger_format = value
self.logger_formatter = logging.Formatter(self.__logger_format)
- def get_api_key_with_prefix(self, identifier, alias=None):
+ def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]:
"""Gets API key (with prefix if set).
:param identifier: The identifier of apiKey.
@@ -326,7 +470,9 @@ def get_api_key_with_prefix(self, identifier, alias=None):
else:
return key
- def get_basic_auth_token(self):
+ return None
+
+ def get_basic_auth_token(self) -> Optional[str]:
"""Gets HTTP basic authentication header (string).
:return: The token for basic HTTP authentication.
@@ -341,12 +487,12 @@ def get_basic_auth_token(self):
basic_auth=username + ':' + password
).get('authorization')
- def auth_settings(self):
+ def auth_settings(self)-> AuthSettings:
"""Gets Auth Settings dict for api client.
:return: The Auth Settings information dict.
"""
- auth = {}
+ auth: AuthSettings = {}
if self.access_token is not None:
auth['kindeBearerAuth'] = {
'type': 'bearer',
@@ -357,7 +503,7 @@ def auth_settings(self):
}
return auth
- def to_debug_report(self):
+ def to_debug_report(self) -> str:
"""Gets the essential information for debugging.
:return: The report for debugging.
@@ -369,25 +515,30 @@ def to_debug_report(self):
"SDK Package Version: 1.0.0".\
format(env=sys.platform, pyversion=sys.version)
- def get_host_settings(self):
+ def get_host_settings(self) -> List[HostSetting]:
"""Gets an array of host settings
:return: An array of host settings
"""
return [
{
- 'url': "https://{businessName}.kinde.com",
+ 'url': "https://{subdomain}.kinde.com",
'description': "No description provided",
'variables': {
- 'businessName': {
- 'description': "Business name created in the Kinde admin area.",
- 'default_value': "app",
+ 'subdomain': {
+ 'description': "The subdomain generated for your business on Kinde.",
+ 'default_value': "your_kinde_subdomain",
}
}
}
]
- def get_host_from_settings(self, index, variables=None, servers=None):
+ def get_host_from_settings(
+ self,
+ index: Optional[int],
+ variables: Optional[ServerVariablesT]=None,
+ servers: Optional[List[HostSetting]]=None,
+ ) -> str:
"""Gets host URL based on the index and variables
:param index: array index of the host settings
:param variables: hash of variable and the corresponding value
@@ -427,12 +578,12 @@ def get_host_from_settings(self, index, variables=None, servers=None):
return url
@property
- def host(self):
+ def host(self) -> str:
"""Return generated host."""
return self.get_host_from_settings(self.server_index, variables=self.server_variables)
@host.setter
- def host(self, value):
+ def host(self, value: str) -> None:
"""Fix base path."""
self._base_path = value
self.server_index = None
diff --git a/kinde_sdk/exceptions.py b/kinde_sdk/exceptions.py
index 6cf96f55..de19912f 100644
--- a/kinde_sdk/exceptions.py
+++ b/kinde_sdk/exceptions.py
@@ -3,17 +3,17 @@
"""
Kinde Management API
- Provides endpoints to manage your Kinde Businesses # noqa: E501
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
The version of the OpenAPI document: 1
Contact: support@kinde.com
- Generated by: https://openapi-generator.tech
-"""
-import dataclasses
-import typing
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
-from urllib3._collections import HTTPHeaderDict
+ Do not edit the class manually.
+""" # noqa: E501
+from typing import Any, Optional
+from typing_extensions import Self
class OpenApiException(Exception):
"""The base exception class for all OpenAPIExceptions"""
@@ -21,7 +21,7 @@ class OpenApiException(Exception):
class ApiTypeError(OpenApiException, TypeError):
def __init__(self, msg, path_to_item=None, valid_classes=None,
- key_type=None):
+ key_type=None) -> None:
""" Raises an exception for TypeErrors
Args:
@@ -49,7 +49,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None,
class ApiValueError(OpenApiException, ValueError):
- def __init__(self, msg, path_to_item=None):
+ def __init__(self, msg, path_to_item=None) -> None:
"""
Args:
msg (str): the exception message
@@ -67,7 +67,7 @@ def __init__(self, msg, path_to_item=None):
class ApiAttributeError(OpenApiException, AttributeError):
- def __init__(self, msg, path_to_item=None):
+ def __init__(self, msg, path_to_item=None) -> None:
"""
Raised when an attribute reference or assignment fails.
@@ -86,7 +86,7 @@ def __init__(self, msg, path_to_item=None):
class ApiKeyError(OpenApiException, KeyError):
- def __init__(self, msg, path_to_item=None):
+ def __init__(self, msg, path_to_item=None) -> None:
"""
Args:
msg (str): the exception message
@@ -102,26 +102,65 @@ def __init__(self, msg, path_to_item=None):
super(ApiKeyError, self).__init__(full_msg)
-T = typing.TypeVar("T")
-
-
-@dataclasses.dataclass
-class ApiException(OpenApiException, typing.Generic[T]):
- status: int
- reason: str
- api_response: typing.Optional[T] = None
-
- @property
- def body(self) -> typing.Union[str, bytes, None]:
- if not self.api_response:
- return None
- return self.api_response.response.data
-
- @property
- def headers(self) -> typing.Optional[HTTPHeaderDict]:
- if not self.api_response:
- return None
- return self.api_response.response.getheaders()
+class ApiException(OpenApiException):
+
+ def __init__(
+ self,
+ status=None,
+ reason=None,
+ http_resp=None,
+ *,
+ body: Optional[str] = None,
+ data: Optional[Any] = None,
+ ) -> None:
+ self.status = status
+ self.reason = reason
+ self.body = body
+ self.data = data
+ self.headers = None
+
+ if http_resp:
+ if self.status is None:
+ self.status = http_resp.status
+ if self.reason is None:
+ self.reason = http_resp.reason
+ if self.body is None:
+ try:
+ self.body = http_resp.data.decode('utf-8')
+ except Exception:
+ pass
+ self.headers = http_resp.getheaders()
+
+ @classmethod
+ def from_response(
+ cls,
+ *,
+ http_resp,
+ body: Optional[str],
+ data: Optional[Any],
+ ) -> Self:
+ if http_resp.status == 400:
+ raise BadRequestException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 401:
+ raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 403:
+ raise ForbiddenException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 404:
+ raise NotFoundException(http_resp=http_resp, body=body, data=data)
+
+ # Added new conditions for 409 and 422
+ if http_resp.status == 409:
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 422:
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
+
+ if 500 <= http_resp.status <= 599:
+ raise ServiceException(http_resp=http_resp, body=body, data=data)
+ raise ApiException(http_resp=http_resp, body=body, data=data)
def __str__(self):
"""Custom error messages for exception"""
@@ -131,34 +170,69 @@ def __str__(self):
error_message += "HTTP response headers: {0}\n".format(
self.headers)
- if self.body:
- error_message += "HTTP response body: {0}\n".format(self.body)
+ if self.data or self.body:
+ error_message += "HTTP response body: {0}\n".format(self.data or self.body)
return error_message
-def render_path(path_to_item):
- """Returns a string representation of a path"""
- result = ""
- for pth in path_to_item:
- if isinstance(pth, int):
- result += "[{0}]".format(pth)
- else:
- result += "['{0}']".format(pth)
- return result
+class BadRequestException(ApiException):
+ pass
+
+
+class NotFoundException(ApiException):
+ pass
+
+
+class UnauthorizedException(ApiException):
+ pass
+
+
+class ForbiddenException(ApiException):
+ pass
+
+
+class ServiceException(ApiException):
+ pass
+
+
+class ConflictException(ApiException):
+ """Exception for HTTP 409 Conflict."""
+ pass
+
+
+class UnprocessableEntityException(ApiException):
+ """Exception for HTTP 422 Unprocessable Entity."""
+ pass
+# Kinde-specific exceptions
class KindeConfigurationException(Exception):
+ """Exception raised for Kinde configuration errors."""
pass
class KindeLoginException(Exception):
+ """Exception raised for Kinde login errors."""
pass
class KindeTokenException(Exception):
+ """Exception raised for Kinde token errors."""
pass
class KindeRetrieveException(Exception):
+ """Exception raised for Kinde retrieve errors."""
pass
+
+
+def render_path(path_to_item):
+ """Returns a string representation of a path"""
+ result = ""
+ for pth in path_to_item:
+ if isinstance(pth, int):
+ result += "[{0}]".format(pth)
+ else:
+ result += "['{0}']".format(pth)
+ return result
diff --git a/kinde_sdk/models/__init__.py b/kinde_sdk/models/__init__.py
index 1978aa5c..f9bf1c6f 100644
--- a/kinde_sdk/models/__init__.py
+++ b/kinde_sdk/models/__init__.py
@@ -1,84 +1,249 @@
# coding: utf-8
# flake8: noqa
+"""
+ Kinde Management API
-# import all models into this package
-# if you have many models here with many references from one model to another this may
-# raise a RecursionError
-# to avoid this, import only the models that you directly need like:
-# from kinde_sdk.model.pet import Pet
-# or import this package, but before doing it, use:
-# import sys
-# sys.setrecursionlimit(n)
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
-from kinde_sdk.model.add_organization_users_response import AddOrganizationUsersResponse
-from kinde_sdk.model.api import Api
-from kinde_sdk.model.api_result import ApiResult
-from kinde_sdk.model.apis import Apis
-from kinde_sdk.model.applications import Applications
-from kinde_sdk.model.category import Category
-from kinde_sdk.model.connected_apps_access_token import ConnectedAppsAccessToken
-from kinde_sdk.model.connected_apps_auth_url import ConnectedAppsAuthUrl
-from kinde_sdk.model.connection import Connection
-from kinde_sdk.model.create_application_response import CreateApplicationResponse
-from kinde_sdk.model.create_category_response import CreateCategoryResponse
-from kinde_sdk.model.create_connection_response import CreateConnectionResponse
-from kinde_sdk.model.create_organization_response import CreateOrganizationResponse
-from kinde_sdk.model.create_property_response import CreatePropertyResponse
-from kinde_sdk.model.create_subscriber_success_response import CreateSubscriberSuccessResponse
-from kinde_sdk.model.create_user_response import CreateUserResponse
-from kinde_sdk.model.create_webhook_response import CreateWebhookResponse
-from kinde_sdk.model.delete_webhook_response import DeleteWebhookResponse
-from kinde_sdk.model.error import Error
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.event_type import EventType
-from kinde_sdk.model.get_application_response import GetApplicationResponse
-from kinde_sdk.model.get_applications_response import GetApplicationsResponse
-from kinde_sdk.model.get_categories_response import GetCategoriesResponse
-from kinde_sdk.model.get_connections_response import GetConnectionsResponse
-from kinde_sdk.model.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
-from kinde_sdk.model.get_event_response import GetEventResponse
-from kinde_sdk.model.get_event_types_response import GetEventTypesResponse
-from kinde_sdk.model.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
-from kinde_sdk.model.get_organization_users_response import GetOrganizationUsersResponse
-from kinde_sdk.model.get_organizations_response import GetOrganizationsResponse
-from kinde_sdk.model.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
-from kinde_sdk.model.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
-from kinde_sdk.model.get_permissions_response import GetPermissionsResponse
-from kinde_sdk.model.get_properties_response import GetPropertiesResponse
-from kinde_sdk.model.get_property_values_response import GetPropertyValuesResponse
-from kinde_sdk.model.get_redirect_callback_urls_response import GetRedirectCallbackUrlsResponse
-from kinde_sdk.model.get_roles_response import GetRolesResponse
-from kinde_sdk.model.get_subscriber_response import GetSubscriberResponse
-from kinde_sdk.model.get_subscribers_response import GetSubscribersResponse
-from kinde_sdk.model.get_webhooks_response import GetWebhooksResponse
-from kinde_sdk.model.logout_redirect_urls import LogoutRedirectUrls
-from kinde_sdk.model.model_property import ModelProperty
-from kinde_sdk.model.organization import Organization
-from kinde_sdk.model.organization_user import OrganizationUser
-from kinde_sdk.model.organization_user_permission import OrganizationUserPermission
-from kinde_sdk.model.organization_user_role import OrganizationUserRole
-from kinde_sdk.model.organization_user_role_permissions import OrganizationUserRolePermissions
-from kinde_sdk.model.organization_users import OrganizationUsers
-from kinde_sdk.model.permissions import Permissions
-from kinde_sdk.model.property_value import PropertyValue
-from kinde_sdk.model.redirect_callback_urls import RedirectCallbackUrls
-from kinde_sdk.model.role import Role
-from kinde_sdk.model.roles import Roles
-from kinde_sdk.model.roles_permission_response import RolesPermissionResponse
-from kinde_sdk.model.subscriber import Subscriber
-from kinde_sdk.model.subscribers_subscriber import SubscribersSubscriber
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.token_error_response import TokenErrorResponse
-from kinde_sdk.model.token_introspect import TokenIntrospect
-from kinde_sdk.model.update_organization_users_response import UpdateOrganizationUsersResponse
-from kinde_sdk.model.update_role_permissions_response import UpdateRolePermissionsResponse
-from kinde_sdk.model.update_user_response import UpdateUserResponse
-from kinde_sdk.model.update_webhook_response import UpdateWebhookResponse
-from kinde_sdk.model.user import User
-from kinde_sdk.model.user_identity import UserIdentity
-from kinde_sdk.model.user_profile import UserProfile
-from kinde_sdk.model.user_profile_v2 import UserProfileV2
-from kinde_sdk.model.users import Users
-from kinde_sdk.model.users_response import UsersResponse
-from kinde_sdk.model.webhook import Webhook
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+# import models into model package
+from kinde_sdk.models.add_api_scope_request import AddAPIScopeRequest
+from kinde_sdk.models.add_apis_request import AddAPIsRequest
+from kinde_sdk.models.add_organization_users_request import AddOrganizationUsersRequest
+from kinde_sdk.models.add_organization_users_request_users_inner import AddOrganizationUsersRequestUsersInner
+from kinde_sdk.models.add_organization_users_response import AddOrganizationUsersResponse
+from kinde_sdk.models.add_role_scope_request import AddRoleScopeRequest
+from kinde_sdk.models.add_role_scope_response import AddRoleScopeResponse
+from kinde_sdk.models.api_result import ApiResult
+from kinde_sdk.models.applications import Applications
+from kinde_sdk.models.authorize_app_api_response import AuthorizeAppApiResponse
+from kinde_sdk.models.category import Category
+from kinde_sdk.models.connected_apps_access_token import ConnectedAppsAccessToken
+from kinde_sdk.models.connected_apps_auth_url import ConnectedAppsAuthUrl
+from kinde_sdk.models.connection import Connection
+from kinde_sdk.models.connection_connection import ConnectionConnection
+from kinde_sdk.models.create_api_scopes_response import CreateApiScopesResponse
+from kinde_sdk.models.create_api_scopes_response_scope import CreateApiScopesResponseScope
+from kinde_sdk.models.create_apis_response import CreateApisResponse
+from kinde_sdk.models.create_apis_response_api import CreateApisResponseApi
+from kinde_sdk.models.create_application_request import CreateApplicationRequest
+from kinde_sdk.models.create_application_response import CreateApplicationResponse
+from kinde_sdk.models.create_application_response_application import CreateApplicationResponseApplication
+from kinde_sdk.models.create_billing_agreement_request import CreateBillingAgreementRequest
+from kinde_sdk.models.create_category_request import CreateCategoryRequest
+from kinde_sdk.models.create_category_response import CreateCategoryResponse
+from kinde_sdk.models.create_category_response_category import CreateCategoryResponseCategory
+from kinde_sdk.models.create_connection_request import CreateConnectionRequest
+from kinde_sdk.models.create_connection_request_options import CreateConnectionRequestOptions
+from kinde_sdk.models.create_connection_request_options_one_of import CreateConnectionRequestOptionsOneOf
+from kinde_sdk.models.create_connection_request_options_one_of1 import CreateConnectionRequestOptionsOneOf1
+from kinde_sdk.models.create_connection_request_options_one_of2 import CreateConnectionRequestOptionsOneOf2
+from kinde_sdk.models.create_connection_response import CreateConnectionResponse
+from kinde_sdk.models.create_connection_response_connection import CreateConnectionResponseConnection
+from kinde_sdk.models.create_environment_variable_request import CreateEnvironmentVariableRequest
+from kinde_sdk.models.create_environment_variable_response import CreateEnvironmentVariableResponse
+from kinde_sdk.models.create_environment_variable_response_environment_variable import CreateEnvironmentVariableResponseEnvironmentVariable
+from kinde_sdk.models.create_feature_flag_request import CreateFeatureFlagRequest
+from kinde_sdk.models.create_identity_response import CreateIdentityResponse
+from kinde_sdk.models.create_identity_response_identity import CreateIdentityResponseIdentity
+from kinde_sdk.models.create_meter_usage_record_request import CreateMeterUsageRecordRequest
+from kinde_sdk.models.create_meter_usage_record_response import CreateMeterUsageRecordResponse
+from kinde_sdk.models.create_organization_request import CreateOrganizationRequest
+from kinde_sdk.models.create_organization_response import CreateOrganizationResponse
+from kinde_sdk.models.create_organization_response_organization import CreateOrganizationResponseOrganization
+from kinde_sdk.models.create_organization_user_permission_request import CreateOrganizationUserPermissionRequest
+from kinde_sdk.models.create_organization_user_role_request import CreateOrganizationUserRoleRequest
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+from kinde_sdk.models.create_property_request import CreatePropertyRequest
+from kinde_sdk.models.create_property_response import CreatePropertyResponse
+from kinde_sdk.models.create_property_response_property import CreatePropertyResponseProperty
+from kinde_sdk.models.create_role_request import CreateRoleRequest
+from kinde_sdk.models.create_roles_response import CreateRolesResponse
+from kinde_sdk.models.create_roles_response_role import CreateRolesResponseRole
+from kinde_sdk.models.create_subscriber_success_response import CreateSubscriberSuccessResponse
+from kinde_sdk.models.create_subscriber_success_response_subscriber import CreateSubscriberSuccessResponseSubscriber
+from kinde_sdk.models.create_user_identity_request import CreateUserIdentityRequest
+from kinde_sdk.models.create_user_request import CreateUserRequest
+from kinde_sdk.models.create_user_request_identities_inner import CreateUserRequestIdentitiesInner
+from kinde_sdk.models.create_user_request_identities_inner_details import CreateUserRequestIdentitiesInnerDetails
+from kinde_sdk.models.create_user_request_profile import CreateUserRequestProfile
+from kinde_sdk.models.create_user_response import CreateUserResponse
+from kinde_sdk.models.create_web_hook_request import CreateWebHookRequest
+from kinde_sdk.models.create_webhook_response import CreateWebhookResponse
+from kinde_sdk.models.create_webhook_response_webhook import CreateWebhookResponseWebhook
+from kinde_sdk.models.delete_api_response import DeleteApiResponse
+from kinde_sdk.models.delete_environment_variable_response import DeleteEnvironmentVariableResponse
+from kinde_sdk.models.delete_role_scope_response import DeleteRoleScopeResponse
+from kinde_sdk.models.delete_webhook_response import DeleteWebhookResponse
+from kinde_sdk.models.environment_variable import EnvironmentVariable
+from kinde_sdk.models.error import Error
+from kinde_sdk.models.error_response import ErrorResponse
+from kinde_sdk.models.event_type import EventType
+from kinde_sdk.models.get_api_response import GetApiResponse
+from kinde_sdk.models.get_api_response_api import GetApiResponseApi
+from kinde_sdk.models.get_api_response_api_applications_inner import GetApiResponseApiApplicationsInner
+from kinde_sdk.models.get_api_response_api_scopes_inner import GetApiResponseApiScopesInner
+from kinde_sdk.models.get_api_scope_response import GetApiScopeResponse
+from kinde_sdk.models.get_api_scopes_response import GetApiScopesResponse
+from kinde_sdk.models.get_api_scopes_response_scopes_inner import GetApiScopesResponseScopesInner
+from kinde_sdk.models.get_apis_response import GetApisResponse
+from kinde_sdk.models.get_apis_response_apis_inner import GetApisResponseApisInner
+from kinde_sdk.models.get_apis_response_apis_inner_scopes_inner import GetApisResponseApisInnerScopesInner
+from kinde_sdk.models.get_application_response import GetApplicationResponse
+from kinde_sdk.models.get_application_response_application import GetApplicationResponseApplication
+from kinde_sdk.models.get_applications_response import GetApplicationsResponse
+from kinde_sdk.models.get_billing_agreements_response import GetBillingAgreementsResponse
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner import GetBillingAgreementsResponseAgreementsInner
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner import GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+from kinde_sdk.models.get_billing_entitlements_response import GetBillingEntitlementsResponse
+from kinde_sdk.models.get_billing_entitlements_response_entitlements_inner import GetBillingEntitlementsResponseEntitlementsInner
+from kinde_sdk.models.get_billing_entitlements_response_plans_inner import GetBillingEntitlementsResponsePlansInner
+from kinde_sdk.models.get_business_response import GetBusinessResponse
+from kinde_sdk.models.get_business_response_business import GetBusinessResponseBusiness
+from kinde_sdk.models.get_categories_response import GetCategoriesResponse
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+from kinde_sdk.models.get_entitlements_response import GetEntitlementsResponse
+from kinde_sdk.models.get_entitlements_response_data import GetEntitlementsResponseData
+from kinde_sdk.models.get_entitlements_response_data_entitlements_inner import GetEntitlementsResponseDataEntitlementsInner
+from kinde_sdk.models.get_entitlements_response_data_plans_inner import GetEntitlementsResponseDataPlansInner
+from kinde_sdk.models.get_entitlements_response_metadata import GetEntitlementsResponseMetadata
+from kinde_sdk.models.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
+from kinde_sdk.models.get_environment_response import GetEnvironmentResponse
+from kinde_sdk.models.get_environment_response_environment import GetEnvironmentResponseEnvironment
+from kinde_sdk.models.get_environment_response_environment_background_color import GetEnvironmentResponseEnvironmentBackgroundColor
+from kinde_sdk.models.get_environment_response_environment_link_color import GetEnvironmentResponseEnvironmentLinkColor
+from kinde_sdk.models.get_environment_variable_response import GetEnvironmentVariableResponse
+from kinde_sdk.models.get_environment_variables_response import GetEnvironmentVariablesResponse
+from kinde_sdk.models.get_event_response import GetEventResponse
+from kinde_sdk.models.get_event_response_event import GetEventResponseEvent
+from kinde_sdk.models.get_event_types_response import GetEventTypesResponse
+from kinde_sdk.models.get_feature_flags_response import GetFeatureFlagsResponse
+from kinde_sdk.models.get_feature_flags_response_data import GetFeatureFlagsResponseData
+from kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner import GetFeatureFlagsResponseDataFeatureFlagsInner
+from kinde_sdk.models.get_identities_response import GetIdentitiesResponse
+from kinde_sdk.models.get_industries_response import GetIndustriesResponse
+from kinde_sdk.models.get_industries_response_industries_inner import GetIndustriesResponseIndustriesInner
+from kinde_sdk.models.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
+from kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value import GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+from kinde_sdk.models.get_organization_response import GetOrganizationResponse
+from kinde_sdk.models.get_organization_response_billing import GetOrganizationResponseBilling
+from kinde_sdk.models.get_organization_response_billing_agreements_inner import GetOrganizationResponseBillingAgreementsInner
+from kinde_sdk.models.get_organization_users_response import GetOrganizationUsersResponse
+from kinde_sdk.models.get_organizations_response import GetOrganizationsResponse
+from kinde_sdk.models.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
+from kinde_sdk.models.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
+from kinde_sdk.models.get_permissions_response import GetPermissionsResponse
+from kinde_sdk.models.get_portal_link import GetPortalLink
+from kinde_sdk.models.get_properties_response import GetPropertiesResponse
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+from kinde_sdk.models.get_redirect_callback_urls_response import GetRedirectCallbackUrlsResponse
+from kinde_sdk.models.get_role_response import GetRoleResponse
+from kinde_sdk.models.get_role_response_role import GetRoleResponseRole
+from kinde_sdk.models.get_roles_response import GetRolesResponse
+from kinde_sdk.models.get_subscriber_response import GetSubscriberResponse
+from kinde_sdk.models.get_subscribers_response import GetSubscribersResponse
+from kinde_sdk.models.get_timezones_response import GetTimezonesResponse
+from kinde_sdk.models.get_timezones_response_timezones_inner import GetTimezonesResponseTimezonesInner
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+from kinde_sdk.models.get_user_mfa_response_mfa import GetUserMfaResponseMfa
+from kinde_sdk.models.get_user_permissions_response import GetUserPermissionsResponse
+from kinde_sdk.models.get_user_permissions_response_data import GetUserPermissionsResponseData
+from kinde_sdk.models.get_user_permissions_response_data_permissions_inner import GetUserPermissionsResponseDataPermissionsInner
+from kinde_sdk.models.get_user_permissions_response_metadata import GetUserPermissionsResponseMetadata
+from kinde_sdk.models.get_user_properties_response import GetUserPropertiesResponse
+from kinde_sdk.models.get_user_properties_response_data import GetUserPropertiesResponseData
+from kinde_sdk.models.get_user_properties_response_data_properties_inner import GetUserPropertiesResponseDataPropertiesInner
+from kinde_sdk.models.get_user_properties_response_metadata import GetUserPropertiesResponseMetadata
+from kinde_sdk.models.get_user_roles_response import GetUserRolesResponse
+from kinde_sdk.models.get_user_roles_response_data import GetUserRolesResponseData
+from kinde_sdk.models.get_user_roles_response_data_roles_inner import GetUserRolesResponseDataRolesInner
+from kinde_sdk.models.get_user_roles_response_metadata import GetUserRolesResponseMetadata
+from kinde_sdk.models.get_user_sessions_response import GetUserSessionsResponse
+from kinde_sdk.models.get_user_sessions_response_sessions_inner import GetUserSessionsResponseSessionsInner
+from kinde_sdk.models.get_webhooks_response import GetWebhooksResponse
+from kinde_sdk.models.identity import Identity
+from kinde_sdk.models.logout_redirect_urls import LogoutRedirectUrls
+from kinde_sdk.models.model_property import ModelProperty
+from kinde_sdk.models.not_found_response import NotFoundResponse
+from kinde_sdk.models.not_found_response_errors import NotFoundResponseErrors
+from kinde_sdk.models.organization_item_schema import OrganizationItemSchema
+from kinde_sdk.models.organization_user import OrganizationUser
+from kinde_sdk.models.organization_user_permission import OrganizationUserPermission
+from kinde_sdk.models.organization_user_permission_roles_inner import OrganizationUserPermissionRolesInner
+from kinde_sdk.models.organization_user_role import OrganizationUserRole
+from kinde_sdk.models.organization_user_role_permissions import OrganizationUserRolePermissions
+from kinde_sdk.models.organization_user_role_permissions_permissions import OrganizationUserRolePermissionsPermissions
+from kinde_sdk.models.permissions import Permissions
+from kinde_sdk.models.property_value import PropertyValue
+from kinde_sdk.models.read_env_logo_response import ReadEnvLogoResponse
+from kinde_sdk.models.read_env_logo_response_logos_inner import ReadEnvLogoResponseLogosInner
+from kinde_sdk.models.read_logo_response import ReadLogoResponse
+from kinde_sdk.models.read_logo_response_logos_inner import ReadLogoResponseLogosInner
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+from kinde_sdk.models.replace_connection_request import ReplaceConnectionRequest
+from kinde_sdk.models.replace_connection_request_options import ReplaceConnectionRequestOptions
+from kinde_sdk.models.replace_connection_request_options_one_of import ReplaceConnectionRequestOptionsOneOf
+from kinde_sdk.models.replace_connection_request_options_one_of1 import ReplaceConnectionRequestOptionsOneOf1
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+from kinde_sdk.models.replace_mfa_request import ReplaceMFARequest
+from kinde_sdk.models.replace_organization_mfa_request import ReplaceOrganizationMFARequest
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+from kinde_sdk.models.role import Role
+from kinde_sdk.models.role_permissions_response import RolePermissionsResponse
+from kinde_sdk.models.role_scopes_response import RoleScopesResponse
+from kinde_sdk.models.roles import Roles
+from kinde_sdk.models.scopes import Scopes
+from kinde_sdk.models.search_users_response import SearchUsersResponse
+from kinde_sdk.models.search_users_response_results_inner import SearchUsersResponseResultsInner
+from kinde_sdk.models.set_user_password_request import SetUserPasswordRequest
+from kinde_sdk.models.subscriber import Subscriber
+from kinde_sdk.models.subscribers_subscriber import SubscribersSubscriber
+from kinde_sdk.models.success_response import SuccessResponse
+from kinde_sdk.models.token_error_response import TokenErrorResponse
+from kinde_sdk.models.token_introspect import TokenIntrospect
+from kinde_sdk.models.update_api_applications_request import UpdateAPIApplicationsRequest
+from kinde_sdk.models.update_api_applications_request_applications_inner import UpdateAPIApplicationsRequestApplicationsInner
+from kinde_sdk.models.update_api_scope_request import UpdateAPIScopeRequest
+from kinde_sdk.models.update_application_request import UpdateApplicationRequest
+from kinde_sdk.models.update_application_tokens_request import UpdateApplicationTokensRequest
+from kinde_sdk.models.update_applications_property_request import UpdateApplicationsPropertyRequest
+from kinde_sdk.models.update_applications_property_request_value import UpdateApplicationsPropertyRequestValue
+from kinde_sdk.models.update_business_request import UpdateBusinessRequest
+from kinde_sdk.models.update_category_request import UpdateCategoryRequest
+from kinde_sdk.models.update_connection_request import UpdateConnectionRequest
+from kinde_sdk.models.update_environement_feature_flag_override_request import UpdateEnvironementFeatureFlagOverrideRequest
+from kinde_sdk.models.update_environment_variable_request import UpdateEnvironmentVariableRequest
+from kinde_sdk.models.update_environment_variable_response import UpdateEnvironmentVariableResponse
+from kinde_sdk.models.update_identity_request import UpdateIdentityRequest
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+from kinde_sdk.models.update_organization_request import UpdateOrganizationRequest
+from kinde_sdk.models.update_organization_sessions_request import UpdateOrganizationSessionsRequest
+from kinde_sdk.models.update_organization_users_request import UpdateOrganizationUsersRequest
+from kinde_sdk.models.update_organization_users_request_users_inner import UpdateOrganizationUsersRequestUsersInner
+from kinde_sdk.models.update_organization_users_response import UpdateOrganizationUsersResponse
+from kinde_sdk.models.update_property_request import UpdatePropertyRequest
+from kinde_sdk.models.update_role_permissions_request import UpdateRolePermissionsRequest
+from kinde_sdk.models.update_role_permissions_request_permissions_inner import UpdateRolePermissionsRequestPermissionsInner
+from kinde_sdk.models.update_role_permissions_response import UpdateRolePermissionsResponse
+from kinde_sdk.models.update_roles_request import UpdateRolesRequest
+from kinde_sdk.models.update_user_request import UpdateUserRequest
+from kinde_sdk.models.update_user_response import UpdateUserResponse
+from kinde_sdk.models.update_web_hook_request import UpdateWebHookRequest
+from kinde_sdk.models.update_webhook_response import UpdateWebhookResponse
+from kinde_sdk.models.update_webhook_response_webhook import UpdateWebhookResponseWebhook
+from kinde_sdk.models.user import User
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+from kinde_sdk.models.user_identity import UserIdentity
+from kinde_sdk.models.user_identity_result import UserIdentityResult
+from kinde_sdk.models.user_profile_v2 import UserProfileV2
+from kinde_sdk.models.users_response import UsersResponse
+from kinde_sdk.models.users_response_users_inner import UsersResponseUsersInner
+from kinde_sdk.models.webhook import Webhook
diff --git a/kinde_sdk/models/add_api_scope_request.py b/kinde_sdk/models/add_api_scope_request.py
new file mode 100644
index 00000000..c53ec28a
--- /dev/null
+++ b/kinde_sdk/models/add_api_scope_request.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddAPIScopeRequest(BaseModel):
+ """
+ AddAPIScopeRequest
+ """ # noqa: E501
+ key: StrictStr = Field(description="The key reference for the scope (1-64 characters, no white space).")
+ description: Optional[StrictStr] = Field(default=None, description="Description of the api scope purpose.")
+ __properties: ClassVar[List[str]] = ["key", "description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddAPIScopeRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddAPIScopeRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key"),
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/add_apis_request.py b/kinde_sdk/models/add_apis_request.py
new file mode 100644
index 00000000..00bf7936
--- /dev/null
+++ b/kinde_sdk/models/add_apis_request.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddAPIsRequest(BaseModel):
+ """
+ AddAPIsRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The name of the API. (1-64 characters).")
+ audience: StrictStr = Field(description="A unique identifier for the API - commonly the URL. This value will be used as the `audience` parameter in authorization claims. (1-64 characters)")
+ __properties: ClassVar[List[str]] = ["name", "audience"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddAPIsRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddAPIsRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "audience": obj.get("audience")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/add_organization_users_request.py b/kinde_sdk/models/add_organization_users_request.py
new file mode 100644
index 00000000..f492263e
--- /dev/null
+++ b/kinde_sdk/models/add_organization_users_request.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.add_organization_users_request_users_inner import AddOrganizationUsersRequestUsersInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddOrganizationUsersRequest(BaseModel):
+ """
+ AddOrganizationUsersRequest
+ """ # noqa: E501
+ users: Optional[List[AddOrganizationUsersRequestUsersInner]] = Field(default=None, description="Users to be added to the organization.")
+ __properties: ClassVar[List[str]] = ["users"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddOrganizationUsersRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in users (list)
+ _items = []
+ if self.users:
+ for _item_users in self.users:
+ if _item_users:
+ _items.append(_item_users.to_dict())
+ _dict['users'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddOrganizationUsersRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "users": [AddOrganizationUsersRequestUsersInner.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/add_organization_users_request_users_inner.py b/kinde_sdk/models/add_organization_users_request_users_inner.py
new file mode 100644
index 00000000..af2d7d1a
--- /dev/null
+++ b/kinde_sdk/models/add_organization_users_request_users_inner.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddOrganizationUsersRequestUsersInner(BaseModel):
+ """
+ AddOrganizationUsersRequestUsersInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The users id.")
+ roles: Optional[List[StrictStr]] = Field(default=None, description="Role keys to assign to the user.")
+ permissions: Optional[List[StrictStr]] = Field(default=None, description="Permission keys to assign to the user.")
+ __properties: ClassVar[List[str]] = ["id", "roles", "permissions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddOrganizationUsersRequestUsersInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddOrganizationUsersRequestUsersInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "roles": obj.get("roles"),
+ "permissions": obj.get("permissions")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/add_organization_users_response.py b/kinde_sdk/models/add_organization_users_response.py
new file mode 100644
index 00000000..cdf9bcff
--- /dev/null
+++ b/kinde_sdk/models/add_organization_users_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddOrganizationUsersResponse(BaseModel):
+ """
+ AddOrganizationUsersResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ users_added: Optional[List[StrictStr]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "users_added"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddOrganizationUsersResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddOrganizationUsersResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "users_added": obj.get("users_added")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/add_role_scope_request.py b/kinde_sdk/models/add_role_scope_request.py
new file mode 100644
index 00000000..fa0c6550
--- /dev/null
+++ b/kinde_sdk/models/add_role_scope_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddRoleScopeRequest(BaseModel):
+ """
+ AddRoleScopeRequest
+ """ # noqa: E501
+ scope_id: StrictStr = Field(description="The scope identifier.")
+ __properties: ClassVar[List[str]] = ["scope_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddRoleScopeRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddRoleScopeRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "scope_id": obj.get("scope_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/add_role_scope_response.py b/kinde_sdk/models/add_role_scope_response.py
new file mode 100644
index 00000000..d9d40329
--- /dev/null
+++ b/kinde_sdk/models/add_role_scope_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AddRoleScopeResponse(BaseModel):
+ """
+ AddRoleScopeResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ __properties: ClassVar[List[str]] = ["code", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AddRoleScopeResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AddRoleScopeResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/api_result.py b/kinde_sdk/models/api_result.py
new file mode 100644
index 00000000..4f87992b
--- /dev/null
+++ b/kinde_sdk/models/api_result.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ApiResult(BaseModel):
+ """
+ ApiResult
+ """ # noqa: E501
+ result: Optional[StrictStr] = Field(default=None, description="The result of the api operation.")
+ __properties: ClassVar[List[str]] = ["result"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ApiResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ApiResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "result": obj.get("result")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/applications.py b/kinde_sdk/models/applications.py
new file mode 100644
index 00000000..8e6c45c4
--- /dev/null
+++ b/kinde_sdk/models/applications.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Applications(BaseModel):
+ """
+ Applications
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ type: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "name", "type"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Applications from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Applications from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/authorize_app_api_response.py b/kinde_sdk/models/authorize_app_api_response.py
new file mode 100644
index 00000000..858ec458
--- /dev/null
+++ b/kinde_sdk/models/authorize_app_api_response.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AuthorizeAppApiResponse(BaseModel):
+ """
+ AuthorizeAppApiResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ applications_disconnected: Optional[List[StrictStr]] = None
+ applications_connected: Optional[List[StrictStr]] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "applications_disconnected", "applications_connected"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AuthorizeAppApiResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AuthorizeAppApiResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "applications_disconnected": obj.get("applications_disconnected"),
+ "applications_connected": obj.get("applications_connected")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/category.py b/kinde_sdk/models/category.py
new file mode 100644
index 00000000..6578f5dd
--- /dev/null
+++ b/kinde_sdk/models/category.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Category(BaseModel):
+ """
+ Category
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Category from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Category from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/connected_apps_access_token.py b/kinde_sdk/models/connected_apps_access_token.py
new file mode 100644
index 00000000..55490ae7
--- /dev/null
+++ b/kinde_sdk/models/connected_apps_access_token.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ConnectedAppsAccessToken(BaseModel):
+ """
+ ConnectedAppsAccessToken
+ """ # noqa: E501
+ access_token: Optional[StrictStr] = Field(default=None, description="The access token to access a third-party provider.")
+ access_token_expiry: Optional[StrictStr] = Field(default=None, description="The date and time that the access token expires.")
+ __properties: ClassVar[List[str]] = ["access_token", "access_token_expiry"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ConnectedAppsAccessToken from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ConnectedAppsAccessToken from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "access_token": obj.get("access_token"),
+ "access_token_expiry": obj.get("access_token_expiry")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/connected_apps_auth_url.py b/kinde_sdk/models/connected_apps_auth_url.py
new file mode 100644
index 00000000..947a9c61
--- /dev/null
+++ b/kinde_sdk/models/connected_apps_auth_url.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ConnectedAppsAuthUrl(BaseModel):
+ """
+ ConnectedAppsAuthUrl
+ """ # noqa: E501
+ url: Optional[StrictStr] = Field(default=None, description="A URL that is used to authenticate an end-user against a connected app.")
+ session_id: Optional[StrictStr] = Field(default=None, description="A unique identifier for the login session.")
+ __properties: ClassVar[List[str]] = ["url", "session_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ConnectedAppsAuthUrl from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ConnectedAppsAuthUrl from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "url": obj.get("url"),
+ "session_id": obj.get("session_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/connection.py b/kinde_sdk/models/connection.py
new file mode 100644
index 00000000..8d581b1d
--- /dev/null
+++ b/kinde_sdk/models/connection.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.connection_connection import ConnectionConnection
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Connection(BaseModel):
+ """
+ Connection
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ connection: Optional[ConnectionConnection] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "connection"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Connection from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of connection
+ if self.connection:
+ _dict['connection'] = self.connection.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Connection from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "connection": ConnectionConnection.from_dict(obj["connection"]) if obj.get("connection") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/connection_connection.py b/kinde_sdk/models/connection_connection.py
new file mode 100644
index 00000000..7d529ba8
--- /dev/null
+++ b/kinde_sdk/models/connection_connection.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ConnectionConnection(BaseModel):
+ """
+ ConnectionConnection
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ display_name: Optional[StrictStr] = None
+ strategy: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "name", "display_name", "strategy"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ConnectionConnection from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ConnectionConnection from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "display_name": obj.get("display_name"),
+ "strategy": obj.get("strategy")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_api_scopes_response.py b/kinde_sdk/models/create_api_scopes_response.py
new file mode 100644
index 00000000..98cf26f0
--- /dev/null
+++ b/kinde_sdk/models/create_api_scopes_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_api_scopes_response_scope import CreateApiScopesResponseScope
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApiScopesResponse(BaseModel):
+ """
+ CreateApiScopesResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="A Kinde generated message.")
+ code: Optional[StrictStr] = Field(default=None, description="A Kinde generated status code.")
+ scope: Optional[CreateApiScopesResponseScope] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "scope"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApiScopesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of scope
+ if self.scope:
+ _dict['scope'] = self.scope.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApiScopesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "scope": CreateApiScopesResponseScope.from_dict(obj["scope"]) if obj.get("scope") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_api_scopes_response_scope.py b/kinde_sdk/models/create_api_scopes_response_scope.py
new file mode 100644
index 00000000..f30262f1
--- /dev/null
+++ b/kinde_sdk/models/create_api_scopes_response_scope.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApiScopesResponseScope(BaseModel):
+ """
+ CreateApiScopesResponseScope
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the API scope.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApiScopesResponseScope from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApiScopesResponseScope from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_apis_response.py b/kinde_sdk/models/create_apis_response.py
new file mode 100644
index 00000000..59361b95
--- /dev/null
+++ b/kinde_sdk/models/create_apis_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_apis_response_api import CreateApisResponseApi
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApisResponse(BaseModel):
+ """
+ CreateApisResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="A Kinde generated message.")
+ code: Optional[StrictStr] = Field(default=None, description="A Kinde generated status code.")
+ api: Optional[CreateApisResponseApi] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "api"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApisResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of api
+ if self.api:
+ _dict['api'] = self.api.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApisResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "api": CreateApisResponseApi.from_dict(obj["api"]) if obj.get("api") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_apis_response_api.py b/kinde_sdk/models/create_apis_response_api.py
new file mode 100644
index 00000000..98632eb2
--- /dev/null
+++ b/kinde_sdk/models/create_apis_response_api.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApisResponseApi(BaseModel):
+ """
+ CreateApisResponseApi
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the API.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApisResponseApi from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApisResponseApi from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_application_request.py b/kinde_sdk/models/create_application_request.py
new file mode 100644
index 00000000..607ad8c6
--- /dev/null
+++ b/kinde_sdk/models/create_application_request.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApplicationRequest(BaseModel):
+ """
+ CreateApplicationRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The application's name.")
+ type: StrictStr = Field(description="The application's type. Use `reg` for regular server rendered applications, `spa` for single-page applications, and `m2m` for machine-to-machine applications.")
+ __properties: ClassVar[List[str]] = ["name", "type"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['reg', 'spa', 'm2m']):
+ raise ValueError("must be one of enum values ('reg', 'spa', 'm2m')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApplicationRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApplicationRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "type": obj.get("type")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_application_response.py b/kinde_sdk/models/create_application_response.py
new file mode 100644
index 00000000..04b2bc64
--- /dev/null
+++ b/kinde_sdk/models/create_application_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_application_response_application import CreateApplicationResponseApplication
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApplicationResponse(BaseModel):
+ """
+ CreateApplicationResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ application: Optional[CreateApplicationResponseApplication] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "application"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApplicationResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of application
+ if self.application:
+ _dict['application'] = self.application.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApplicationResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "application": CreateApplicationResponseApplication.from_dict(obj["application"]) if obj.get("application") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_application_response_application.py b/kinde_sdk/models/create_application_response_application.py
new file mode 100644
index 00000000..b056b4f6
--- /dev/null
+++ b/kinde_sdk/models/create_application_response_application.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateApplicationResponseApplication(BaseModel):
+ """
+ CreateApplicationResponseApplication
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The application's identifier.")
+ client_id: Optional[StrictStr] = Field(default=None, description="The application's client ID.")
+ client_secret: Optional[StrictStr] = Field(default=None, description="The application's client secret.")
+ __properties: ClassVar[List[str]] = ["id", "client_id", "client_secret"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateApplicationResponseApplication from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateApplicationResponseApplication from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "client_id": obj.get("client_id"),
+ "client_secret": obj.get("client_secret")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_billing_agreement_request.py b/kinde_sdk/models/create_billing_agreement_request.py
new file mode 100644
index 00000000..ceb28c7b
--- /dev/null
+++ b/kinde_sdk/models/create_billing_agreement_request.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateBillingAgreementRequest(BaseModel):
+ """
+ CreateBillingAgreementRequest
+ """ # noqa: E501
+ customer_id: StrictStr = Field(description="The ID of the billing customer to create a new agreement for")
+ plan_code: StrictStr = Field(description="The code of the billing plan the new agreement will be based on")
+ is_invoice_now: Optional[StrictBool] = Field(default=None, description="Generate a final invoice for any un-invoiced metered usage.")
+ is_prorate: Optional[StrictBool] = Field(default=None, description="Generate a proration invoice item that credits remaining unused features.")
+ __properties: ClassVar[List[str]] = ["customer_id", "plan_code", "is_invoice_now", "is_prorate"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateBillingAgreementRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateBillingAgreementRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "customer_id": obj.get("customer_id"),
+ "plan_code": obj.get("plan_code"),
+ "is_invoice_now": obj.get("is_invoice_now"),
+ "is_prorate": obj.get("is_prorate")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_category_request.py b/kinde_sdk/models/create_category_request.py
new file mode 100644
index 00000000..422f0aa2
--- /dev/null
+++ b/kinde_sdk/models/create_category_request.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateCategoryRequest(BaseModel):
+ """
+ CreateCategoryRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The name of the category.")
+ context: StrictStr = Field(description="The context that the category applies to.")
+ __properties: ClassVar[List[str]] = ["name", "context"]
+
+ @field_validator('context')
+ def context_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['org', 'usr', 'app']):
+ raise ValueError("must be one of enum values ('org', 'usr', 'app')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateCategoryRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateCategoryRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "context": obj.get("context")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_category_response.py b/kinde_sdk/models/create_category_response.py
new file mode 100644
index 00000000..6654e4fa
--- /dev/null
+++ b/kinde_sdk/models/create_category_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_category_response_category import CreateCategoryResponseCategory
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateCategoryResponse(BaseModel):
+ """
+ CreateCategoryResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ category: Optional[CreateCategoryResponseCategory] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "category"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateCategoryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of category
+ if self.category:
+ _dict['category'] = self.category.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateCategoryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "category": CreateCategoryResponseCategory.from_dict(obj["category"]) if obj.get("category") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_category_response_category.py b/kinde_sdk/models/create_category_response_category.py
new file mode 100644
index 00000000..ce52c302
--- /dev/null
+++ b/kinde_sdk/models/create_category_response_category.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateCategoryResponseCategory(BaseModel):
+ """
+ CreateCategoryResponseCategory
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The category's ID.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateCategoryResponseCategory from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateCategoryResponseCategory from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_connection_request.py b/kinde_sdk/models/create_connection_request.py
new file mode 100644
index 00000000..6330ed79
--- /dev/null
+++ b/kinde_sdk/models/create_connection_request.py
@@ -0,0 +1,117 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_connection_request_options import CreateConnectionRequestOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateConnectionRequest(BaseModel):
+ """
+ CreateConnectionRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The internal name of the connection.")
+ display_name: Optional[StrictStr] = Field(default=None, description="The public facing name of the connection.")
+ strategy: Optional[StrictStr] = Field(default=None, description="The identity provider identifier for the connection.")
+ enabled_applications: Optional[List[StrictStr]] = Field(default=None, description="Client IDs of applications in which this connection is to be enabled.")
+ organization_code: Optional[StrictStr] = Field(default=None, description="Enterprise connections only - the code for organization that manages this connection.")
+ options: Optional[CreateConnectionRequestOptions] = None
+ __properties: ClassVar[List[str]] = ["name", "display_name", "strategy", "enabled_applications", "organization_code", "options"]
+
+ @field_validator('strategy')
+ def strategy_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['oauth2:apple', 'oauth2:azure_ad', 'oauth2:bitbucket', 'oauth2:discord', 'oauth2:facebook', 'oauth2:github', 'oauth2:gitlab', 'oauth2:google', 'oauth2:linkedin', 'oauth2:microsoft', 'oauth2:patreon', 'oauth2:slack', 'oauth2:stripe', 'oauth2:twitch', 'oauth2:twitter', 'oauth2:xero', 'saml:custom', 'wsfed:azure_ad']):
+ raise ValueError("must be one of enum values ('oauth2:apple', 'oauth2:azure_ad', 'oauth2:bitbucket', 'oauth2:discord', 'oauth2:facebook', 'oauth2:github', 'oauth2:gitlab', 'oauth2:google', 'oauth2:linkedin', 'oauth2:microsoft', 'oauth2:patreon', 'oauth2:slack', 'oauth2:stripe', 'oauth2:twitch', 'oauth2:twitter', 'oauth2:xero', 'saml:custom', 'wsfed:azure_ad')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ # set to None if organization_code (nullable) is None
+ # and model_fields_set contains the field
+ if self.organization_code is None and "organization_code" in self.model_fields_set:
+ _dict['organization_code'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "display_name": obj.get("display_name"),
+ "strategy": obj.get("strategy"),
+ "enabled_applications": obj.get("enabled_applications"),
+ "organization_code": obj.get("organization_code"),
+ "options": CreateConnectionRequestOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_connection_request_options.py b/kinde_sdk/models/create_connection_request_options.py
new file mode 100644
index 00000000..d012668e
--- /dev/null
+++ b/kinde_sdk/models/create_connection_request_options.py
@@ -0,0 +1,152 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from kinde_sdk.models.create_connection_request_options_one_of import CreateConnectionRequestOptionsOneOf
+from kinde_sdk.models.create_connection_request_options_one_of1 import CreateConnectionRequestOptionsOneOf1
+from kinde_sdk.models.create_connection_request_options_one_of2 import CreateConnectionRequestOptionsOneOf2
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+CREATECONNECTIONREQUESTOPTIONS_ONE_OF_SCHEMAS = ["CreateConnectionRequestOptionsOneOf", "CreateConnectionRequestOptionsOneOf1", "CreateConnectionRequestOptionsOneOf2"]
+
+class CreateConnectionRequestOptions(BaseModel):
+ """
+ CreateConnectionRequestOptions
+ """
+ # data type: CreateConnectionRequestOptionsOneOf
+ oneof_schema_1_validator: Optional[CreateConnectionRequestOptionsOneOf] = None
+ # data type: CreateConnectionRequestOptionsOneOf1
+ oneof_schema_2_validator: Optional[CreateConnectionRequestOptionsOneOf1] = None
+ # data type: CreateConnectionRequestOptionsOneOf2
+ oneof_schema_3_validator: Optional[CreateConnectionRequestOptionsOneOf2] = None
+ actual_instance: Optional[Union[CreateConnectionRequestOptionsOneOf, CreateConnectionRequestOptionsOneOf1, CreateConnectionRequestOptionsOneOf2]] = None
+ one_of_schemas: Set[str] = { "CreateConnectionRequestOptionsOneOf", "CreateConnectionRequestOptionsOneOf1", "CreateConnectionRequestOptionsOneOf2" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = CreateConnectionRequestOptions.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: CreateConnectionRequestOptionsOneOf
+ if not isinstance(v, CreateConnectionRequestOptionsOneOf):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `CreateConnectionRequestOptionsOneOf`")
+ else:
+ match += 1
+ # validate data type: CreateConnectionRequestOptionsOneOf1
+ if not isinstance(v, CreateConnectionRequestOptionsOneOf1):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `CreateConnectionRequestOptionsOneOf1`")
+ else:
+ match += 1
+ # validate data type: CreateConnectionRequestOptionsOneOf2
+ if not isinstance(v, CreateConnectionRequestOptionsOneOf2):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `CreateConnectionRequestOptionsOneOf2`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in CreateConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, CreateConnectionRequestOptionsOneOf1, CreateConnectionRequestOptionsOneOf2. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in CreateConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, CreateConnectionRequestOptionsOneOf1, CreateConnectionRequestOptionsOneOf2. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into CreateConnectionRequestOptionsOneOf
+ try:
+ instance.actual_instance = CreateConnectionRequestOptionsOneOf.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into CreateConnectionRequestOptionsOneOf1
+ try:
+ instance.actual_instance = CreateConnectionRequestOptionsOneOf1.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into CreateConnectionRequestOptionsOneOf2
+ try:
+ instance.actual_instance = CreateConnectionRequestOptionsOneOf2.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into CreateConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, CreateConnectionRequestOptionsOneOf1, CreateConnectionRequestOptionsOneOf2. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into CreateConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, CreateConnectionRequestOptionsOneOf1, CreateConnectionRequestOptionsOneOf2. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], CreateConnectionRequestOptionsOneOf, CreateConnectionRequestOptionsOneOf1, CreateConnectionRequestOptionsOneOf2]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/kinde_sdk/models/create_connection_request_options_one_of.py b/kinde_sdk/models/create_connection_request_options_one_of.py
new file mode 100644
index 00000000..2b33a944
--- /dev/null
+++ b/kinde_sdk/models/create_connection_request_options_one_of.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateConnectionRequestOptionsOneOf(BaseModel):
+ """
+ Social connection options (e.g., Google SSO).
+ """ # noqa: E501
+ client_id: Optional[StrictStr] = Field(default=None, description="OAuth client ID.")
+ client_secret: Optional[StrictStr] = Field(default=None, description="OAuth client secret.")
+ is_use_custom_domain: Optional[StrictBool] = Field(default=None, description="Use custom domain callback URL.")
+ __properties: ClassVar[List[str]] = ["client_id", "client_secret", "is_use_custom_domain"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequestOptionsOneOf from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequestOptionsOneOf from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "client_id": obj.get("client_id"),
+ "client_secret": obj.get("client_secret"),
+ "is_use_custom_domain": obj.get("is_use_custom_domain")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_connection_request_options_one_of1.py b/kinde_sdk/models/create_connection_request_options_one_of1.py
new file mode 100644
index 00000000..a2593263
--- /dev/null
+++ b/kinde_sdk/models/create_connection_request_options_one_of1.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateConnectionRequestOptionsOneOf1(BaseModel):
+ """
+ Azure AD connection options.
+ """ # noqa: E501
+ client_id: Optional[StrictStr] = Field(default=None, description="Client ID.")
+ client_secret: Optional[StrictStr] = Field(default=None, description="Client secret.")
+ home_realm_domains: Optional[List[StrictStr]] = Field(default=None, description="List of domains to limit authentication.")
+ entra_id_domain: Optional[StrictStr] = Field(default=None, description="Domain for Entra ID.")
+ is_use_common_endpoint: Optional[StrictBool] = Field(default=None, description="Use https://login.windows.net/common instead of a default endpoint.")
+ is_sync_user_profile_on_login: Optional[StrictBool] = Field(default=None, description="Sync user profile data with IDP.")
+ is_retrieve_provider_user_groups: Optional[StrictBool] = Field(default=None, description="Include user group info from MS Entra ID.")
+ is_extended_attributes_required: Optional[StrictBool] = Field(default=None, description="Include additional user profile information.")
+ is_auto_join_organization_enabled: Optional[StrictBool] = Field(default=None, description="Users automatically join organization when using this connection.")
+ __properties: ClassVar[List[str]] = ["client_id", "client_secret", "home_realm_domains", "entra_id_domain", "is_use_common_endpoint", "is_sync_user_profile_on_login", "is_retrieve_provider_user_groups", "is_extended_attributes_required", "is_auto_join_organization_enabled"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequestOptionsOneOf1 from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequestOptionsOneOf1 from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "client_id": obj.get("client_id"),
+ "client_secret": obj.get("client_secret"),
+ "home_realm_domains": obj.get("home_realm_domains"),
+ "entra_id_domain": obj.get("entra_id_domain"),
+ "is_use_common_endpoint": obj.get("is_use_common_endpoint"),
+ "is_sync_user_profile_on_login": obj.get("is_sync_user_profile_on_login"),
+ "is_retrieve_provider_user_groups": obj.get("is_retrieve_provider_user_groups"),
+ "is_extended_attributes_required": obj.get("is_extended_attributes_required"),
+ "is_auto_join_organization_enabled": obj.get("is_auto_join_organization_enabled")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_connection_request_options_one_of2.py b/kinde_sdk/models/create_connection_request_options_one_of2.py
new file mode 100644
index 00000000..de1bb972
--- /dev/null
+++ b/kinde_sdk/models/create_connection_request_options_one_of2.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateConnectionRequestOptionsOneOf2(BaseModel):
+ """
+ SAML connection options (e.g., Cloudflare SAML).
+ """ # noqa: E501
+ home_realm_domains: Optional[List[StrictStr]] = Field(default=None, description="List of domains to restrict authentication.")
+ saml_entity_id: Optional[StrictStr] = Field(default=None, description="SAML Entity ID.")
+ saml_acs_url: Optional[StrictStr] = Field(default=None, description="Assertion Consumer Service URL.")
+ saml_idp_metadata_url: Optional[StrictStr] = Field(default=None, description="URL for the IdP metadata.")
+ saml_sign_in_url: Optional[StrictStr] = Field(default=None, description="Override the default SSO endpoint with a URL your IdP recognizes.")
+ saml_email_key_attr: Optional[StrictStr] = Field(default=None, description="Attribute key for the user’s email.")
+ saml_first_name_key_attr: Optional[StrictStr] = Field(default=None, description="Attribute key for the user’s first name.")
+ saml_last_name_key_attr: Optional[StrictStr] = Field(default=None, description="Attribute key for the user’s last name.")
+ is_create_missing_user: Optional[StrictBool] = Field(default=None, description="Create user if they don’t exist.")
+ saml_signing_certificate: Optional[StrictStr] = Field(default=None, description="Certificate for signing SAML requests.")
+ saml_signing_private_key: Optional[StrictStr] = Field(default=None, description="Private key associated with the signing certificate.")
+ is_auto_join_organization_enabled: Optional[StrictBool] = Field(default=None, description="Users automatically join organization when using this connection.")
+ __properties: ClassVar[List[str]] = ["home_realm_domains", "saml_entity_id", "saml_acs_url", "saml_idp_metadata_url", "saml_sign_in_url", "saml_email_key_attr", "saml_first_name_key_attr", "saml_last_name_key_attr", "is_create_missing_user", "saml_signing_certificate", "saml_signing_private_key", "is_auto_join_organization_enabled"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequestOptionsOneOf2 from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateConnectionRequestOptionsOneOf2 from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "home_realm_domains": obj.get("home_realm_domains"),
+ "saml_entity_id": obj.get("saml_entity_id"),
+ "saml_acs_url": obj.get("saml_acs_url"),
+ "saml_idp_metadata_url": obj.get("saml_idp_metadata_url"),
+ "saml_sign_in_url": obj.get("saml_sign_in_url"),
+ "saml_email_key_attr": obj.get("saml_email_key_attr"),
+ "saml_first_name_key_attr": obj.get("saml_first_name_key_attr"),
+ "saml_last_name_key_attr": obj.get("saml_last_name_key_attr"),
+ "is_create_missing_user": obj.get("is_create_missing_user"),
+ "saml_signing_certificate": obj.get("saml_signing_certificate"),
+ "saml_signing_private_key": obj.get("saml_signing_private_key"),
+ "is_auto_join_organization_enabled": obj.get("is_auto_join_organization_enabled")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_connection_response.py b/kinde_sdk/models/create_connection_response.py
new file mode 100644
index 00000000..5bf21432
--- /dev/null
+++ b/kinde_sdk/models/create_connection_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_connection_response_connection import CreateConnectionResponseConnection
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateConnectionResponse(BaseModel):
+ """
+ CreateConnectionResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ connection: Optional[CreateConnectionResponseConnection] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "connection"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateConnectionResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of connection
+ if self.connection:
+ _dict['connection'] = self.connection.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateConnectionResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "connection": CreateConnectionResponseConnection.from_dict(obj["connection"]) if obj.get("connection") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_connection_response_connection.py b/kinde_sdk/models/create_connection_response_connection.py
new file mode 100644
index 00000000..f804bfc6
--- /dev/null
+++ b/kinde_sdk/models/create_connection_response_connection.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateConnectionResponseConnection(BaseModel):
+ """
+ CreateConnectionResponseConnection
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The connection's ID.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateConnectionResponseConnection from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateConnectionResponseConnection from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_environment_variable_request.py b/kinde_sdk/models/create_environment_variable_request.py
new file mode 100644
index 00000000..aa39c4b2
--- /dev/null
+++ b/kinde_sdk/models/create_environment_variable_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateEnvironmentVariableRequest(BaseModel):
+ """
+ CreateEnvironmentVariableRequest
+ """ # noqa: E501
+ key: StrictStr = Field(description="The name of the environment variable (max 128 characters).")
+ value: StrictStr = Field(description="The value of the new environment variable (max 2048 characters).")
+ is_secret: Optional[StrictBool] = Field(default=None, description="Whether the environment variable is sensitive. Secrets are not-readable by you or your team after creation.")
+ __properties: ClassVar[List[str]] = ["key", "value", "is_secret"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateEnvironmentVariableRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateEnvironmentVariableRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key"),
+ "value": obj.get("value"),
+ "is_secret": obj.get("is_secret")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_environment_variable_response.py b/kinde_sdk/models/create_environment_variable_response.py
new file mode 100644
index 00000000..a429117f
--- /dev/null
+++ b/kinde_sdk/models/create_environment_variable_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_environment_variable_response_environment_variable import CreateEnvironmentVariableResponseEnvironmentVariable
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateEnvironmentVariableResponse(BaseModel):
+ """
+ CreateEnvironmentVariableResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="A Kinde generated message.")
+ code: Optional[StrictStr] = Field(default=None, description="A Kinde generated status code.")
+ environment_variable: Optional[CreateEnvironmentVariableResponseEnvironmentVariable] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "environment_variable"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateEnvironmentVariableResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of environment_variable
+ if self.environment_variable:
+ _dict['environment_variable'] = self.environment_variable.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateEnvironmentVariableResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "environment_variable": CreateEnvironmentVariableResponseEnvironmentVariable.from_dict(obj["environment_variable"]) if obj.get("environment_variable") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_environment_variable_response_environment_variable.py b/kinde_sdk/models/create_environment_variable_response_environment_variable.py
new file mode 100644
index 00000000..4687dd2c
--- /dev/null
+++ b/kinde_sdk/models/create_environment_variable_response_environment_variable.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateEnvironmentVariableResponseEnvironmentVariable(BaseModel):
+ """
+ CreateEnvironmentVariableResponseEnvironmentVariable
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the environment variable.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateEnvironmentVariableResponseEnvironmentVariable from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateEnvironmentVariableResponseEnvironmentVariable from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_feature_flag_request.py b/kinde_sdk/models/create_feature_flag_request.py
new file mode 100644
index 00000000..8cae7ee3
--- /dev/null
+++ b/kinde_sdk/models/create_feature_flag_request.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateFeatureFlagRequest(BaseModel):
+ """
+ CreateFeatureFlagRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The name of the flag.")
+ description: Optional[StrictStr] = Field(default=None, description="Description of the flag purpose.")
+ key: StrictStr = Field(description="The flag identifier to use in code.")
+ type: StrictStr = Field(description="The variable type.")
+ allow_override_level: Optional[StrictStr] = Field(default=None, description="Allow the flag to be overridden at a different level.")
+ default_value: StrictStr = Field(description="Default value for the flag used by environments and organizations.")
+ __properties: ClassVar[List[str]] = ["name", "description", "key", "type", "allow_override_level", "default_value"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['str', 'int', 'bool']):
+ raise ValueError("must be one of enum values ('str', 'int', 'bool')")
+ return value
+
+ @field_validator('allow_override_level')
+ def allow_override_level_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['env', 'org', 'usr']):
+ raise ValueError("must be one of enum values ('env', 'org', 'usr')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateFeatureFlagRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateFeatureFlagRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "key": obj.get("key"),
+ "type": obj.get("type"),
+ "allow_override_level": obj.get("allow_override_level"),
+ "default_value": obj.get("default_value")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_identity_response.py b/kinde_sdk/models/create_identity_response.py
new file mode 100644
index 00000000..5258b917
--- /dev/null
+++ b/kinde_sdk/models/create_identity_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_identity_response_identity import CreateIdentityResponseIdentity
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateIdentityResponse(BaseModel):
+ """
+ CreateIdentityResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ identity: Optional[CreateIdentityResponseIdentity] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "identity"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateIdentityResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of identity
+ if self.identity:
+ _dict['identity'] = self.identity.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateIdentityResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "identity": CreateIdentityResponseIdentity.from_dict(obj["identity"]) if obj.get("identity") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_identity_response_identity.py b/kinde_sdk/models/create_identity_response_identity.py
new file mode 100644
index 00000000..59c9ffe7
--- /dev/null
+++ b/kinde_sdk/models/create_identity_response_identity.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateIdentityResponseIdentity(BaseModel):
+ """
+ CreateIdentityResponseIdentity
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The identity's ID.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateIdentityResponseIdentity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateIdentityResponseIdentity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_meter_usage_record_request.py b/kinde_sdk/models/create_meter_usage_record_request.py
new file mode 100644
index 00000000..e29298d7
--- /dev/null
+++ b/kinde_sdk/models/create_meter_usage_record_request.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateMeterUsageRecordRequest(BaseModel):
+ """
+ CreateMeterUsageRecordRequest
+ """ # noqa: E501
+ customer_agreement_id: StrictStr = Field(description="The billing agreement against which to record usage")
+ billing_feature_code: StrictStr = Field(description="The code of the feature within the agreement against which to record usage")
+ meter_value: StrictStr = Field(description="The value of usage to record")
+ meter_usage_timestamp: Optional[datetime] = Field(default=None, description="The date and time the usage needs to be recorded for (defaults to current date/time)")
+ __properties: ClassVar[List[str]] = ["customer_agreement_id", "billing_feature_code", "meter_value", "meter_usage_timestamp"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateMeterUsageRecordRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateMeterUsageRecordRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "customer_agreement_id": obj.get("customer_agreement_id"),
+ "billing_feature_code": obj.get("billing_feature_code"),
+ "meter_value": obj.get("meter_value"),
+ "meter_usage_timestamp": obj.get("meter_usage_timestamp")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_meter_usage_record_response.py b/kinde_sdk/models/create_meter_usage_record_response.py
new file mode 100644
index 00000000..ad51b80f
--- /dev/null
+++ b/kinde_sdk/models/create_meter_usage_record_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateMeterUsageRecordResponse(BaseModel):
+ """
+ CreateMeterUsageRecordResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ __properties: ClassVar[List[str]] = ["message", "code"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateMeterUsageRecordResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateMeterUsageRecordResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_organization_request.py b/kinde_sdk/models/create_organization_request.py
new file mode 100644
index 00000000..ea48ead0
--- /dev/null
+++ b/kinde_sdk/models/create_organization_request.py
@@ -0,0 +1,145 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationRequest(BaseModel):
+ """
+ CreateOrganizationRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The organization's name.")
+ feature_flags: Optional[Dict[str, StrictStr]] = Field(default=None, description="The organization's feature flag settings.")
+ external_id: Optional[StrictStr] = Field(default=None, description="The organization's external identifier - commonly used when migrating from or mapping to other systems.")
+ background_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - background color.")
+ button_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - button color.")
+ button_text_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - button text color.")
+ link_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - link color.")
+ background_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode background color.")
+ button_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode button color.")
+ button_text_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode button text color.")
+ link_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode link color.")
+ theme_code: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - theme/mode 'light' | 'dark' | 'user_preference'.")
+ handle: Optional[StrictStr] = Field(default=None, description="A unique handle for the organization - can be used for dynamic callback urls.")
+ is_allow_registrations: Optional[StrictBool] = Field(default=None, description="If users become members of this organization when the org code is supplied during authentication.")
+ sender_name: Optional[StrictStr] = Field(default=None, description="The name of the organization that will be used in emails")
+ sender_email: Optional[StrictStr] = Field(default=None, description="The email address that will be used in emails. Requires custom SMTP to be set up.")
+ is_create_billing_customer: Optional[StrictBool] = Field(default=None, description="If a billing customer is also created for this organization")
+ billing_email: Optional[StrictStr] = Field(default=None, description="The email address used for billing purposes for the organization")
+ billing_plan_code: Optional[StrictStr] = Field(default=None, description="The billing plan to put the customer on. If not specified, the default plan is used")
+ __properties: ClassVar[List[str]] = ["name", "feature_flags", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", "sender_name", "sender_email", "is_create_billing_customer", "billing_email", "billing_plan_code"]
+
+ @field_validator('feature_flags')
+ def feature_flags_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ for i in value.values():
+ if i not in set(['str', 'int', 'bool']):
+ raise ValueError("dict values must be one of enum values ('str', 'int', 'bool')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateOrganizationRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if sender_name (nullable) is None
+ # and model_fields_set contains the field
+ if self.sender_name is None and "sender_name" in self.model_fields_set:
+ _dict['sender_name'] = None
+
+ # set to None if sender_email (nullable) is None
+ # and model_fields_set contains the field
+ if self.sender_email is None and "sender_email" in self.model_fields_set:
+ _dict['sender_email'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "feature_flags": obj.get("feature_flags"),
+ "external_id": obj.get("external_id"),
+ "background_color": obj.get("background_color"),
+ "button_color": obj.get("button_color"),
+ "button_text_color": obj.get("button_text_color"),
+ "link_color": obj.get("link_color"),
+ "background_color_dark": obj.get("background_color_dark"),
+ "button_color_dark": obj.get("button_color_dark"),
+ "button_text_color_dark": obj.get("button_text_color_dark"),
+ "link_color_dark": obj.get("link_color_dark"),
+ "theme_code": obj.get("theme_code"),
+ "handle": obj.get("handle"),
+ "is_allow_registrations": obj.get("is_allow_registrations"),
+ "sender_name": obj.get("sender_name"),
+ "sender_email": obj.get("sender_email"),
+ "is_create_billing_customer": obj.get("is_create_billing_customer"),
+ "billing_email": obj.get("billing_email"),
+ "billing_plan_code": obj.get("billing_plan_code")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_organization_response.py b/kinde_sdk/models/create_organization_response.py
new file mode 100644
index 00000000..f0173109
--- /dev/null
+++ b/kinde_sdk/models/create_organization_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_organization_response_organization import CreateOrganizationResponseOrganization
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationResponse(BaseModel):
+ """
+ CreateOrganizationResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ organization: Optional[CreateOrganizationResponseOrganization] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "organization"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateOrganizationResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of organization
+ if self.organization:
+ _dict['organization'] = self.organization.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "organization": CreateOrganizationResponseOrganization.from_dict(obj["organization"]) if obj.get("organization") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_organization_response_organization.py b/kinde_sdk/models/create_organization_response_organization.py
new file mode 100644
index 00000000..12d41a7e
--- /dev/null
+++ b/kinde_sdk/models/create_organization_response_organization.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationResponseOrganization(BaseModel):
+ """
+ CreateOrganizationResponseOrganization
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="The organization's unique code.")
+ billing_customer_id: Optional[StrictStr] = Field(default=None, description="The billing customer id if the organization was created with the is_create_billing_customer as true")
+ __properties: ClassVar[List[str]] = ["code", "billing_customer_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateOrganizationResponseOrganization from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationResponseOrganization from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "billing_customer_id": obj.get("billing_customer_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_organization_user_permission_request.py b/kinde_sdk/models/create_organization_user_permission_request.py
new file mode 100644
index 00000000..7508374c
--- /dev/null
+++ b/kinde_sdk/models/create_organization_user_permission_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationUserPermissionRequest(BaseModel):
+ """
+ CreateOrganizationUserPermissionRequest
+ """ # noqa: E501
+ permission_id: Optional[StrictStr] = Field(default=None, description="The permission id.")
+ __properties: ClassVar[List[str]] = ["permission_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateOrganizationUserPermissionRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationUserPermissionRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "permission_id": obj.get("permission_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_organization_user_role_request.py b/kinde_sdk/models/create_organization_user_role_request.py
new file mode 100644
index 00000000..4e187714
--- /dev/null
+++ b/kinde_sdk/models/create_organization_user_role_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationUserRoleRequest(BaseModel):
+ """
+ CreateOrganizationUserRoleRequest
+ """ # noqa: E501
+ role_id: Optional[StrictStr] = Field(default=None, description="The role id.")
+ __properties: ClassVar[List[str]] = ["role_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateOrganizationUserRoleRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationUserRoleRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "role_id": obj.get("role_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_permission_request.py b/kinde_sdk/models/create_permission_request.py
new file mode 100644
index 00000000..3c473aee
--- /dev/null
+++ b/kinde_sdk/models/create_permission_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreatePermissionRequest(BaseModel):
+ """
+ CreatePermissionRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The permission's name.")
+ description: Optional[StrictStr] = Field(default=None, description="The permission's description.")
+ key: Optional[StrictStr] = Field(default=None, description="The permission identifier to use in code.")
+ __properties: ClassVar[List[str]] = ["name", "description", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreatePermissionRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreatePermissionRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_property_request.py b/kinde_sdk/models/create_property_request.py
new file mode 100644
index 00000000..294016eb
--- /dev/null
+++ b/kinde_sdk/models/create_property_request.py
@@ -0,0 +1,114 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreatePropertyRequest(BaseModel):
+ """
+ CreatePropertyRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The name of the property.")
+ description: Optional[StrictStr] = Field(default=None, description="Description of the property purpose.")
+ key: StrictStr = Field(description="The property identifier to use in code.")
+ type: StrictStr = Field(description="The property type.")
+ context: StrictStr = Field(description="The context that the property applies to.")
+ is_private: StrictBool = Field(description="Whether the property can be included in id and access tokens.")
+ category_id: StrictStr = Field(description="Which category the property belongs to.")
+ __properties: ClassVar[List[str]] = ["name", "description", "key", "type", "context", "is_private", "category_id"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['single_line_text', 'multi_line_text']):
+ raise ValueError("must be one of enum values ('single_line_text', 'multi_line_text')")
+ return value
+
+ @field_validator('context')
+ def context_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['org', 'usr', 'app']):
+ raise ValueError("must be one of enum values ('org', 'usr', 'app')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreatePropertyRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreatePropertyRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "key": obj.get("key"),
+ "type": obj.get("type"),
+ "context": obj.get("context"),
+ "is_private": obj.get("is_private"),
+ "category_id": obj.get("category_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_property_response.py b/kinde_sdk/models/create_property_response.py
new file mode 100644
index 00000000..2034e9a7
--- /dev/null
+++ b/kinde_sdk/models/create_property_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_property_response_property import CreatePropertyResponseProperty
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreatePropertyResponse(BaseModel):
+ """
+ CreatePropertyResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ var_property: Optional[CreatePropertyResponseProperty] = Field(default=None, alias="property")
+ __properties: ClassVar[List[str]] = ["message", "code", "property"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreatePropertyResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of var_property
+ if self.var_property:
+ _dict['property'] = self.var_property.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreatePropertyResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "property": CreatePropertyResponseProperty.from_dict(obj["property"]) if obj.get("property") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_property_response_property.py b/kinde_sdk/models/create_property_response_property.py
new file mode 100644
index 00000000..da5550d9
--- /dev/null
+++ b/kinde_sdk/models/create_property_response_property.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreatePropertyResponseProperty(BaseModel):
+ """
+ CreatePropertyResponseProperty
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The property's ID.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreatePropertyResponseProperty from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreatePropertyResponseProperty from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_role_request.py b/kinde_sdk/models/create_role_request.py
new file mode 100644
index 00000000..5a9bec12
--- /dev/null
+++ b/kinde_sdk/models/create_role_request.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateRoleRequest(BaseModel):
+ """
+ CreateRoleRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The role's name.")
+ description: Optional[StrictStr] = Field(default=None, description="The role's description.")
+ key: Optional[StrictStr] = Field(default=None, description="The role identifier to use in code.")
+ is_default_role: Optional[StrictBool] = Field(default=None, description="Set role as default for new users.")
+ __properties: ClassVar[List[str]] = ["name", "description", "key", "is_default_role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateRoleRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateRoleRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "key": obj.get("key"),
+ "is_default_role": obj.get("is_default_role")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_roles_response.py b/kinde_sdk/models/create_roles_response.py
new file mode 100644
index 00000000..6dc3d401
--- /dev/null
+++ b/kinde_sdk/models/create_roles_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_roles_response_role import CreateRolesResponseRole
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateRolesResponse(BaseModel):
+ """
+ CreateRolesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ role: Optional[CreateRolesResponseRole] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateRolesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of role
+ if self.role:
+ _dict['role'] = self.role.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateRolesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "role": CreateRolesResponseRole.from_dict(obj["role"]) if obj.get("role") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_roles_response_role.py b/kinde_sdk/models/create_roles_response_role.py
new file mode 100644
index 00000000..ed0d6553
--- /dev/null
+++ b/kinde_sdk/models/create_roles_response_role.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateRolesResponseRole(BaseModel):
+ """
+ CreateRolesResponseRole
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The role's ID.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateRolesResponseRole from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateRolesResponseRole from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_subscriber_success_response.py b/kinde_sdk/models/create_subscriber_success_response.py
new file mode 100644
index 00000000..394a2aef
--- /dev/null
+++ b/kinde_sdk/models/create_subscriber_success_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_subscriber_success_response_subscriber import CreateSubscriberSuccessResponseSubscriber
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateSubscriberSuccessResponse(BaseModel):
+ """
+ CreateSubscriberSuccessResponse
+ """ # noqa: E501
+ subscriber: Optional[CreateSubscriberSuccessResponseSubscriber] = None
+ __properties: ClassVar[List[str]] = ["subscriber"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateSubscriberSuccessResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of subscriber
+ if self.subscriber:
+ _dict['subscriber'] = self.subscriber.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateSubscriberSuccessResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "subscriber": CreateSubscriberSuccessResponseSubscriber.from_dict(obj["subscriber"]) if obj.get("subscriber") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_subscriber_success_response_subscriber.py b/kinde_sdk/models/create_subscriber_success_response_subscriber.py
new file mode 100644
index 00000000..97825f62
--- /dev/null
+++ b/kinde_sdk/models/create_subscriber_success_response_subscriber.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateSubscriberSuccessResponseSubscriber(BaseModel):
+ """
+ CreateSubscriberSuccessResponseSubscriber
+ """ # noqa: E501
+ subscriber_id: Optional[StrictStr] = Field(default=None, description="A unique identifier for the subscriber.")
+ __properties: ClassVar[List[str]] = ["subscriber_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateSubscriberSuccessResponseSubscriber from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateSubscriberSuccessResponseSubscriber from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "subscriber_id": obj.get("subscriber_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_user_identity_request.py b/kinde_sdk/models/create_user_identity_request.py
new file mode 100644
index 00000000..f52ed554
--- /dev/null
+++ b/kinde_sdk/models/create_user_identity_request.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateUserIdentityRequest(BaseModel):
+ """
+ CreateUserIdentityRequest
+ """ # noqa: E501
+ value: Optional[StrictStr] = Field(default=None, description="The email address, social identity, or username of the user.")
+ type: Optional[StrictStr] = Field(default=None, description="The identity type")
+ phone_country_id: Optional[StrictStr] = Field(default=None, description="The country code for the phone number, only required when identity type is 'phone'.")
+ connection_id: Optional[StrictStr] = Field(default=None, description="The social or enterprise connection ID, only required when identity type is 'social' or 'enterprise'.")
+ __properties: ClassVar[List[str]] = ["value", "type", "phone_country_id", "connection_id"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['email', 'username', 'phone', 'enterprise', 'social']):
+ raise ValueError("must be one of enum values ('email', 'username', 'phone', 'enterprise', 'social')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateUserIdentityRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateUserIdentityRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "value": obj.get("value"),
+ "type": obj.get("type"),
+ "phone_country_id": obj.get("phone_country_id"),
+ "connection_id": obj.get("connection_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_user_request.py b/kinde_sdk/models/create_user_request.py
new file mode 100644
index 00000000..0fc80433
--- /dev/null
+++ b/kinde_sdk/models/create_user_request.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_user_request_identities_inner import CreateUserRequestIdentitiesInner
+from kinde_sdk.models.create_user_request_profile import CreateUserRequestProfile
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateUserRequest(BaseModel):
+ """
+ CreateUserRequest
+ """ # noqa: E501
+ profile: Optional[CreateUserRequestProfile] = None
+ organization_code: Optional[StrictStr] = Field(default=None, description="The unique code associated with the organization you want the user to join.")
+ provided_id: Optional[StrictStr] = Field(default=None, description="An external id to reference the user.")
+ identities: Optional[List[CreateUserRequestIdentitiesInner]] = Field(default=None, description="Array of identities to assign to the created user")
+ __properties: ClassVar[List[str]] = ["profile", "organization_code", "provided_id", "identities"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateUserRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of profile
+ if self.profile:
+ _dict['profile'] = self.profile.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in identities (list)
+ _items = []
+ if self.identities:
+ for _item_identities in self.identities:
+ if _item_identities:
+ _items.append(_item_identities.to_dict())
+ _dict['identities'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateUserRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "profile": CreateUserRequestProfile.from_dict(obj["profile"]) if obj.get("profile") is not None else None,
+ "organization_code": obj.get("organization_code"),
+ "provided_id": obj.get("provided_id"),
+ "identities": [CreateUserRequestIdentitiesInner.from_dict(_item) for _item in obj["identities"]] if obj.get("identities") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_user_request_identities_inner.py b/kinde_sdk/models/create_user_request_identities_inner.py
new file mode 100644
index 00000000..7bb1268a
--- /dev/null
+++ b/kinde_sdk/models/create_user_request_identities_inner.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_user_request_identities_inner_details import CreateUserRequestIdentitiesInnerDetails
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateUserRequestIdentitiesInner(BaseModel):
+ """
+ The result of the user creation operation.
+ """ # noqa: E501
+ type: Optional[StrictStr] = Field(default=None, description="The type of identity to create, e.g. email, username, or phone.")
+ is_verified: Optional[StrictBool] = Field(default=None, description="Set whether an email or phone identity is verified or not.")
+ details: Optional[CreateUserRequestIdentitiesInnerDetails] = None
+ __properties: ClassVar[List[str]] = ["type", "is_verified", "details"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['email', 'phone', 'username']):
+ raise ValueError("must be one of enum values ('email', 'phone', 'username')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateUserRequestIdentitiesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of details
+ if self.details:
+ _dict['details'] = self.details.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateUserRequestIdentitiesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "is_verified": obj.get("is_verified"),
+ "details": CreateUserRequestIdentitiesInnerDetails.from_dict(obj["details"]) if obj.get("details") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_user_request_identities_inner_details.py b/kinde_sdk/models/create_user_request_identities_inner_details.py
new file mode 100644
index 00000000..86106a48
--- /dev/null
+++ b/kinde_sdk/models/create_user_request_identities_inner_details.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateUserRequestIdentitiesInnerDetails(BaseModel):
+ """
+ Additional details required to create the user.
+ """ # noqa: E501
+ email: Optional[StrictStr] = Field(default=None, description="The email address of the user.")
+ phone: Optional[StrictStr] = Field(default=None, description="The phone number of the user.")
+ phone_country_id: Optional[StrictStr] = Field(default=None, description="The country code for the phone number.")
+ username: Optional[StrictStr] = Field(default=None, description="The username of the user.")
+ __properties: ClassVar[List[str]] = ["email", "phone", "phone_country_id", "username"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateUserRequestIdentitiesInnerDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateUserRequestIdentitiesInnerDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "email": obj.get("email"),
+ "phone": obj.get("phone"),
+ "phone_country_id": obj.get("phone_country_id"),
+ "username": obj.get("username")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_user_request_profile.py b/kinde_sdk/models/create_user_request_profile.py
new file mode 100644
index 00000000..6e380690
--- /dev/null
+++ b/kinde_sdk/models/create_user_request_profile.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateUserRequestProfile(BaseModel):
+ """
+ Basic information required to create a user.
+ """ # noqa: E501
+ given_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ family_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ picture: Optional[StrictStr] = Field(default=None, description="The user's profile picture.")
+ __properties: ClassVar[List[str]] = ["given_name", "family_name", "picture"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateUserRequestProfile from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateUserRequestProfile from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "given_name": obj.get("given_name"),
+ "family_name": obj.get("family_name"),
+ "picture": obj.get("picture")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_user_response.py b/kinde_sdk/models/create_user_response.py
new file mode 100644
index 00000000..e042ae04
--- /dev/null
+++ b/kinde_sdk/models/create_user_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.user_identity import UserIdentity
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateUserResponse(BaseModel):
+ """
+ CreateUserResponse
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde.")
+ created: Optional[StrictBool] = Field(default=None, description="True if the user was successfully created.")
+ identities: Optional[List[UserIdentity]] = None
+ __properties: ClassVar[List[str]] = ["id", "created", "identities"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateUserResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in identities (list)
+ _items = []
+ if self.identities:
+ for _item_identities in self.identities:
+ if _item_identities:
+ _items.append(_item_identities.to_dict())
+ _dict['identities'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateUserResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "created": obj.get("created"),
+ "identities": [UserIdentity.from_dict(_item) for _item in obj["identities"]] if obj.get("identities") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_web_hook_request.py b/kinde_sdk/models/create_web_hook_request.py
new file mode 100644
index 00000000..9f05547e
--- /dev/null
+++ b/kinde_sdk/models/create_web_hook_request.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateWebHookRequest(BaseModel):
+ """
+ CreateWebHookRequest
+ """ # noqa: E501
+ endpoint: StrictStr = Field(description="The webhook endpoint url")
+ event_types: List[StrictStr] = Field(description="Array of event type keys")
+ name: StrictStr = Field(description="The webhook name")
+ description: Optional[StrictStr] = Field(default=None, description="The webhook description")
+ __properties: ClassVar[List[str]] = ["endpoint", "event_types", "name", "description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateWebHookRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if description (nullable) is None
+ # and model_fields_set contains the field
+ if self.description is None and "description" in self.model_fields_set:
+ _dict['description'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateWebHookRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "endpoint": obj.get("endpoint"),
+ "event_types": obj.get("event_types"),
+ "name": obj.get("name"),
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_webhook_response.py b/kinde_sdk/models/create_webhook_response.py
new file mode 100644
index 00000000..d55b95c5
--- /dev/null
+++ b/kinde_sdk/models/create_webhook_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.create_webhook_response_webhook import CreateWebhookResponseWebhook
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateWebhookResponse(BaseModel):
+ """
+ CreateWebhookResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ webhook: Optional[CreateWebhookResponseWebhook] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "webhook"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateWebhookResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of webhook
+ if self.webhook:
+ _dict['webhook'] = self.webhook.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateWebhookResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "webhook": CreateWebhookResponseWebhook.from_dict(obj["webhook"]) if obj.get("webhook") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/create_webhook_response_webhook.py b/kinde_sdk/models/create_webhook_response_webhook.py
new file mode 100644
index 00000000..d3a565ac
--- /dev/null
+++ b/kinde_sdk/models/create_webhook_response_webhook.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateWebhookResponseWebhook(BaseModel):
+ """
+ CreateWebhookResponseWebhook
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ endpoint: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "endpoint"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateWebhookResponseWebhook from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateWebhookResponseWebhook from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "endpoint": obj.get("endpoint")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/delete_api_response.py b/kinde_sdk/models/delete_api_response.py
new file mode 100644
index 00000000..c4cb0b88
--- /dev/null
+++ b/kinde_sdk/models/delete_api_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeleteApiResponse(BaseModel):
+ """
+ DeleteApiResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["message", "code"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DeleteApiResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeleteApiResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/delete_environment_variable_response.py b/kinde_sdk/models/delete_environment_variable_response.py
new file mode 100644
index 00000000..af247f2d
--- /dev/null
+++ b/kinde_sdk/models/delete_environment_variable_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeleteEnvironmentVariableResponse(BaseModel):
+ """
+ DeleteEnvironmentVariableResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="A Kinde generated message.")
+ code: Optional[StrictStr] = Field(default=None, description="A Kinde generated status code.")
+ __properties: ClassVar[List[str]] = ["message", "code"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DeleteEnvironmentVariableResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeleteEnvironmentVariableResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/delete_role_scope_response.py b/kinde_sdk/models/delete_role_scope_response.py
new file mode 100644
index 00000000..84296cb0
--- /dev/null
+++ b/kinde_sdk/models/delete_role_scope_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeleteRoleScopeResponse(BaseModel):
+ """
+ DeleteRoleScopeResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ __properties: ClassVar[List[str]] = ["code", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DeleteRoleScopeResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeleteRoleScopeResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/delete_webhook_response.py b/kinde_sdk/models/delete_webhook_response.py
new file mode 100644
index 00000000..0e7d0506
--- /dev/null
+++ b/kinde_sdk/models/delete_webhook_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeleteWebhookResponse(BaseModel):
+ """
+ DeleteWebhookResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ __properties: ClassVar[List[str]] = ["code", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DeleteWebhookResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeleteWebhookResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/environment_variable.py b/kinde_sdk/models/environment_variable.py
new file mode 100644
index 00000000..e3cd1e48
--- /dev/null
+++ b/kinde_sdk/models/environment_variable.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class EnvironmentVariable(BaseModel):
+ """
+ EnvironmentVariable
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the environment variable.")
+ key: Optional[StrictStr] = Field(default=None, description="The name of the environment variable.")
+ value: Optional[StrictStr] = Field(default=None, description="The value of the environment variable.")
+ is_secret: Optional[StrictBool] = Field(default=None, description="Whether the environment variable is sensitive.")
+ created_on: Optional[StrictStr] = Field(default=None, description="The date the environment variable was created.")
+ __properties: ClassVar[List[str]] = ["id", "key", "value", "is_secret", "created_on"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EnvironmentVariable from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if value (nullable) is None
+ # and model_fields_set contains the field
+ if self.value is None and "value" in self.model_fields_set:
+ _dict['value'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EnvironmentVariable from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "value": obj.get("value"),
+ "is_secret": obj.get("is_secret"),
+ "created_on": obj.get("created_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/error.py b/kinde_sdk/models/error.py
new file mode 100644
index 00000000..081525f2
--- /dev/null
+++ b/kinde_sdk/models/error.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Error(BaseModel):
+ """
+ Error
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Error code.")
+ message: Optional[StrictStr] = Field(default=None, description="Error message.")
+ __properties: ClassVar[List[str]] = ["code", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Error from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Error from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/error_response.py b/kinde_sdk/models/error_response.py
new file mode 100644
index 00000000..0fc71fb6
--- /dev/null
+++ b/kinde_sdk/models/error_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.error import Error
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ErrorResponse(BaseModel):
+ """
+ ErrorResponse
+ """ # noqa: E501
+ errors: Optional[List[Error]] = None
+ __properties: ClassVar[List[str]] = ["errors"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ErrorResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ if _item_errors:
+ _items.append(_item_errors.to_dict())
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ErrorResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "errors": [Error.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/event_type.py b/kinde_sdk/models/event_type.py
new file mode 100644
index 00000000..80222bc4
--- /dev/null
+++ b/kinde_sdk/models/event_type.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class EventType(BaseModel):
+ """
+ EventType
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ origin: Optional[StrictStr] = None
+ var_schema: Optional[Dict[str, Any]] = Field(default=None, alias="schema")
+ __properties: ClassVar[List[str]] = ["id", "code", "name", "origin", "schema"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventType from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventType from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "code": obj.get("code"),
+ "name": obj.get("name"),
+ "origin": obj.get("origin"),
+ "schema": obj.get("schema")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_response.py b/kinde_sdk/models/get_api_response.py
new file mode 100644
index 00000000..181704c1
--- /dev/null
+++ b/kinde_sdk/models/get_api_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_api_response_api import GetApiResponseApi
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiResponse(BaseModel):
+ """
+ GetApiResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ api: Optional[GetApiResponseApi] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "api"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of api
+ if self.api:
+ _dict['api'] = self.api.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "api": GetApiResponseApi.from_dict(obj["api"]) if obj.get("api") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_response_api.py b/kinde_sdk/models/get_api_response_api.py
new file mode 100644
index 00000000..5960d52d
--- /dev/null
+++ b/kinde_sdk/models/get_api_response_api.py
@@ -0,0 +1,114 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_api_response_api_applications_inner import GetApiResponseApiApplicationsInner
+from kinde_sdk.models.get_api_response_api_scopes_inner import GetApiResponseApiScopesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiResponseApi(BaseModel):
+ """
+ GetApiResponseApi
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the API.")
+ name: Optional[StrictStr] = Field(default=None, description="The API’s name.")
+ audience: Optional[StrictStr] = Field(default=None, description="A unique identifier for the API - commonly the URL. This value will be used as the `audience` parameter in authorization claims.")
+ is_management_api: Optional[StrictBool] = Field(default=None, description="Whether or not it is the Kinde management API.")
+ scopes: Optional[List[GetApiResponseApiScopesInner]] = None
+ applications: Optional[List[GetApiResponseApiApplicationsInner]] = None
+ __properties: ClassVar[List[str]] = ["id", "name", "audience", "is_management_api", "scopes", "applications"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiResponseApi from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in scopes (list)
+ _items = []
+ if self.scopes:
+ for _item_scopes in self.scopes:
+ if _item_scopes:
+ _items.append(_item_scopes.to_dict())
+ _dict['scopes'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in applications (list)
+ _items = []
+ if self.applications:
+ for _item_applications in self.applications:
+ if _item_applications:
+ _items.append(_item_applications.to_dict())
+ _dict['applications'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiResponseApi from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "audience": obj.get("audience"),
+ "is_management_api": obj.get("is_management_api"),
+ "scopes": [GetApiResponseApiScopesInner.from_dict(_item) for _item in obj["scopes"]] if obj.get("scopes") is not None else None,
+ "applications": [GetApiResponseApiApplicationsInner.from_dict(_item) for _item in obj["applications"]] if obj.get("applications") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_response_api_applications_inner.py b/kinde_sdk/models/get_api_response_api_applications_inner.py
new file mode 100644
index 00000000..399b203a
--- /dev/null
+++ b/kinde_sdk/models/get_api_response_api_applications_inner.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiResponseApiApplicationsInner(BaseModel):
+ """
+ GetApiResponseApiApplicationsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The Client ID of the application.")
+ name: Optional[StrictStr] = Field(default=None, description="The application's name.")
+ type: Optional[StrictStr] = Field(default=None, description="The application's type.")
+ is_active: Optional[StrictBool] = Field(default=None, description="Whether or not the application is authorized to access the API")
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "is_active"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['Machine to machine (M2M)', 'Back-end web', 'Front-end and mobile']):
+ raise ValueError("must be one of enum values ('Machine to machine (M2M)', 'Back-end web', 'Front-end and mobile')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiResponseApiApplicationsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if is_active (nullable) is None
+ # and model_fields_set contains the field
+ if self.is_active is None and "is_active" in self.model_fields_set:
+ _dict['is_active'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiResponseApiApplicationsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "is_active": obj.get("is_active")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_response_api_scopes_inner.py b/kinde_sdk/models/get_api_response_api_scopes_inner.py
new file mode 100644
index 00000000..87a25af9
--- /dev/null
+++ b/kinde_sdk/models/get_api_response_api_scopes_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiResponseApiScopesInner(BaseModel):
+ """
+ GetApiResponseApiScopesInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The ID of the scope.")
+ key: Optional[StrictStr] = Field(default=None, description="The reference key for the scope.")
+ __properties: ClassVar[List[str]] = ["id", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiResponseApiScopesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiResponseApiScopesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_scope_response.py b/kinde_sdk/models/get_api_scope_response.py
new file mode 100644
index 00000000..0690318f
--- /dev/null
+++ b/kinde_sdk/models/get_api_scope_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_api_scopes_response_scopes_inner import GetApiScopesResponseScopesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiScopeResponse(BaseModel):
+ """
+ GetApiScopeResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ scope: Optional[GetApiScopesResponseScopesInner] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "scope"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiScopeResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of scope
+ if self.scope:
+ _dict['scope'] = self.scope.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiScopeResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "scope": GetApiScopesResponseScopesInner.from_dict(obj["scope"]) if obj.get("scope") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_scopes_response.py b/kinde_sdk/models/get_api_scopes_response.py
new file mode 100644
index 00000000..264a9f10
--- /dev/null
+++ b/kinde_sdk/models/get_api_scopes_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_api_scopes_response_scopes_inner import GetApiScopesResponseScopesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiScopesResponse(BaseModel):
+ """
+ GetApiScopesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ scopes: Optional[List[GetApiScopesResponseScopesInner]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "scopes"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiScopesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in scopes (list)
+ _items = []
+ if self.scopes:
+ for _item_scopes in self.scopes:
+ if _item_scopes:
+ _items.append(_item_scopes.to_dict())
+ _dict['scopes'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiScopesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "scopes": [GetApiScopesResponseScopesInner.from_dict(_item) for _item in obj["scopes"]] if obj.get("scopes") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_api_scopes_response_scopes_inner.py b/kinde_sdk/models/get_api_scopes_response_scopes_inner.py
new file mode 100644
index 00000000..4ca7d813
--- /dev/null
+++ b/kinde_sdk/models/get_api_scopes_response_scopes_inner.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApiScopesResponseScopesInner(BaseModel):
+ """
+ GetApiScopesResponseScopesInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the API scope.")
+ key: Optional[StrictStr] = Field(default=None, description="The scope's reference key.")
+ description: Optional[StrictStr] = Field(default=None, description="Explanation of the scope purpose.")
+ __properties: ClassVar[List[str]] = ["id", "key", "description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApiScopesResponseScopesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApiScopesResponseScopesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_apis_response.py b/kinde_sdk/models/get_apis_response.py
new file mode 100644
index 00000000..556b9e4f
--- /dev/null
+++ b/kinde_sdk/models/get_apis_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_apis_response_apis_inner import GetApisResponseApisInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApisResponse(BaseModel):
+ """
+ GetApisResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ apis: Optional[List[GetApisResponseApisInner]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "next_token", "apis"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApisResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in apis (list)
+ _items = []
+ if self.apis:
+ for _item_apis in self.apis:
+ if _item_apis:
+ _items.append(_item_apis.to_dict())
+ _dict['apis'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApisResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "next_token": obj.get("next_token"),
+ "apis": [GetApisResponseApisInner.from_dict(_item) for _item in obj["apis"]] if obj.get("apis") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_apis_response_apis_inner.py b/kinde_sdk/models/get_apis_response_apis_inner.py
new file mode 100644
index 00000000..11912972
--- /dev/null
+++ b/kinde_sdk/models/get_apis_response_apis_inner.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_apis_response_apis_inner_scopes_inner import GetApisResponseApisInnerScopesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApisResponseApisInner(BaseModel):
+ """
+ GetApisResponseApisInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the API.")
+ name: Optional[StrictStr] = Field(default=None, description="The API’s name.")
+ audience: Optional[StrictStr] = Field(default=None, description="A unique identifier for the API - commonly the URL. This value will be used as the `audience` parameter in authorization claims.")
+ is_management_api: Optional[StrictBool] = Field(default=None, description="Whether or not it is the Kinde management API.")
+ scopes: Optional[List[GetApisResponseApisInnerScopesInner]] = None
+ __properties: ClassVar[List[str]] = ["id", "name", "audience", "is_management_api", "scopes"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApisResponseApisInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in scopes (list)
+ _items = []
+ if self.scopes:
+ for _item_scopes in self.scopes:
+ if _item_scopes:
+ _items.append(_item_scopes.to_dict())
+ _dict['scopes'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApisResponseApisInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "audience": obj.get("audience"),
+ "is_management_api": obj.get("is_management_api"),
+ "scopes": [GetApisResponseApisInnerScopesInner.from_dict(_item) for _item in obj["scopes"]] if obj.get("scopes") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_apis_response_apis_inner_scopes_inner.py b/kinde_sdk/models/get_apis_response_apis_inner_scopes_inner.py
new file mode 100644
index 00000000..3b9ad86f
--- /dev/null
+++ b/kinde_sdk/models/get_apis_response_apis_inner_scopes_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApisResponseApisInnerScopesInner(BaseModel):
+ """
+ GetApisResponseApisInnerScopesInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApisResponseApisInnerScopesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApisResponseApisInnerScopesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_application_response.py b/kinde_sdk/models/get_application_response.py
new file mode 100644
index 00000000..216db424
--- /dev/null
+++ b/kinde_sdk/models/get_application_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_application_response_application import GetApplicationResponseApplication
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApplicationResponse(BaseModel):
+ """
+ GetApplicationResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ application: Optional[GetApplicationResponseApplication] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "application"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApplicationResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of application
+ if self.application:
+ _dict['application'] = self.application.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApplicationResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "application": GetApplicationResponseApplication.from_dict(obj["application"]) if obj.get("application") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_application_response_application.py b/kinde_sdk/models/get_application_response_application.py
new file mode 100644
index 00000000..cac45b67
--- /dev/null
+++ b/kinde_sdk/models/get_application_response_application.py
@@ -0,0 +1,112 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApplicationResponseApplication(BaseModel):
+ """
+ GetApplicationResponseApplication
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The application's identifier.")
+ name: Optional[StrictStr] = Field(default=None, description="The application's name.")
+ type: Optional[StrictStr] = Field(default=None, description="The application's type.")
+ client_id: Optional[StrictStr] = Field(default=None, description="The application's client ID.")
+ client_secret: Optional[StrictStr] = Field(default=None, description="The application's client secret.")
+ login_uri: Optional[StrictStr] = Field(default=None, description="The default login route for resolving session issues.")
+ homepage_uri: Optional[StrictStr] = Field(default=None, description="The homepage link to your application.")
+ has_cancel_button: Optional[StrictBool] = Field(default=None, description="Whether the application has a cancel button to allow users to exit the auth flow [Beta].")
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "client_id", "client_secret", "login_uri", "homepage_uri", "has_cancel_button"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['m2m', 'reg', 'spa']):
+ raise ValueError("must be one of enum values ('m2m', 'reg', 'spa')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApplicationResponseApplication from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApplicationResponseApplication from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "client_id": obj.get("client_id"),
+ "client_secret": obj.get("client_secret"),
+ "login_uri": obj.get("login_uri"),
+ "homepage_uri": obj.get("homepage_uri"),
+ "has_cancel_button": obj.get("has_cancel_button")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_applications_response.py b/kinde_sdk/models/get_applications_response.py
new file mode 100644
index 00000000..e17ad393
--- /dev/null
+++ b/kinde_sdk/models/get_applications_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.applications import Applications
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetApplicationsResponse(BaseModel):
+ """
+ GetApplicationsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ applications: Optional[List[Applications]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "applications", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetApplicationsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in applications (list)
+ _items = []
+ if self.applications:
+ for _item_applications in self.applications:
+ if _item_applications:
+ _items.append(_item_applications.to_dict())
+ _dict['applications'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetApplicationsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "applications": [Applications.from_dict(_item) for _item in obj["applications"]] if obj.get("applications") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_billing_agreements_response.py b/kinde_sdk/models/get_billing_agreements_response.py
new file mode 100644
index 00000000..ba34f42b
--- /dev/null
+++ b/kinde_sdk/models/get_billing_agreements_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner import GetBillingAgreementsResponseAgreementsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBillingAgreementsResponse(BaseModel):
+ """
+ GetBillingAgreementsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ agreements: Optional[List[GetBillingAgreementsResponseAgreementsInner]] = Field(default=None, description="A list of billing agreements")
+ __properties: ClassVar[List[str]] = ["code", "message", "has_more", "agreements"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBillingAgreementsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in agreements (list)
+ _items = []
+ if self.agreements:
+ for _item_agreements in self.agreements:
+ if _item_agreements:
+ _items.append(_item_agreements.to_dict())
+ _dict['agreements'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBillingAgreementsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "has_more": obj.get("has_more"),
+ "agreements": [GetBillingAgreementsResponseAgreementsInner.from_dict(_item) for _item in obj["agreements"]] if obj.get("agreements") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_billing_agreements_response_agreements_inner.py b/kinde_sdk/models/get_billing_agreements_response_agreements_inner.py
new file mode 100644
index 00000000..00493c84
--- /dev/null
+++ b/kinde_sdk/models/get_billing_agreements_response_agreements_inner.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner import GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBillingAgreementsResponseAgreementsInner(BaseModel):
+ """
+ GetBillingAgreementsResponseAgreementsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly id of an agreement")
+ plan_code: Optional[StrictStr] = Field(default=None, description="The plan code the billing customer is subscribed to")
+ expires_on: Optional[datetime] = Field(default=None, description="The date the agreement expired (and was no longer active)")
+ billing_group_id: Optional[StrictStr] = Field(default=None, description="The friendly id of the billing group this agreement's plan is part of")
+ entitlements: Optional[List[GetBillingAgreementsResponseAgreementsInnerEntitlementsInner]] = Field(default=None, description="A list of billing entitlements that is part of this agreement")
+ __properties: ClassVar[List[str]] = ["id", "plan_code", "expires_on", "billing_group_id", "entitlements"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBillingAgreementsResponseAgreementsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in entitlements (list)
+ _items = []
+ if self.entitlements:
+ for _item_entitlements in self.entitlements:
+ if _item_entitlements:
+ _items.append(_item_entitlements.to_dict())
+ _dict['entitlements'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBillingAgreementsResponseAgreementsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "plan_code": obj.get("plan_code"),
+ "expires_on": obj.get("expires_on"),
+ "billing_group_id": obj.get("billing_group_id"),
+ "entitlements": [GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.from_dict(_item) for _item in obj["entitlements"]] if obj.get("entitlements") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_billing_agreements_response_agreements_inner_entitlements_inner.py b/kinde_sdk/models/get_billing_agreements_response_agreements_inner_entitlements_inner.py
new file mode 100644
index 00000000..699ddad0
--- /dev/null
+++ b/kinde_sdk/models/get_billing_agreements_response_agreements_inner_entitlements_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBillingAgreementsResponseAgreementsInnerEntitlementsInner(BaseModel):
+ """
+ GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+ """ # noqa: E501
+ feature_code: Optional[StrictStr] = Field(default=None, description="The feature code of the feature corresponding to this entitlement")
+ entitlement_id: Optional[StrictStr] = Field(default=None, description="The friendly id of an entitlement")
+ __properties: ClassVar[List[str]] = ["feature_code", "entitlement_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBillingAgreementsResponseAgreementsInnerEntitlementsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBillingAgreementsResponseAgreementsInnerEntitlementsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "feature_code": obj.get("feature_code"),
+ "entitlement_id": obj.get("entitlement_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_billing_entitlements_response.py b/kinde_sdk/models/get_billing_entitlements_response.py
new file mode 100644
index 00000000..d8e03d87
--- /dev/null
+++ b/kinde_sdk/models/get_billing_entitlements_response.py
@@ -0,0 +1,112 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_billing_entitlements_response_entitlements_inner import GetBillingEntitlementsResponseEntitlementsInner
+from kinde_sdk.models.get_billing_entitlements_response_plans_inner import GetBillingEntitlementsResponsePlansInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBillingEntitlementsResponse(BaseModel):
+ """
+ GetBillingEntitlementsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ entitlements: Optional[List[GetBillingEntitlementsResponseEntitlementsInner]] = Field(default=None, description="A list of entitlements")
+ plans: Optional[List[GetBillingEntitlementsResponsePlansInner]] = Field(default=None, description="A list of plans.")
+ __properties: ClassVar[List[str]] = ["code", "message", "has_more", "entitlements", "plans"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBillingEntitlementsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in entitlements (list)
+ _items = []
+ if self.entitlements:
+ for _item_entitlements in self.entitlements:
+ if _item_entitlements:
+ _items.append(_item_entitlements.to_dict())
+ _dict['entitlements'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in plans (list)
+ _items = []
+ if self.plans:
+ for _item_plans in self.plans:
+ if _item_plans:
+ _items.append(_item_plans.to_dict())
+ _dict['plans'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBillingEntitlementsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "has_more": obj.get("has_more"),
+ "entitlements": [GetBillingEntitlementsResponseEntitlementsInner.from_dict(_item) for _item in obj["entitlements"]] if obj.get("entitlements") is not None else None,
+ "plans": [GetBillingEntitlementsResponsePlansInner.from_dict(_item) for _item in obj["plans"]] if obj.get("plans") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_billing_entitlements_response_entitlements_inner.py b/kinde_sdk/models/get_billing_entitlements_response_entitlements_inner.py
new file mode 100644
index 00000000..e5d06228
--- /dev/null
+++ b/kinde_sdk/models/get_billing_entitlements_response_entitlements_inner.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBillingEntitlementsResponseEntitlementsInner(BaseModel):
+ """
+ GetBillingEntitlementsResponseEntitlementsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly id of an entitlement")
+ fixed_charge: Optional[StrictInt] = Field(default=None, description="The price charged if this is an entitlement for a fixed charged")
+ price_name: Optional[StrictStr] = Field(default=None, description="The name of the price associated with the entitlement")
+ unit_amount: Optional[StrictInt] = Field(default=None, description="The price charged for this entitlement in cents")
+ feature_code: Optional[StrictStr] = Field(default=None, description="The feature code of the feature corresponding to this entitlement")
+ feature_name: Optional[StrictStr] = Field(default=None, description="The feature name of the feature corresponding to this entitlement")
+ entitlement_limit_max: Optional[StrictInt] = Field(default=None, description="The maximum number of units of the feature the customer is entitled to")
+ entitlement_limit_min: Optional[StrictInt] = Field(default=None, description="The minimum number of units of the feature the customer is entitled to")
+ __properties: ClassVar[List[str]] = ["id", "fixed_charge", "price_name", "unit_amount", "feature_code", "feature_name", "entitlement_limit_max", "entitlement_limit_min"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBillingEntitlementsResponseEntitlementsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBillingEntitlementsResponseEntitlementsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "fixed_charge": obj.get("fixed_charge"),
+ "price_name": obj.get("price_name"),
+ "unit_amount": obj.get("unit_amount"),
+ "feature_code": obj.get("feature_code"),
+ "feature_name": obj.get("feature_name"),
+ "entitlement_limit_max": obj.get("entitlement_limit_max"),
+ "entitlement_limit_min": obj.get("entitlement_limit_min")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_billing_entitlements_response_plans_inner.py b/kinde_sdk/models/get_billing_entitlements_response_plans_inner.py
new file mode 100644
index 00000000..4bf12e5e
--- /dev/null
+++ b/kinde_sdk/models/get_billing_entitlements_response_plans_inner.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBillingEntitlementsResponsePlansInner(BaseModel):
+ """
+ GetBillingEntitlementsResponsePlansInner
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="The plan code the billing customer is subscribed to")
+ subscribed_on: Optional[datetime] = None
+ __properties: ClassVar[List[str]] = ["code", "subscribed_on"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBillingEntitlementsResponsePlansInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBillingEntitlementsResponsePlansInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "subscribed_on": obj.get("subscribed_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_business_response.py b/kinde_sdk/models/get_business_response.py
new file mode 100644
index 00000000..fededbf8
--- /dev/null
+++ b/kinde_sdk/models/get_business_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_business_response_business import GetBusinessResponseBusiness
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBusinessResponse(BaseModel):
+ """
+ GetBusinessResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ business: Optional[GetBusinessResponseBusiness] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "business"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBusinessResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of business
+ if self.business:
+ _dict['business'] = self.business.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBusinessResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "business": GetBusinessResponseBusiness.from_dict(obj["business"]) if obj.get("business") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_business_response_business.py b/kinde_sdk/models/get_business_response_business.py
new file mode 100644
index 00000000..1d1f5ded
--- /dev/null
+++ b/kinde_sdk/models/get_business_response_business.py
@@ -0,0 +1,138 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetBusinessResponseBusiness(BaseModel):
+ """
+ GetBusinessResponseBusiness
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="The unique ID for the business.")
+ name: Optional[StrictStr] = Field(default=None, description="Your business's name.")
+ phone: Optional[StrictStr] = Field(default=None, description="Phone number associated with business.")
+ email: Optional[StrictStr] = Field(default=None, description="Email address associated with business.")
+ industry: Optional[StrictStr] = Field(default=None, description="The industry your business is in.")
+ timezone: Optional[StrictStr] = Field(default=None, description="The timezone your business is in.")
+ privacy_url: Optional[StrictStr] = Field(default=None, description="Your Privacy policy URL.")
+ terms_url: Optional[StrictStr] = Field(default=None, description="Your Terms and Conditions URL.")
+ has_clickwrap: Optional[StrictBool] = Field(default=None, description="Whether your business uses clickwrap agreements.")
+ has_kinde_branding: Optional[StrictBool] = Field(default=None, description="Whether your business shows Kinde branding.")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of business creation in ISO 8601 format.")
+ __properties: ClassVar[List[str]] = ["code", "name", "phone", "email", "industry", "timezone", "privacy_url", "terms_url", "has_clickwrap", "has_kinde_branding", "created_on"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetBusinessResponseBusiness from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if phone (nullable) is None
+ # and model_fields_set contains the field
+ if self.phone is None and "phone" in self.model_fields_set:
+ _dict['phone'] = None
+
+ # set to None if email (nullable) is None
+ # and model_fields_set contains the field
+ if self.email is None and "email" in self.model_fields_set:
+ _dict['email'] = None
+
+ # set to None if industry (nullable) is None
+ # and model_fields_set contains the field
+ if self.industry is None and "industry" in self.model_fields_set:
+ _dict['industry'] = None
+
+ # set to None if timezone (nullable) is None
+ # and model_fields_set contains the field
+ if self.timezone is None and "timezone" in self.model_fields_set:
+ _dict['timezone'] = None
+
+ # set to None if privacy_url (nullable) is None
+ # and model_fields_set contains the field
+ if self.privacy_url is None and "privacy_url" in self.model_fields_set:
+ _dict['privacy_url'] = None
+
+ # set to None if terms_url (nullable) is None
+ # and model_fields_set contains the field
+ if self.terms_url is None and "terms_url" in self.model_fields_set:
+ _dict['terms_url'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetBusinessResponseBusiness from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "name": obj.get("name"),
+ "phone": obj.get("phone"),
+ "email": obj.get("email"),
+ "industry": obj.get("industry"),
+ "timezone": obj.get("timezone"),
+ "privacy_url": obj.get("privacy_url"),
+ "terms_url": obj.get("terms_url"),
+ "has_clickwrap": obj.get("has_clickwrap"),
+ "has_kinde_branding": obj.get("has_kinde_branding"),
+ "created_on": obj.get("created_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_categories_response.py b/kinde_sdk/models/get_categories_response.py
new file mode 100644
index 00000000..5a3ae1a6
--- /dev/null
+++ b/kinde_sdk/models/get_categories_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.category import Category
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetCategoriesResponse(BaseModel):
+ """
+ GetCategoriesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ categories: Optional[List[Category]] = None
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ __properties: ClassVar[List[str]] = ["code", "message", "categories", "has_more"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetCategoriesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in categories (list)
+ _items = []
+ if self.categories:
+ for _item_categories in self.categories:
+ if _item_categories:
+ _items.append(_item_categories.to_dict())
+ _dict['categories'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetCategoriesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "categories": [Category.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None,
+ "has_more": obj.get("has_more")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_connections_response.py b/kinde_sdk/models/get_connections_response.py
new file mode 100644
index 00000000..72f7617a
--- /dev/null
+++ b/kinde_sdk/models/get_connections_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.connection import Connection
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetConnectionsResponse(BaseModel):
+ """
+ GetConnectionsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ connections: Optional[List[Connection]] = None
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ __properties: ClassVar[List[str]] = ["code", "message", "connections", "has_more"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetConnectionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in connections (list)
+ _items = []
+ if self.connections:
+ for _item_connections in self.connections:
+ if _item_connections:
+ _items.append(_item_connections.to_dict())
+ _dict['connections'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetConnectionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "connections": [Connection.from_dict(_item) for _item in obj["connections"]] if obj.get("connections") is not None else None,
+ "has_more": obj.get("has_more")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_entitlements_response.py b/kinde_sdk/models/get_entitlements_response.py
new file mode 100644
index 00000000..e84c3f3e
--- /dev/null
+++ b/kinde_sdk/models/get_entitlements_response.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_entitlements_response_data import GetEntitlementsResponseData
+from kinde_sdk.models.get_entitlements_response_metadata import GetEntitlementsResponseMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEntitlementsResponse(BaseModel):
+ """
+ GetEntitlementsResponse
+ """ # noqa: E501
+ data: Optional[GetEntitlementsResponseData] = None
+ metadata: Optional[GetEntitlementsResponseMetadata] = None
+ __properties: ClassVar[List[str]] = ["data", "metadata"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of metadata
+ if self.metadata:
+ _dict['metadata'] = self.metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GetEntitlementsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "metadata": GetEntitlementsResponseMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_entitlements_response_data.py b/kinde_sdk/models/get_entitlements_response_data.py
new file mode 100644
index 00000000..08670f2a
--- /dev/null
+++ b/kinde_sdk/models/get_entitlements_response_data.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_entitlements_response_data_entitlements_inner import GetEntitlementsResponseDataEntitlementsInner
+from kinde_sdk.models.get_entitlements_response_data_plans_inner import GetEntitlementsResponseDataPlansInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEntitlementsResponseData(BaseModel):
+ """
+ GetEntitlementsResponseData
+ """ # noqa: E501
+ org_code: Optional[StrictStr] = Field(default=None, description="The organization code the entitlements are associated with.")
+ plans: Optional[List[GetEntitlementsResponseDataPlansInner]] = Field(default=None, description="A list of plans the user is subscribed to")
+ entitlements: Optional[List[GetEntitlementsResponseDataEntitlementsInner]] = Field(default=None, description="A list of entitlements")
+ __properties: ClassVar[List[str]] = ["org_code", "plans", "entitlements"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in plans (list)
+ _items = []
+ if self.plans:
+ for _item_plans in self.plans:
+ if _item_plans:
+ _items.append(_item_plans.to_dict())
+ _dict['plans'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in entitlements (list)
+ _items = []
+ if self.entitlements:
+ for _item_entitlements in self.entitlements:
+ if _item_entitlements:
+ _items.append(_item_entitlements.to_dict())
+ _dict['entitlements'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "org_code": obj.get("org_code"),
+ "plans": [GetEntitlementsResponseDataPlansInner.from_dict(_item) for _item in obj["plans"]] if obj.get("plans") is not None else None,
+ "entitlements": [GetEntitlementsResponseDataEntitlementsInner.from_dict(_item) for _item in obj["entitlements"]] if obj.get("entitlements") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_entitlements_response_data_entitlements_inner.py b/kinde_sdk/models/get_entitlements_response_data_entitlements_inner.py
new file mode 100644
index 00000000..5cebf326
--- /dev/null
+++ b/kinde_sdk/models/get_entitlements_response_data_entitlements_inner.py
@@ -0,0 +1,117 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEntitlementsResponseDataEntitlementsInner(BaseModel):
+ """
+ GetEntitlementsResponseDataEntitlementsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly id of an entitlement")
+ fixed_charge: Optional[StrictInt] = Field(default=None, description="The price charged if this is an entitlement for a fixed charged")
+ price_name: Optional[StrictStr] = Field(default=None, description="The name of the price associated with the entitlement")
+ unit_amount: Optional[StrictInt] = Field(default=None, description="The price charged for this entitlement in cents")
+ feature_code: Optional[StrictStr] = Field(default=None, description="The feature code of the feature corresponding to this entitlement")
+ feature_name: Optional[StrictStr] = Field(default=None, description="The feature name of the feature corresponding to this entitlement")
+ entitlement_limit_max: Optional[StrictInt] = Field(default=None, description="The maximum number of units of the feature the customer is entitled to")
+ entitlement_limit_min: Optional[StrictInt] = Field(default=None, description="The minimum number of units of the feature the customer is entitled to")
+ __properties: ClassVar[List[str]] = ["id", "fixed_charge", "price_name", "unit_amount", "feature_code", "feature_name", "entitlement_limit_max", "entitlement_limit_min"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseDataEntitlementsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if unit_amount (nullable) is None
+ # and model_fields_set contains the field
+ if self.unit_amount is None and "unit_amount" in self.model_fields_set:
+ _dict['unit_amount'] = None
+
+ # set to None if entitlement_limit_max (nullable) is None
+ # and model_fields_set contains the field
+ if self.entitlement_limit_max is None and "entitlement_limit_max" in self.model_fields_set:
+ _dict['entitlement_limit_max'] = None
+
+ # set to None if entitlement_limit_min (nullable) is None
+ # and model_fields_set contains the field
+ if self.entitlement_limit_min is None and "entitlement_limit_min" in self.model_fields_set:
+ _dict['entitlement_limit_min'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseDataEntitlementsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "fixed_charge": obj.get("fixed_charge"),
+ "price_name": obj.get("price_name"),
+ "unit_amount": obj.get("unit_amount"),
+ "feature_code": obj.get("feature_code"),
+ "feature_name": obj.get("feature_name"),
+ "entitlement_limit_max": obj.get("entitlement_limit_max"),
+ "entitlement_limit_min": obj.get("entitlement_limit_min")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_entitlements_response_data_plans_inner.py b/kinde_sdk/models/get_entitlements_response_data_plans_inner.py
new file mode 100644
index 00000000..48a7865c
--- /dev/null
+++ b/kinde_sdk/models/get_entitlements_response_data_plans_inner.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEntitlementsResponseDataPlansInner(BaseModel):
+ """
+ GetEntitlementsResponseDataPlansInner
+ """ # noqa: E501
+ key: Optional[StrictStr] = Field(default=None, description="A unique code for the plan")
+ subscribed_on: Optional[datetime] = Field(default=None, description="The date the user subscribed to the plan")
+ __properties: ClassVar[List[str]] = ["key", "subscribed_on"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseDataPlansInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseDataPlansInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key"),
+ "subscribed_on": obj.get("subscribed_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_entitlements_response_metadata.py b/kinde_sdk/models/get_entitlements_response_metadata.py
new file mode 100644
index 00000000..c68f83f6
--- /dev/null
+++ b/kinde_sdk/models/get_entitlements_response_metadata.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEntitlementsResponseMetadata(BaseModel):
+ """
+ GetEntitlementsResponseMetadata
+ """ # noqa: E501
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ next_page_starting_after: Optional[StrictStr] = Field(default=None, description="The ID of the last record on the current page.")
+ __properties: ClassVar[List[str]] = ["has_more", "next_page_starting_after"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEntitlementsResponseMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "has_more": obj.get("has_more"),
+ "next_page_starting_after": obj.get("next_page_starting_after")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_feature_flags_response.py b/kinde_sdk/models/get_environment_feature_flags_response.py
new file mode 100644
index 00000000..822c74a8
--- /dev/null
+++ b/kinde_sdk/models/get_environment_feature_flags_response.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value import GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentFeatureFlagsResponse(BaseModel):
+ """
+ GetEnvironmentFeatureFlagsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ feature_flags: Optional[Dict[str, GetOrganizationFeatureFlagsResponseFeatureFlagsValue]] = Field(default=None, description="The environment's feature flag settings.")
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "feature_flags", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentFeatureFlagsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each value in feature_flags (dict)
+ _field_dict = {}
+ if self.feature_flags:
+ for _key_feature_flags in self.feature_flags:
+ if self.feature_flags[_key_feature_flags]:
+ _field_dict[_key_feature_flags] = self.feature_flags[_key_feature_flags].to_dict()
+ _dict['feature_flags'] = _field_dict
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentFeatureFlagsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "feature_flags": dict(
+ (_k, GetOrganizationFeatureFlagsResponseFeatureFlagsValue.from_dict(_v))
+ for _k, _v in obj["feature_flags"].items()
+ )
+ if obj.get("feature_flags") is not None
+ else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_response.py b/kinde_sdk/models/get_environment_response.py
new file mode 100644
index 00000000..0b7f8803
--- /dev/null
+++ b/kinde_sdk/models/get_environment_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_environment_response_environment import GetEnvironmentResponseEnvironment
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentResponse(BaseModel):
+ """
+ GetEnvironmentResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ environment: Optional[GetEnvironmentResponseEnvironment] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "environment"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of environment
+ if self.environment:
+ _dict['environment'] = self.environment.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "environment": GetEnvironmentResponseEnvironment.from_dict(obj["environment"]) if obj.get("environment") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_response_environment.py b/kinde_sdk/models/get_environment_response_environment.py
new file mode 100644
index 00000000..4520562d
--- /dev/null
+++ b/kinde_sdk/models/get_environment_response_environment.py
@@ -0,0 +1,274 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_environment_response_environment_background_color import GetEnvironmentResponseEnvironmentBackgroundColor
+from kinde_sdk.models.get_environment_response_environment_link_color import GetEnvironmentResponseEnvironmentLinkColor
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentResponseEnvironment(BaseModel):
+ """
+ GetEnvironmentResponseEnvironment
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="The unique identifier for the environment.")
+ name: Optional[StrictStr] = Field(default=None, description="The environment's name.")
+ hotjar_site_id: Optional[StrictStr] = Field(default=None, description="Your HotJar site ID.")
+ google_analytics_tag: Optional[StrictStr] = Field(default=None, description="Your Google Analytics tag.")
+ is_default: Optional[StrictBool] = Field(default=None, description="Whether the environment is the default. Typically this is your production environment.")
+ is_live: Optional[StrictBool] = Field(default=None, description="Whether the environment is live.")
+ kinde_domain: Optional[StrictStr] = Field(default=None, description="Your domain on Kinde")
+ custom_domain: Optional[StrictStr] = Field(default=None, description="Your custom domain for the environment")
+ logo: Optional[StrictStr] = Field(default=None, description="The organization's logo URL.")
+ logo_dark: Optional[StrictStr] = Field(default=None, description="The organization's logo URL to be used for dark themes.")
+ favicon_svg: Optional[StrictStr] = Field(default=None, description="The organization's SVG favicon URL. Optimal format for most browsers")
+ favicon_fallback: Optional[StrictStr] = Field(default=None, description="The favicon URL to be used as a fallback in browsers that don’t support SVG, add a PNG")
+ link_color: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ background_color: Optional[GetEnvironmentResponseEnvironmentBackgroundColor] = None
+ button_color: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_text_color: Optional[GetEnvironmentResponseEnvironmentBackgroundColor] = None
+ link_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ background_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_text_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_border_radius: Optional[StrictInt] = Field(default=None, description="The border radius for buttons. Value is px, Kinde transforms to rem for rendering")
+ card_border_radius: Optional[StrictInt] = Field(default=None, description="The border radius for cards. Value is px, Kinde transforms to rem for rendering")
+ input_border_radius: Optional[StrictInt] = Field(default=None, description="The border radius for inputs. Value is px, Kinde transforms to rem for rendering")
+ theme_code: Optional[StrictStr] = Field(default=None, description="Whether the environment is forced into light mode, dark mode or user preference")
+ color_scheme: Optional[StrictStr] = Field(default=None, description="The color scheme for the environment used for meta tags based on the theme code")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of environment creation in ISO 8601 format.")
+ __properties: ClassVar[List[str]] = ["code", "name", "hotjar_site_id", "google_analytics_tag", "is_default", "is_live", "kinde_domain", "custom_domain", "logo", "logo_dark", "favicon_svg", "favicon_fallback", "link_color", "background_color", "button_color", "button_text_color", "link_color_dark", "background_color_dark", "button_text_color_dark", "button_color_dark", "button_border_radius", "card_border_radius", "input_border_radius", "theme_code", "color_scheme", "created_on"]
+
+ @field_validator('theme_code')
+ def theme_code_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['light', 'dark', 'user_preference']):
+ raise ValueError("must be one of enum values ('light', 'dark', 'user_preference')")
+ return value
+
+ @field_validator('color_scheme')
+ def color_scheme_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['light', 'dark', 'light dark']):
+ raise ValueError("must be one of enum values ('light', 'dark', 'light dark')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponseEnvironment from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of link_color
+ if self.link_color:
+ _dict['link_color'] = self.link_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of background_color
+ if self.background_color:
+ _dict['background_color'] = self.background_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_color
+ if self.button_color:
+ _dict['button_color'] = self.button_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_text_color
+ if self.button_text_color:
+ _dict['button_text_color'] = self.button_text_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of link_color_dark
+ if self.link_color_dark:
+ _dict['link_color_dark'] = self.link_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of background_color_dark
+ if self.background_color_dark:
+ _dict['background_color_dark'] = self.background_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_text_color_dark
+ if self.button_text_color_dark:
+ _dict['button_text_color_dark'] = self.button_text_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_color_dark
+ if self.button_color_dark:
+ _dict['button_color_dark'] = self.button_color_dark.to_dict()
+ # set to None if hotjar_site_id (nullable) is None
+ # and model_fields_set contains the field
+ if self.hotjar_site_id is None and "hotjar_site_id" in self.model_fields_set:
+ _dict['hotjar_site_id'] = None
+
+ # set to None if google_analytics_tag (nullable) is None
+ # and model_fields_set contains the field
+ if self.google_analytics_tag is None and "google_analytics_tag" in self.model_fields_set:
+ _dict['google_analytics_tag'] = None
+
+ # set to None if custom_domain (nullable) is None
+ # and model_fields_set contains the field
+ if self.custom_domain is None and "custom_domain" in self.model_fields_set:
+ _dict['custom_domain'] = None
+
+ # set to None if logo (nullable) is None
+ # and model_fields_set contains the field
+ if self.logo is None and "logo" in self.model_fields_set:
+ _dict['logo'] = None
+
+ # set to None if logo_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.logo_dark is None and "logo_dark" in self.model_fields_set:
+ _dict['logo_dark'] = None
+
+ # set to None if favicon_svg (nullable) is None
+ # and model_fields_set contains the field
+ if self.favicon_svg is None and "favicon_svg" in self.model_fields_set:
+ _dict['favicon_svg'] = None
+
+ # set to None if favicon_fallback (nullable) is None
+ # and model_fields_set contains the field
+ if self.favicon_fallback is None and "favicon_fallback" in self.model_fields_set:
+ _dict['favicon_fallback'] = None
+
+ # set to None if link_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.link_color is None and "link_color" in self.model_fields_set:
+ _dict['link_color'] = None
+
+ # set to None if background_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.background_color is None and "background_color" in self.model_fields_set:
+ _dict['background_color'] = None
+
+ # set to None if button_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_color is None and "button_color" in self.model_fields_set:
+ _dict['button_color'] = None
+
+ # set to None if button_text_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_text_color is None and "button_text_color" in self.model_fields_set:
+ _dict['button_text_color'] = None
+
+ # set to None if link_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.link_color_dark is None and "link_color_dark" in self.model_fields_set:
+ _dict['link_color_dark'] = None
+
+ # set to None if background_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.background_color_dark is None and "background_color_dark" in self.model_fields_set:
+ _dict['background_color_dark'] = None
+
+ # set to None if button_text_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_text_color_dark is None and "button_text_color_dark" in self.model_fields_set:
+ _dict['button_text_color_dark'] = None
+
+ # set to None if button_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_color_dark is None and "button_color_dark" in self.model_fields_set:
+ _dict['button_color_dark'] = None
+
+ # set to None if button_border_radius (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_border_radius is None and "button_border_radius" in self.model_fields_set:
+ _dict['button_border_radius'] = None
+
+ # set to None if card_border_radius (nullable) is None
+ # and model_fields_set contains the field
+ if self.card_border_radius is None and "card_border_radius" in self.model_fields_set:
+ _dict['card_border_radius'] = None
+
+ # set to None if input_border_radius (nullable) is None
+ # and model_fields_set contains the field
+ if self.input_border_radius is None and "input_border_radius" in self.model_fields_set:
+ _dict['input_border_radius'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponseEnvironment from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "name": obj.get("name"),
+ "hotjar_site_id": obj.get("hotjar_site_id"),
+ "google_analytics_tag": obj.get("google_analytics_tag"),
+ "is_default": obj.get("is_default"),
+ "is_live": obj.get("is_live"),
+ "kinde_domain": obj.get("kinde_domain"),
+ "custom_domain": obj.get("custom_domain"),
+ "logo": obj.get("logo"),
+ "logo_dark": obj.get("logo_dark"),
+ "favicon_svg": obj.get("favicon_svg"),
+ "favicon_fallback": obj.get("favicon_fallback"),
+ "link_color": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["link_color"]) if obj.get("link_color") is not None else None,
+ "background_color": GetEnvironmentResponseEnvironmentBackgroundColor.from_dict(obj["background_color"]) if obj.get("background_color") is not None else None,
+ "button_color": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["button_color"]) if obj.get("button_color") is not None else None,
+ "button_text_color": GetEnvironmentResponseEnvironmentBackgroundColor.from_dict(obj["button_text_color"]) if obj.get("button_text_color") is not None else None,
+ "link_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["link_color_dark"]) if obj.get("link_color_dark") is not None else None,
+ "background_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["background_color_dark"]) if obj.get("background_color_dark") is not None else None,
+ "button_text_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["button_text_color_dark"]) if obj.get("button_text_color_dark") is not None else None,
+ "button_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["button_color_dark"]) if obj.get("button_color_dark") is not None else None,
+ "button_border_radius": obj.get("button_border_radius"),
+ "card_border_radius": obj.get("card_border_radius"),
+ "input_border_radius": obj.get("input_border_radius"),
+ "theme_code": obj.get("theme_code"),
+ "color_scheme": obj.get("color_scheme"),
+ "created_on": obj.get("created_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_response_environment_background_color.py b/kinde_sdk/models/get_environment_response_environment_background_color.py
new file mode 100644
index 00000000..63f4ed05
--- /dev/null
+++ b/kinde_sdk/models/get_environment_response_environment_background_color.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentResponseEnvironmentBackgroundColor(BaseModel):
+ """
+ GetEnvironmentResponseEnvironmentBackgroundColor
+ """ # noqa: E501
+ raw: Optional[StrictStr] = None
+ hex: Optional[StrictStr] = None
+ hsl: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["raw", "hex", "hsl"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponseEnvironmentBackgroundColor from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponseEnvironmentBackgroundColor from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "raw": obj.get("raw"),
+ "hex": obj.get("hex"),
+ "hsl": obj.get("hsl")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_response_environment_link_color.py b/kinde_sdk/models/get_environment_response_environment_link_color.py
new file mode 100644
index 00000000..7b81fe09
--- /dev/null
+++ b/kinde_sdk/models/get_environment_response_environment_link_color.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentResponseEnvironmentLinkColor(BaseModel):
+ """
+ GetEnvironmentResponseEnvironmentLinkColor
+ """ # noqa: E501
+ raw: Optional[StrictStr] = None
+ hex: Optional[StrictStr] = None
+ hsl: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["raw", "hex", "hsl"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponseEnvironmentLinkColor from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentResponseEnvironmentLinkColor from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "raw": obj.get("raw"),
+ "hex": obj.get("hex"),
+ "hsl": obj.get("hsl")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_variable_response.py b/kinde_sdk/models/get_environment_variable_response.py
new file mode 100644
index 00000000..08d17f45
--- /dev/null
+++ b/kinde_sdk/models/get_environment_variable_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.environment_variable import EnvironmentVariable
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentVariableResponse(BaseModel):
+ """
+ GetEnvironmentVariableResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ environment_variable: Optional[EnvironmentVariable] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "environment_variable"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentVariableResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of environment_variable
+ if self.environment_variable:
+ _dict['environment_variable'] = self.environment_variable.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentVariableResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "environment_variable": EnvironmentVariable.from_dict(obj["environment_variable"]) if obj.get("environment_variable") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_environment_variables_response.py b/kinde_sdk/models/get_environment_variables_response.py
new file mode 100644
index 00000000..b6f49145
--- /dev/null
+++ b/kinde_sdk/models/get_environment_variables_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.environment_variable import EnvironmentVariable
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEnvironmentVariablesResponse(BaseModel):
+ """
+ GetEnvironmentVariablesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ environment_variables: Optional[List[EnvironmentVariable]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "has_more", "environment_variables"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEnvironmentVariablesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in environment_variables (list)
+ _items = []
+ if self.environment_variables:
+ for _item_environment_variables in self.environment_variables:
+ if _item_environment_variables:
+ _items.append(_item_environment_variables.to_dict())
+ _dict['environment_variables'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEnvironmentVariablesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "has_more": obj.get("has_more"),
+ "environment_variables": [EnvironmentVariable.from_dict(_item) for _item in obj["environment_variables"]] if obj.get("environment_variables") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_event_response.py b/kinde_sdk/models/get_event_response.py
new file mode 100644
index 00000000..831e46cb
--- /dev/null
+++ b/kinde_sdk/models/get_event_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_event_response_event import GetEventResponseEvent
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEventResponse(BaseModel):
+ """
+ GetEventResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ event: Optional[GetEventResponseEvent] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "event"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEventResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of event
+ if self.event:
+ _dict['event'] = self.event.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEventResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "event": GetEventResponseEvent.from_dict(obj["event"]) if obj.get("event") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_event_response_event.py b/kinde_sdk/models/get_event_response_event.py
new file mode 100644
index 00000000..8f1614cd
--- /dev/null
+++ b/kinde_sdk/models/get_event_response_event.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEventResponseEvent(BaseModel):
+ """
+ GetEventResponseEvent
+ """ # noqa: E501
+ type: Optional[StrictStr] = None
+ source: Optional[StrictStr] = None
+ event_id: Optional[StrictStr] = None
+ timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp in ISO 8601 format.")
+ data: Optional[Dict[str, Any]] = Field(default=None, description="Event specific data object.")
+ __properties: ClassVar[List[str]] = ["type", "source", "event_id", "timestamp", "data"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEventResponseEvent from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEventResponseEvent from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "source": obj.get("source"),
+ "event_id": obj.get("event_id"),
+ "timestamp": obj.get("timestamp"),
+ "data": obj.get("data")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_event_types_response.py b/kinde_sdk/models/get_event_types_response.py
new file mode 100644
index 00000000..b53ddd26
--- /dev/null
+++ b/kinde_sdk/models/get_event_types_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.event_type import EventType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetEventTypesResponse(BaseModel):
+ """
+ GetEventTypesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ event_types: Optional[List[EventType]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "event_types"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetEventTypesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in event_types (list)
+ _items = []
+ if self.event_types:
+ for _item_event_types in self.event_types:
+ if _item_event_types:
+ _items.append(_item_event_types.to_dict())
+ _dict['event_types'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetEventTypesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "event_types": [EventType.from_dict(_item) for _item in obj["event_types"]] if obj.get("event_types") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_feature_flags_response.py b/kinde_sdk/models/get_feature_flags_response.py
new file mode 100644
index 00000000..f09bcbc4
--- /dev/null
+++ b/kinde_sdk/models/get_feature_flags_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_feature_flags_response_data import GetFeatureFlagsResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetFeatureFlagsResponse(BaseModel):
+ """
+ GetFeatureFlagsResponse
+ """ # noqa: E501
+ data: Optional[GetFeatureFlagsResponseData] = None
+ __properties: ClassVar[List[str]] = ["data"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetFeatureFlagsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetFeatureFlagsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GetFeatureFlagsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_feature_flags_response_data.py b/kinde_sdk/models/get_feature_flags_response_data.py
new file mode 100644
index 00000000..81a6732a
--- /dev/null
+++ b/kinde_sdk/models/get_feature_flags_response_data.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner import GetFeatureFlagsResponseDataFeatureFlagsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetFeatureFlagsResponseData(BaseModel):
+ """
+ GetFeatureFlagsResponseData
+ """ # noqa: E501
+ feature_flags: Optional[List[GetFeatureFlagsResponseDataFeatureFlagsInner]] = Field(default=None, description="A list of feature flags")
+ __properties: ClassVar[List[str]] = ["feature_flags"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetFeatureFlagsResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in feature_flags (list)
+ _items = []
+ if self.feature_flags:
+ for _item_feature_flags in self.feature_flags:
+ if _item_feature_flags:
+ _items.append(_item_feature_flags.to_dict())
+ _dict['feature_flags'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetFeatureFlagsResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "feature_flags": [GetFeatureFlagsResponseDataFeatureFlagsInner.from_dict(_item) for _item in obj["feature_flags"]] if obj.get("feature_flags") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_feature_flags_response_data_feature_flags_inner.py b/kinde_sdk/models/get_feature_flags_response_data_feature_flags_inner.py
new file mode 100644
index 00000000..5409662e
--- /dev/null
+++ b/kinde_sdk/models/get_feature_flags_response_data_feature_flags_inner.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetFeatureFlagsResponseDataFeatureFlagsInner(BaseModel):
+ """
+ GetFeatureFlagsResponseDataFeatureFlagsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly ID of an flag")
+ name: Optional[StrictStr] = Field(default=None, description="The name of the flag")
+ key: Optional[StrictStr] = Field(default=None, description="The key of the flag")
+ type: Optional[StrictStr] = Field(default=None, description="The type of the flag")
+ value: Optional[StringBooleanIntegerObject] = Field(default=None, description="The value of the flag")
+ __properties: ClassVar[List[str]] = ["id", "name", "key", "type", "value"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetFeatureFlagsResponseDataFeatureFlagsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of value
+ if self.value:
+ _dict['value'] = self.value.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetFeatureFlagsResponseDataFeatureFlagsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "key": obj.get("key"),
+ "type": obj.get("type"),
+ "value": StringBooleanIntegerObject.from_dict(obj["value"]) if obj.get("value") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_identities_response.py b/kinde_sdk/models/get_identities_response.py
new file mode 100644
index 00000000..5f3a1098
--- /dev/null
+++ b/kinde_sdk/models/get_identities_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.identity import Identity
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetIdentitiesResponse(BaseModel):
+ """
+ GetIdentitiesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ identities: Optional[List[Identity]] = None
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ __properties: ClassVar[List[str]] = ["code", "message", "identities", "has_more"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetIdentitiesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in identities (list)
+ _items = []
+ if self.identities:
+ for _item_identities in self.identities:
+ if _item_identities:
+ _items.append(_item_identities.to_dict())
+ _dict['identities'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetIdentitiesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "identities": [Identity.from_dict(_item) for _item in obj["identities"]] if obj.get("identities") is not None else None,
+ "has_more": obj.get("has_more")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_industries_response.py b/kinde_sdk/models/get_industries_response.py
new file mode 100644
index 00000000..214bef91
--- /dev/null
+++ b/kinde_sdk/models/get_industries_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_industries_response_industries_inner import GetIndustriesResponseIndustriesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetIndustriesResponse(BaseModel):
+ """
+ GetIndustriesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ industries: Optional[List[GetIndustriesResponseIndustriesInner]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "industries"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetIndustriesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in industries (list)
+ _items = []
+ if self.industries:
+ for _item_industries in self.industries:
+ if _item_industries:
+ _items.append(_item_industries.to_dict())
+ _dict['industries'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetIndustriesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "industries": [GetIndustriesResponseIndustriesInner.from_dict(_item) for _item in obj["industries"]] if obj.get("industries") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_industries_response_industries_inner.py b/kinde_sdk/models/get_industries_response_industries_inner.py
new file mode 100644
index 00000000..5f297907
--- /dev/null
+++ b/kinde_sdk/models/get_industries_response_industries_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetIndustriesResponseIndustriesInner(BaseModel):
+ """
+ GetIndustriesResponseIndustriesInner
+ """ # noqa: E501
+ key: Optional[StrictStr] = Field(default=None, description="The unique key for the industry.")
+ name: Optional[StrictStr] = Field(default=None, description="The display name for the industry.")
+ __properties: ClassVar[List[str]] = ["key", "name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetIndustriesResponseIndustriesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetIndustriesResponseIndustriesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key"),
+ "name": obj.get("name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organization_feature_flags_response.py b/kinde_sdk/models/get_organization_feature_flags_response.py
new file mode 100644
index 00000000..877bdaed
--- /dev/null
+++ b/kinde_sdk/models/get_organization_feature_flags_response.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value import GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationFeatureFlagsResponse(BaseModel):
+ """
+ GetOrganizationFeatureFlagsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ feature_flags: Optional[Dict[str, GetOrganizationFeatureFlagsResponseFeatureFlagsValue]] = Field(default=None, description="The environment's feature flag settings.")
+ __properties: ClassVar[List[str]] = ["code", "message", "feature_flags"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationFeatureFlagsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each value in feature_flags (dict)
+ _field_dict = {}
+ if self.feature_flags:
+ for _key_feature_flags in self.feature_flags:
+ if self.feature_flags[_key_feature_flags]:
+ _field_dict[_key_feature_flags] = self.feature_flags[_key_feature_flags].to_dict()
+ _dict['feature_flags'] = _field_dict
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationFeatureFlagsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "feature_flags": dict(
+ (_k, GetOrganizationFeatureFlagsResponseFeatureFlagsValue.from_dict(_v))
+ for _k, _v in obj["feature_flags"].items()
+ )
+ if obj.get("feature_flags") is not None
+ else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organization_feature_flags_response_feature_flags_value.py b/kinde_sdk/models/get_organization_feature_flags_response_feature_flags_value.py
new file mode 100644
index 00000000..885d4109
--- /dev/null
+++ b/kinde_sdk/models/get_organization_feature_flags_response_feature_flags_value.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationFeatureFlagsResponseFeatureFlagsValue(BaseModel):
+ """
+ GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+ """ # noqa: E501
+ type: Optional[StrictStr] = None
+ value: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["type", "value"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['str', 'int', 'bool']):
+ raise ValueError("must be one of enum values ('str', 'int', 'bool')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationFeatureFlagsResponseFeatureFlagsValue from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationFeatureFlagsResponseFeatureFlagsValue from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organization_response.py b/kinde_sdk/models/get_organization_response.py
new file mode 100644
index 00000000..d3505c7b
--- /dev/null
+++ b/kinde_sdk/models/get_organization_response.py
@@ -0,0 +1,292 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_environment_response_environment_background_color import GetEnvironmentResponseEnvironmentBackgroundColor
+from kinde_sdk.models.get_environment_response_environment_link_color import GetEnvironmentResponseEnvironmentLinkColor
+from kinde_sdk.models.get_organization_response_billing import GetOrganizationResponseBilling
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationResponse(BaseModel):
+ """
+ GetOrganizationResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="The unique identifier for the organization.")
+ name: Optional[StrictStr] = Field(default=None, description="The organization's name.")
+ handle: Optional[StrictStr] = Field(default=None, description="A unique handle for the organization - can be used for dynamic callback urls.")
+ is_default: Optional[StrictBool] = Field(default=None, description="Whether the organization is the default organization.")
+ external_id: Optional[StrictStr] = Field(default=None, description="The organization's external identifier - commonly used when migrating from or mapping to other systems.")
+ is_auto_membership_enabled: Optional[StrictBool] = Field(default=None, description="If users become members of this organization when the org code is supplied during authentication.")
+ logo: Optional[StrictStr] = Field(default=None, description="The organization's logo URL.")
+ logo_dark: Optional[StrictStr] = Field(default=None, description="The organization's logo URL to be used for dark themes.")
+ favicon_svg: Optional[StrictStr] = Field(default=None, description="The organization's SVG favicon URL. Optimal format for most browsers")
+ favicon_fallback: Optional[StrictStr] = Field(default=None, description="The favicon URL to be used as a fallback in browsers that don’t support SVG, add a PNG")
+ link_color: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ background_color: Optional[GetEnvironmentResponseEnvironmentBackgroundColor] = None
+ button_color: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_text_color: Optional[GetEnvironmentResponseEnvironmentBackgroundColor] = None
+ link_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ background_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_text_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_color_dark: Optional[GetEnvironmentResponseEnvironmentLinkColor] = None
+ button_border_radius: Optional[StrictInt] = Field(default=None, description="The border radius for buttons. Value is px, Kinde transforms to rem for rendering")
+ card_border_radius: Optional[StrictInt] = Field(default=None, description="The border radius for cards. Value is px, Kinde transforms to rem for rendering")
+ input_border_radius: Optional[StrictInt] = Field(default=None, description="The border radius for inputs. Value is px, Kinde transforms to rem for rendering")
+ theme_code: Optional[StrictStr] = Field(default=None, description="Whether the environment is forced into light mode, dark mode or user preference")
+ color_scheme: Optional[StrictStr] = Field(default=None, description="The color scheme for the environment used for meta tags based on the theme code")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of organization creation in ISO 8601 format.")
+ is_allow_registrations: Optional[StrictBool] = Field(default=None, description="Deprecated - Use 'is_auto_membership_enabled' instead")
+ sender_name: Optional[StrictStr] = Field(default=None, description="The name of the organization that will be used in emails")
+ sender_email: Optional[StrictStr] = Field(default=None, description="The email address that will be used in emails. Requires custom SMTP to be set up.")
+ billing: Optional[GetOrganizationResponseBilling] = None
+ __properties: ClassVar[List[str]] = ["code", "name", "handle", "is_default", "external_id", "is_auto_membership_enabled", "logo", "logo_dark", "favicon_svg", "favicon_fallback", "link_color", "background_color", "button_color", "button_text_color", "link_color_dark", "background_color_dark", "button_text_color_dark", "button_color_dark", "button_border_radius", "card_border_radius", "input_border_radius", "theme_code", "color_scheme", "created_on", "is_allow_registrations", "sender_name", "sender_email", "billing"]
+
+ @field_validator('theme_code')
+ def theme_code_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['light', 'dark', 'user_preference']):
+ raise ValueError("must be one of enum values ('light', 'dark', 'user_preference')")
+ return value
+
+ @field_validator('color_scheme')
+ def color_scheme_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['light', 'dark', 'light dark']):
+ raise ValueError("must be one of enum values ('light', 'dark', 'light dark')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of link_color
+ if self.link_color:
+ _dict['link_color'] = self.link_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of background_color
+ if self.background_color:
+ _dict['background_color'] = self.background_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_color
+ if self.button_color:
+ _dict['button_color'] = self.button_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_text_color
+ if self.button_text_color:
+ _dict['button_text_color'] = self.button_text_color.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of link_color_dark
+ if self.link_color_dark:
+ _dict['link_color_dark'] = self.link_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of background_color_dark
+ if self.background_color_dark:
+ _dict['background_color_dark'] = self.background_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_text_color_dark
+ if self.button_text_color_dark:
+ _dict['button_text_color_dark'] = self.button_text_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of button_color_dark
+ if self.button_color_dark:
+ _dict['button_color_dark'] = self.button_color_dark.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of billing
+ if self.billing:
+ _dict['billing'] = self.billing.to_dict()
+ # set to None if handle (nullable) is None
+ # and model_fields_set contains the field
+ if self.handle is None and "handle" in self.model_fields_set:
+ _dict['handle'] = None
+
+ # set to None if external_id (nullable) is None
+ # and model_fields_set contains the field
+ if self.external_id is None and "external_id" in self.model_fields_set:
+ _dict['external_id'] = None
+
+ # set to None if logo (nullable) is None
+ # and model_fields_set contains the field
+ if self.logo is None and "logo" in self.model_fields_set:
+ _dict['logo'] = None
+
+ # set to None if logo_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.logo_dark is None and "logo_dark" in self.model_fields_set:
+ _dict['logo_dark'] = None
+
+ # set to None if favicon_svg (nullable) is None
+ # and model_fields_set contains the field
+ if self.favicon_svg is None and "favicon_svg" in self.model_fields_set:
+ _dict['favicon_svg'] = None
+
+ # set to None if favicon_fallback (nullable) is None
+ # and model_fields_set contains the field
+ if self.favicon_fallback is None and "favicon_fallback" in self.model_fields_set:
+ _dict['favicon_fallback'] = None
+
+ # set to None if link_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.link_color is None and "link_color" in self.model_fields_set:
+ _dict['link_color'] = None
+
+ # set to None if background_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.background_color is None and "background_color" in self.model_fields_set:
+ _dict['background_color'] = None
+
+ # set to None if button_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_color is None and "button_color" in self.model_fields_set:
+ _dict['button_color'] = None
+
+ # set to None if button_text_color (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_text_color is None and "button_text_color" in self.model_fields_set:
+ _dict['button_text_color'] = None
+
+ # set to None if link_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.link_color_dark is None and "link_color_dark" in self.model_fields_set:
+ _dict['link_color_dark'] = None
+
+ # set to None if background_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.background_color_dark is None and "background_color_dark" in self.model_fields_set:
+ _dict['background_color_dark'] = None
+
+ # set to None if button_text_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_text_color_dark is None and "button_text_color_dark" in self.model_fields_set:
+ _dict['button_text_color_dark'] = None
+
+ # set to None if button_color_dark (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_color_dark is None and "button_color_dark" in self.model_fields_set:
+ _dict['button_color_dark'] = None
+
+ # set to None if button_border_radius (nullable) is None
+ # and model_fields_set contains the field
+ if self.button_border_radius is None and "button_border_radius" in self.model_fields_set:
+ _dict['button_border_radius'] = None
+
+ # set to None if card_border_radius (nullable) is None
+ # and model_fields_set contains the field
+ if self.card_border_radius is None and "card_border_radius" in self.model_fields_set:
+ _dict['card_border_radius'] = None
+
+ # set to None if input_border_radius (nullable) is None
+ # and model_fields_set contains the field
+ if self.input_border_radius is None and "input_border_radius" in self.model_fields_set:
+ _dict['input_border_radius'] = None
+
+ # set to None if is_allow_registrations (nullable) is None
+ # and model_fields_set contains the field
+ if self.is_allow_registrations is None and "is_allow_registrations" in self.model_fields_set:
+ _dict['is_allow_registrations'] = None
+
+ # set to None if sender_name (nullable) is None
+ # and model_fields_set contains the field
+ if self.sender_name is None and "sender_name" in self.model_fields_set:
+ _dict['sender_name'] = None
+
+ # set to None if sender_email (nullable) is None
+ # and model_fields_set contains the field
+ if self.sender_email is None and "sender_email" in self.model_fields_set:
+ _dict['sender_email'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "name": obj.get("name"),
+ "handle": obj.get("handle"),
+ "is_default": obj.get("is_default"),
+ "external_id": obj.get("external_id"),
+ "is_auto_membership_enabled": obj.get("is_auto_membership_enabled"),
+ "logo": obj.get("logo"),
+ "logo_dark": obj.get("logo_dark"),
+ "favicon_svg": obj.get("favicon_svg"),
+ "favicon_fallback": obj.get("favicon_fallback"),
+ "link_color": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["link_color"]) if obj.get("link_color") is not None else None,
+ "background_color": GetEnvironmentResponseEnvironmentBackgroundColor.from_dict(obj["background_color"]) if obj.get("background_color") is not None else None,
+ "button_color": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["button_color"]) if obj.get("button_color") is not None else None,
+ "button_text_color": GetEnvironmentResponseEnvironmentBackgroundColor.from_dict(obj["button_text_color"]) if obj.get("button_text_color") is not None else None,
+ "link_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["link_color_dark"]) if obj.get("link_color_dark") is not None else None,
+ "background_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["background_color_dark"]) if obj.get("background_color_dark") is not None else None,
+ "button_text_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["button_text_color_dark"]) if obj.get("button_text_color_dark") is not None else None,
+ "button_color_dark": GetEnvironmentResponseEnvironmentLinkColor.from_dict(obj["button_color_dark"]) if obj.get("button_color_dark") is not None else None,
+ "button_border_radius": obj.get("button_border_radius"),
+ "card_border_radius": obj.get("card_border_radius"),
+ "input_border_radius": obj.get("input_border_radius"),
+ "theme_code": obj.get("theme_code"),
+ "color_scheme": obj.get("color_scheme"),
+ "created_on": obj.get("created_on"),
+ "is_allow_registrations": obj.get("is_allow_registrations"),
+ "sender_name": obj.get("sender_name"),
+ "sender_email": obj.get("sender_email"),
+ "billing": GetOrganizationResponseBilling.from_dict(obj["billing"]) if obj.get("billing") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organization_response_billing.py b/kinde_sdk/models/get_organization_response_billing.py
new file mode 100644
index 00000000..5d51d0fc
--- /dev/null
+++ b/kinde_sdk/models/get_organization_response_billing.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_organization_response_billing_agreements_inner import GetOrganizationResponseBillingAgreementsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationResponseBilling(BaseModel):
+ """
+ The billing information if the organization is a billing customer.
+ """ # noqa: E501
+ billing_customer_id: Optional[StrictStr] = None
+ agreements: Optional[List[GetOrganizationResponseBillingAgreementsInner]] = Field(default=None, description="The billing agreements the billing customer is currently subscribed to")
+ __properties: ClassVar[List[str]] = ["billing_customer_id", "agreements"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationResponseBilling from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in agreements (list)
+ _items = []
+ if self.agreements:
+ for _item_agreements in self.agreements:
+ if _item_agreements:
+ _items.append(_item_agreements.to_dict())
+ _dict['agreements'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationResponseBilling from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_customer_id": obj.get("billing_customer_id"),
+ "agreements": [GetOrganizationResponseBillingAgreementsInner.from_dict(_item) for _item in obj["agreements"]] if obj.get("agreements") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organization_response_billing_agreements_inner.py b/kinde_sdk/models/get_organization_response_billing_agreements_inner.py
new file mode 100644
index 00000000..652f1ef9
--- /dev/null
+++ b/kinde_sdk/models/get_organization_response_billing_agreements_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationResponseBillingAgreementsInner(BaseModel):
+ """
+ GetOrganizationResponseBillingAgreementsInner
+ """ # noqa: E501
+ plan_code: Optional[StrictStr] = Field(default=None, description="The code of the plan from which this agreement is taken from")
+ agreement_id: Optional[StrictStr] = Field(default=None, description="The id of the billing agreement in Kinde")
+ __properties: ClassVar[List[str]] = ["plan_code", "agreement_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationResponseBillingAgreementsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationResponseBillingAgreementsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "plan_code": obj.get("plan_code"),
+ "agreement_id": obj.get("agreement_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organization_users_response.py b/kinde_sdk/models/get_organization_users_response.py
new file mode 100644
index 00000000..f7a0f24a
--- /dev/null
+++ b/kinde_sdk/models/get_organization_users_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.organization_user import OrganizationUser
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationUsersResponse(BaseModel):
+ """
+ GetOrganizationUsersResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ organization_users: Optional[List[OrganizationUser]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "organization_users", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationUsersResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in organization_users (list)
+ _items = []
+ if self.organization_users:
+ for _item_organization_users in self.organization_users:
+ if _item_organization_users:
+ _items.append(_item_organization_users.to_dict())
+ _dict['organization_users'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationUsersResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "organization_users": [OrganizationUser.from_dict(_item) for _item in obj["organization_users"]] if obj.get("organization_users") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organizations_response.py b/kinde_sdk/models/get_organizations_response.py
new file mode 100644
index 00000000..a21184b9
--- /dev/null
+++ b/kinde_sdk/models/get_organizations_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.organization_item_schema import OrganizationItemSchema
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationsResponse(BaseModel):
+ """
+ GetOrganizationsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ organizations: Optional[List[OrganizationItemSchema]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "organizations", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in organizations (list)
+ _items = []
+ if self.organizations:
+ for _item_organizations in self.organizations:
+ if _item_organizations:
+ _items.append(_item_organizations.to_dict())
+ _dict['organizations'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "organizations": [OrganizationItemSchema.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organizations_user_permissions_response.py b/kinde_sdk/models/get_organizations_user_permissions_response.py
new file mode 100644
index 00000000..86f858a2
--- /dev/null
+++ b/kinde_sdk/models/get_organizations_user_permissions_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.organization_user_permission import OrganizationUserPermission
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationsUserPermissionsResponse(BaseModel):
+ """
+ GetOrganizationsUserPermissionsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ permissions: Optional[List[OrganizationUserPermission]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "permissions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationsUserPermissionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in permissions (list)
+ _items = []
+ if self.permissions:
+ for _item_permissions in self.permissions:
+ if _item_permissions:
+ _items.append(_item_permissions.to_dict())
+ _dict['permissions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationsUserPermissionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "permissions": [OrganizationUserPermission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_organizations_user_roles_response.py b/kinde_sdk/models/get_organizations_user_roles_response.py
new file mode 100644
index 00000000..416b7cc6
--- /dev/null
+++ b/kinde_sdk/models/get_organizations_user_roles_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.organization_user_role import OrganizationUserRole
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationsUserRolesResponse(BaseModel):
+ """
+ GetOrganizationsUserRolesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ roles: Optional[List[OrganizationUserRole]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "roles", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetOrganizationsUserRolesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in roles (list)
+ _items = []
+ if self.roles:
+ for _item_roles in self.roles:
+ if _item_roles:
+ _items.append(_item_roles.to_dict())
+ _dict['roles'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationsUserRolesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "roles": [OrganizationUserRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_permissions_response.py b/kinde_sdk/models/get_permissions_response.py
new file mode 100644
index 00000000..f0dd190b
--- /dev/null
+++ b/kinde_sdk/models/get_permissions_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.permissions import Permissions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPermissionsResponse(BaseModel):
+ """
+ GetPermissionsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ permissions: Optional[List[Permissions]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "permissions", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetPermissionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in permissions (list)
+ _items = []
+ if self.permissions:
+ for _item_permissions in self.permissions:
+ if _item_permissions:
+ _items.append(_item_permissions.to_dict())
+ _dict['permissions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPermissionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "permissions": [Permissions.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_portal_link.py b/kinde_sdk/models/get_portal_link.py
new file mode 100644
index 00000000..1ed56b6b
--- /dev/null
+++ b/kinde_sdk/models/get_portal_link.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPortalLink(BaseModel):
+ """
+ GetPortalLink
+ """ # noqa: E501
+ url: Optional[StrictStr] = Field(default=None, description="Unique URL to redirect the user to.")
+ __properties: ClassVar[List[str]] = ["url"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetPortalLink from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPortalLink from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "url": obj.get("url")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_properties_response.py b/kinde_sdk/models/get_properties_response.py
new file mode 100644
index 00000000..c52fd200
--- /dev/null
+++ b/kinde_sdk/models/get_properties_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.model_property import ModelProperty
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPropertiesResponse(BaseModel):
+ """
+ GetPropertiesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ properties: Optional[List[ModelProperty]] = None
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ __properties: ClassVar[List[str]] = ["code", "message", "properties", "has_more"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetPropertiesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in properties (list)
+ _items = []
+ if self.properties:
+ for _item_properties in self.properties:
+ if _item_properties:
+ _items.append(_item_properties.to_dict())
+ _dict['properties'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPropertiesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "properties": [ModelProperty.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None,
+ "has_more": obj.get("has_more")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_property_values_response.py b/kinde_sdk/models/get_property_values_response.py
new file mode 100644
index 00000000..2cb4e785
--- /dev/null
+++ b/kinde_sdk/models/get_property_values_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.property_value import PropertyValue
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPropertyValuesResponse(BaseModel):
+ """
+ GetPropertyValuesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ properties: Optional[List[PropertyValue]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "properties", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetPropertyValuesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in properties (list)
+ _items = []
+ if self.properties:
+ for _item_properties in self.properties:
+ if _item_properties:
+ _items.append(_item_properties.to_dict())
+ _dict['properties'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPropertyValuesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "properties": [PropertyValue.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_redirect_callback_urls_response.py b/kinde_sdk/models/get_redirect_callback_urls_response.py
new file mode 100644
index 00000000..55932e17
--- /dev/null
+++ b/kinde_sdk/models/get_redirect_callback_urls_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetRedirectCallbackUrlsResponse(BaseModel):
+ """
+ GetRedirectCallbackUrlsResponse
+ """ # noqa: E501
+ redirect_urls: Optional[List[RedirectCallbackUrls]] = Field(default=None, description="An application's redirect callback URLs.")
+ __properties: ClassVar[List[str]] = ["redirect_urls"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetRedirectCallbackUrlsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in redirect_urls (list)
+ _items = []
+ if self.redirect_urls:
+ for _item_redirect_urls in self.redirect_urls:
+ if _item_redirect_urls:
+ _items.append(_item_redirect_urls.to_dict())
+ _dict['redirect_urls'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetRedirectCallbackUrlsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "redirect_urls": [RedirectCallbackUrls.from_dict(_item) for _item in obj["redirect_urls"]] if obj.get("redirect_urls") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_role_response.py b/kinde_sdk/models/get_role_response.py
new file mode 100644
index 00000000..8b2ee6aa
--- /dev/null
+++ b/kinde_sdk/models/get_role_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_role_response_role import GetRoleResponseRole
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetRoleResponse(BaseModel):
+ """
+ GetRoleResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ role: Optional[GetRoleResponseRole] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetRoleResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of role
+ if self.role:
+ _dict['role'] = self.role.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetRoleResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "role": GetRoleResponseRole.from_dict(obj["role"]) if obj.get("role") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_role_response_role.py b/kinde_sdk/models/get_role_response_role.py
new file mode 100644
index 00000000..f222c5eb
--- /dev/null
+++ b/kinde_sdk/models/get_role_response_role.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetRoleResponseRole(BaseModel):
+ """
+ GetRoleResponseRole
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The role's ID.")
+ key: Optional[StrictStr] = Field(default=None, description="The role identifier to use in code.")
+ name: Optional[StrictStr] = Field(default=None, description="The role's name.")
+ description: Optional[StrictStr] = Field(default=None, description="The role's description.")
+ is_default_role: Optional[StrictBool] = Field(default=None, description="Whether the role is the default role.")
+ __properties: ClassVar[List[str]] = ["id", "key", "name", "description", "is_default_role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetRoleResponseRole from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetRoleResponseRole from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "is_default_role": obj.get("is_default_role")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_roles_response.py b/kinde_sdk/models/get_roles_response.py
new file mode 100644
index 00000000..7267ed41
--- /dev/null
+++ b/kinde_sdk/models/get_roles_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.roles import Roles
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetRolesResponse(BaseModel):
+ """
+ GetRolesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ roles: Optional[List[Roles]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "roles", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetRolesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in roles (list)
+ _items = []
+ if self.roles:
+ for _item_roles in self.roles:
+ if _item_roles:
+ _items.append(_item_roles.to_dict())
+ _dict['roles'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetRolesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "roles": [Roles.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_subscriber_response.py b/kinde_sdk/models/get_subscriber_response.py
new file mode 100644
index 00000000..d920649b
--- /dev/null
+++ b/kinde_sdk/models/get_subscriber_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.subscriber import Subscriber
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetSubscriberResponse(BaseModel):
+ """
+ GetSubscriberResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ subscribers: Optional[List[Subscriber]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "subscribers"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetSubscriberResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in subscribers (list)
+ _items = []
+ if self.subscribers:
+ for _item_subscribers in self.subscribers:
+ if _item_subscribers:
+ _items.append(_item_subscribers.to_dict())
+ _dict['subscribers'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetSubscriberResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "subscribers": [Subscriber.from_dict(_item) for _item in obj["subscribers"]] if obj.get("subscribers") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_subscribers_response.py b/kinde_sdk/models/get_subscribers_response.py
new file mode 100644
index 00000000..c5358939
--- /dev/null
+++ b/kinde_sdk/models/get_subscribers_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.subscribers_subscriber import SubscribersSubscriber
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetSubscribersResponse(BaseModel):
+ """
+ GetSubscribersResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ subscribers: Optional[List[SubscribersSubscriber]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "subscribers", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetSubscribersResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in subscribers (list)
+ _items = []
+ if self.subscribers:
+ for _item_subscribers in self.subscribers:
+ if _item_subscribers:
+ _items.append(_item_subscribers.to_dict())
+ _dict['subscribers'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetSubscribersResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "subscribers": [SubscribersSubscriber.from_dict(_item) for _item in obj["subscribers"]] if obj.get("subscribers") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_timezones_response.py b/kinde_sdk/models/get_timezones_response.py
new file mode 100644
index 00000000..6e96767a
--- /dev/null
+++ b/kinde_sdk/models/get_timezones_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_timezones_response_timezones_inner import GetTimezonesResponseTimezonesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetTimezonesResponse(BaseModel):
+ """
+ GetTimezonesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ timezones: Optional[List[GetTimezonesResponseTimezonesInner]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "timezones"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetTimezonesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in timezones (list)
+ _items = []
+ if self.timezones:
+ for _item_timezones in self.timezones:
+ if _item_timezones:
+ _items.append(_item_timezones.to_dict())
+ _dict['timezones'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetTimezonesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "timezones": [GetTimezonesResponseTimezonesInner.from_dict(_item) for _item in obj["timezones"]] if obj.get("timezones") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_timezones_response_timezones_inner.py b/kinde_sdk/models/get_timezones_response_timezones_inner.py
new file mode 100644
index 00000000..3cd3c111
--- /dev/null
+++ b/kinde_sdk/models/get_timezones_response_timezones_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetTimezonesResponseTimezonesInner(BaseModel):
+ """
+ GetTimezonesResponseTimezonesInner
+ """ # noqa: E501
+ key: Optional[StrictStr] = Field(default=None, description="The unique key for the timezone.")
+ name: Optional[StrictStr] = Field(default=None, description="The display name for the timezone.")
+ __properties: ClassVar[List[str]] = ["key", "name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetTimezonesResponseTimezonesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetTimezonesResponseTimezonesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key"),
+ "name": obj.get("name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_mfa_response.py b/kinde_sdk/models/get_user_mfa_response.py
new file mode 100644
index 00000000..ec8bf0a4
--- /dev/null
+++ b/kinde_sdk/models/get_user_mfa_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_mfa_response_mfa import GetUserMfaResponseMfa
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserMfaResponse(BaseModel):
+ """
+ GetUserMfaResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ mfa: Optional[GetUserMfaResponseMfa] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "mfa"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserMfaResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of mfa
+ if self.mfa:
+ _dict['mfa'] = self.mfa.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserMfaResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "mfa": GetUserMfaResponseMfa.from_dict(obj["mfa"]) if obj.get("mfa") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_mfa_response_mfa.py b/kinde_sdk/models/get_user_mfa_response_mfa.py
new file mode 100644
index 00000000..0fc772e9
--- /dev/null
+++ b/kinde_sdk/models/get_user_mfa_response_mfa.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserMfaResponseMfa(BaseModel):
+ """
+ GetUserMfaResponseMfa
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The MFA's identifier.")
+ type: Optional[StrictStr] = Field(default=None, description="The type of MFA (e.g. email, SMS, authenticator app).")
+ created_on: Optional[datetime] = Field(default=None, description="The timestamp when the MFA was created.")
+ name: Optional[StrictStr] = Field(default=None, description="The identifier used for MFA (e.g. email address, phone number).")
+ is_verified: Optional[StrictBool] = Field(default=None, description="Whether the MFA is verified or not.")
+ usage_count: Optional[StrictInt] = Field(default=None, description="The number of times MFA has been used.")
+ last_used_on: Optional[datetime] = Field(default=None, description="The timestamp when the MFA was last used.")
+ __properties: ClassVar[List[str]] = ["id", "type", "created_on", "name", "is_verified", "usage_count", "last_used_on"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserMfaResponseMfa from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserMfaResponseMfa from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "created_on": obj.get("created_on"),
+ "name": obj.get("name"),
+ "is_verified": obj.get("is_verified"),
+ "usage_count": obj.get("usage_count"),
+ "last_used_on": obj.get("last_used_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_permissions_response.py b/kinde_sdk/models/get_user_permissions_response.py
new file mode 100644
index 00000000..d7bedfcf
--- /dev/null
+++ b/kinde_sdk/models/get_user_permissions_response.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_permissions_response_data import GetUserPermissionsResponseData
+from kinde_sdk.models.get_user_permissions_response_metadata import GetUserPermissionsResponseMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPermissionsResponse(BaseModel):
+ """
+ GetUserPermissionsResponse
+ """ # noqa: E501
+ data: Optional[GetUserPermissionsResponseData] = None
+ metadata: Optional[GetUserPermissionsResponseMetadata] = None
+ __properties: ClassVar[List[str]] = ["data", "metadata"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of metadata
+ if self.metadata:
+ _dict['metadata'] = self.metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GetUserPermissionsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "metadata": GetUserPermissionsResponseMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_permissions_response_data.py b/kinde_sdk/models/get_user_permissions_response_data.py
new file mode 100644
index 00000000..0e9ff6e6
--- /dev/null
+++ b/kinde_sdk/models/get_user_permissions_response_data.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_permissions_response_data_permissions_inner import GetUserPermissionsResponseDataPermissionsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPermissionsResponseData(BaseModel):
+ """
+ GetUserPermissionsResponseData
+ """ # noqa: E501
+ org_code: Optional[StrictStr] = Field(default=None, description="The organization code the roles are associated with.")
+ permissions: Optional[List[GetUserPermissionsResponseDataPermissionsInner]] = Field(default=None, description="A list of permissions")
+ __properties: ClassVar[List[str]] = ["org_code", "permissions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in permissions (list)
+ _items = []
+ if self.permissions:
+ for _item_permissions in self.permissions:
+ if _item_permissions:
+ _items.append(_item_permissions.to_dict())
+ _dict['permissions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "org_code": obj.get("org_code"),
+ "permissions": [GetUserPermissionsResponseDataPermissionsInner.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_permissions_response_data_permissions_inner.py b/kinde_sdk/models/get_user_permissions_response_data_permissions_inner.py
new file mode 100644
index 00000000..4b9283a5
--- /dev/null
+++ b/kinde_sdk/models/get_user_permissions_response_data_permissions_inner.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPermissionsResponseDataPermissionsInner(BaseModel):
+ """
+ GetUserPermissionsResponseDataPermissionsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly ID of a permission")
+ name: Optional[StrictStr] = Field(default=None, description="The name of the permission")
+ key: Optional[StrictStr] = Field(default=None, description="The key of the permission")
+ __properties: ClassVar[List[str]] = ["id", "name", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponseDataPermissionsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponseDataPermissionsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_permissions_response_metadata.py b/kinde_sdk/models/get_user_permissions_response_metadata.py
new file mode 100644
index 00000000..c7ee68ff
--- /dev/null
+++ b/kinde_sdk/models/get_user_permissions_response_metadata.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPermissionsResponseMetadata(BaseModel):
+ """
+ GetUserPermissionsResponseMetadata
+ """ # noqa: E501
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ next_page_starting_after: Optional[StrictStr] = Field(default=None, description="The ID of the last record on the current page.")
+ __properties: ClassVar[List[str]] = ["has_more", "next_page_starting_after"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponseMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPermissionsResponseMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "has_more": obj.get("has_more"),
+ "next_page_starting_after": obj.get("next_page_starting_after")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_properties_response.py b/kinde_sdk/models/get_user_properties_response.py
new file mode 100644
index 00000000..fce7fcee
--- /dev/null
+++ b/kinde_sdk/models/get_user_properties_response.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_properties_response_data import GetUserPropertiesResponseData
+from kinde_sdk.models.get_user_properties_response_metadata import GetUserPropertiesResponseMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPropertiesResponse(BaseModel):
+ """
+ GetUserPropertiesResponse
+ """ # noqa: E501
+ data: Optional[GetUserPropertiesResponseData] = None
+ metadata: Optional[GetUserPropertiesResponseMetadata] = None
+ __properties: ClassVar[List[str]] = ["data", "metadata"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of metadata
+ if self.metadata:
+ _dict['metadata'] = self.metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GetUserPropertiesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "metadata": GetUserPropertiesResponseMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_properties_response_data.py b/kinde_sdk/models/get_user_properties_response_data.py
new file mode 100644
index 00000000..f9542978
--- /dev/null
+++ b/kinde_sdk/models/get_user_properties_response_data.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_properties_response_data_properties_inner import GetUserPropertiesResponseDataPropertiesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPropertiesResponseData(BaseModel):
+ """
+ GetUserPropertiesResponseData
+ """ # noqa: E501
+ properties: Optional[List[GetUserPropertiesResponseDataPropertiesInner]] = Field(default=None, description="A list of properties")
+ __properties: ClassVar[List[str]] = ["properties"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in properties (list)
+ _items = []
+ if self.properties:
+ for _item_properties in self.properties:
+ if _item_properties:
+ _items.append(_item_properties.to_dict())
+ _dict['properties'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "properties": [GetUserPropertiesResponseDataPropertiesInner.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_properties_response_data_properties_inner.py b/kinde_sdk/models/get_user_properties_response_data_properties_inner.py
new file mode 100644
index 00000000..f4c16660
--- /dev/null
+++ b/kinde_sdk/models/get_user_properties_response_data_properties_inner.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPropertiesResponseDataPropertiesInner(BaseModel):
+ """
+ GetUserPropertiesResponseDataPropertiesInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly ID of a property")
+ name: Optional[StrictStr] = Field(default=None, description="The name of the property")
+ key: Optional[StrictStr] = Field(default=None, description="The key of the property")
+ value: Optional[StringBooleanInteger] = Field(default=None, description="The value of the property")
+ __properties: ClassVar[List[str]] = ["id", "name", "key", "value"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponseDataPropertiesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of value
+ if self.value:
+ _dict['value'] = self.value.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponseDataPropertiesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "key": obj.get("key"),
+ "value": StringBooleanInteger.from_dict(obj["value"]) if obj.get("value") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_properties_response_metadata.py b/kinde_sdk/models/get_user_properties_response_metadata.py
new file mode 100644
index 00000000..29eb4491
--- /dev/null
+++ b/kinde_sdk/models/get_user_properties_response_metadata.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserPropertiesResponseMetadata(BaseModel):
+ """
+ GetUserPropertiesResponseMetadata
+ """ # noqa: E501
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ next_page_starting_after: Optional[StrictStr] = Field(default=None, description="The ID of the last record on the current page.")
+ __properties: ClassVar[List[str]] = ["has_more", "next_page_starting_after"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponseMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserPropertiesResponseMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "has_more": obj.get("has_more"),
+ "next_page_starting_after": obj.get("next_page_starting_after")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_roles_response.py b/kinde_sdk/models/get_user_roles_response.py
new file mode 100644
index 00000000..641cc09e
--- /dev/null
+++ b/kinde_sdk/models/get_user_roles_response.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_roles_response_data import GetUserRolesResponseData
+from kinde_sdk.models.get_user_roles_response_metadata import GetUserRolesResponseMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserRolesResponse(BaseModel):
+ """
+ GetUserRolesResponse
+ """ # noqa: E501
+ data: Optional[GetUserRolesResponseData] = None
+ metadata: Optional[GetUserRolesResponseMetadata] = None
+ __properties: ClassVar[List[str]] = ["data", "metadata"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of metadata
+ if self.metadata:
+ _dict['metadata'] = self.metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GetUserRolesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "metadata": GetUserRolesResponseMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_roles_response_data.py b/kinde_sdk/models/get_user_roles_response_data.py
new file mode 100644
index 00000000..2a38f878
--- /dev/null
+++ b/kinde_sdk/models/get_user_roles_response_data.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_roles_response_data_roles_inner import GetUserRolesResponseDataRolesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserRolesResponseData(BaseModel):
+ """
+ GetUserRolesResponseData
+ """ # noqa: E501
+ org_code: Optional[StrictStr] = Field(default=None, description="The organization code the roles are associated with.")
+ roles: Optional[List[GetUserRolesResponseDataRolesInner]] = Field(default=None, description="A list of roles")
+ __properties: ClassVar[List[str]] = ["org_code", "roles"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in roles (list)
+ _items = []
+ if self.roles:
+ for _item_roles in self.roles:
+ if _item_roles:
+ _items.append(_item_roles.to_dict())
+ _dict['roles'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "org_code": obj.get("org_code"),
+ "roles": [GetUserRolesResponseDataRolesInner.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_roles_response_data_roles_inner.py b/kinde_sdk/models/get_user_roles_response_data_roles_inner.py
new file mode 100644
index 00000000..ebb8b272
--- /dev/null
+++ b/kinde_sdk/models/get_user_roles_response_data_roles_inner.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserRolesResponseDataRolesInner(BaseModel):
+ """
+ GetUserRolesResponseDataRolesInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The friendly ID of a role")
+ name: Optional[StrictStr] = Field(default=None, description="The name of the role")
+ key: Optional[StrictStr] = Field(default=None, description="The key of the role")
+ __properties: ClassVar[List[str]] = ["id", "name", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponseDataRolesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponseDataRolesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_roles_response_metadata.py b/kinde_sdk/models/get_user_roles_response_metadata.py
new file mode 100644
index 00000000..0307fe4e
--- /dev/null
+++ b/kinde_sdk/models/get_user_roles_response_metadata.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserRolesResponseMetadata(BaseModel):
+ """
+ GetUserRolesResponseMetadata
+ """ # noqa: E501
+ has_more: Optional[StrictBool] = Field(default=None, description="Whether more records exist.")
+ next_page_starting_after: Optional[StrictStr] = Field(default=None, description="The ID of the last record on the current page.")
+ __properties: ClassVar[List[str]] = ["has_more", "next_page_starting_after"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponseMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserRolesResponseMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "has_more": obj.get("has_more"),
+ "next_page_starting_after": obj.get("next_page_starting_after")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_sessions_response.py b/kinde_sdk/models/get_user_sessions_response.py
new file mode 100644
index 00000000..2cd13b7b
--- /dev/null
+++ b/kinde_sdk/models/get_user_sessions_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.get_user_sessions_response_sessions_inner import GetUserSessionsResponseSessionsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserSessionsResponse(BaseModel):
+ """
+ GetUserSessionsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = None
+ message: Optional[StrictStr] = None
+ has_more: Optional[StrictBool] = None
+ sessions: Optional[List[GetUserSessionsResponseSessionsInner]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "has_more", "sessions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserSessionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in sessions (list)
+ _items = []
+ if self.sessions:
+ for _item_sessions in self.sessions:
+ if _item_sessions:
+ _items.append(_item_sessions.to_dict())
+ _dict['sessions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserSessionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "has_more": obj.get("has_more"),
+ "sessions": [GetUserSessionsResponseSessionsInner.from_dict(_item) for _item in obj["sessions"]] if obj.get("sessions") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_user_sessions_response_sessions_inner.py b/kinde_sdk/models/get_user_sessions_response_sessions_inner.py
new file mode 100644
index 00000000..d6190d22
--- /dev/null
+++ b/kinde_sdk/models/get_user_sessions_response_sessions_inner.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetUserSessionsResponseSessionsInner(BaseModel):
+ """
+ GetUserSessionsResponseSessionsInner
+ """ # noqa: E501
+ user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user associated with the session.")
+ org_code: Optional[StrictStr] = Field(default=None, description="The organization code associated with the session, if applicable.")
+ client_id: Optional[StrictStr] = Field(default=None, description="The client ID used to initiate the session.")
+ expires_on: Optional[datetime] = Field(default=None, description="The timestamp indicating when the session will expire.")
+ session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the session.")
+ started_on: Optional[datetime] = Field(default=None, description="The timestamp when the session was initiated.")
+ updated_on: Optional[datetime] = Field(default=None, description="The timestamp of the last update to the session.")
+ connection_id: Optional[StrictStr] = Field(default=None, description="The identifier of the connection through which the session was established.")
+ last_ip_address: Optional[StrictStr] = Field(default=None, description="The last known IP address of the user during this session.")
+ last_user_agent: Optional[StrictStr] = Field(default=None, description="The last known user agent (browser or app) used during this session.")
+ initial_ip_address: Optional[StrictStr] = Field(default=None, description="The IP address from which the session was initially started.")
+ initial_user_agent: Optional[StrictStr] = Field(default=None, description="The user agent (browser or app) used when the session was first created.")
+ __properties: ClassVar[List[str]] = ["user_id", "org_code", "client_id", "expires_on", "session_id", "started_on", "updated_on", "connection_id", "last_ip_address", "last_user_agent", "initial_ip_address", "initial_user_agent"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetUserSessionsResponseSessionsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if org_code (nullable) is None
+ # and model_fields_set contains the field
+ if self.org_code is None and "org_code" in self.model_fields_set:
+ _dict['org_code'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetUserSessionsResponseSessionsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "user_id": obj.get("user_id"),
+ "org_code": obj.get("org_code"),
+ "client_id": obj.get("client_id"),
+ "expires_on": obj.get("expires_on"),
+ "session_id": obj.get("session_id"),
+ "started_on": obj.get("started_on"),
+ "updated_on": obj.get("updated_on"),
+ "connection_id": obj.get("connection_id"),
+ "last_ip_address": obj.get("last_ip_address"),
+ "last_user_agent": obj.get("last_user_agent"),
+ "initial_ip_address": obj.get("initial_ip_address"),
+ "initial_user_agent": obj.get("initial_user_agent")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/get_webhooks_response.py b/kinde_sdk/models/get_webhooks_response.py
new file mode 100644
index 00000000..0fad3a7b
--- /dev/null
+++ b/kinde_sdk/models/get_webhooks_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.webhook import Webhook
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetWebhooksResponse(BaseModel):
+ """
+ GetWebhooksResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ webhooks: Optional[List[Webhook]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "webhooks"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetWebhooksResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in webhooks (list)
+ _items = []
+ if self.webhooks:
+ for _item_webhooks in self.webhooks:
+ if _item_webhooks:
+ _items.append(_item_webhooks.to_dict())
+ _dict['webhooks'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetWebhooksResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "webhooks": [Webhook.from_dict(_item) for _item in obj["webhooks"]] if obj.get("webhooks") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/identity.py b/kinde_sdk/models/identity.py
new file mode 100644
index 00000000..d9923c69
--- /dev/null
+++ b/kinde_sdk/models/identity.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Identity(BaseModel):
+ """
+ Identity
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the identity")
+ type: Optional[StrictStr] = Field(default=None, description="The type of identity")
+ is_confirmed: Optional[StrictBool] = Field(default=None, description="Whether the identity is confirmed")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of user creation in ISO 8601 format")
+ last_login_on: Optional[StrictStr] = Field(default=None, description="Date of last login in ISO 8601 format")
+ total_logins: Optional[StrictInt] = None
+ name: Optional[StrictStr] = Field(default=None, description="The value of the identity")
+ email: Optional[StrictStr] = Field(default=None, description="The associated email of the identity")
+ is_primary: Optional[StrictBool] = Field(default=None, description="Whether the identity is the primary identity for the user")
+ __properties: ClassVar[List[str]] = ["id", "type", "is_confirmed", "created_on", "last_login_on", "total_logins", "name", "email", "is_primary"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Identity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if is_primary (nullable) is None
+ # and model_fields_set contains the field
+ if self.is_primary is None and "is_primary" in self.model_fields_set:
+ _dict['is_primary'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Identity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "is_confirmed": obj.get("is_confirmed"),
+ "created_on": obj.get("created_on"),
+ "last_login_on": obj.get("last_login_on"),
+ "total_logins": obj.get("total_logins"),
+ "name": obj.get("name"),
+ "email": obj.get("email"),
+ "is_primary": obj.get("is_primary")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/logout_redirect_urls.py b/kinde_sdk/models/logout_redirect_urls.py
new file mode 100644
index 00000000..f7a992a8
--- /dev/null
+++ b/kinde_sdk/models/logout_redirect_urls.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class LogoutRedirectUrls(BaseModel):
+ """
+ LogoutRedirectUrls
+ """ # noqa: E501
+ logout_urls: Optional[List[StrictStr]] = Field(default=None, description="An application's logout URLs.")
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ __properties: ClassVar[List[str]] = ["logout_urls", "code", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of LogoutRedirectUrls from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of LogoutRedirectUrls from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "logout_urls": obj.get("logout_urls"),
+ "code": obj.get("code"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/model_property.py b/kinde_sdk/models/model_property.py
new file mode 100644
index 00000000..a2976919
--- /dev/null
+++ b/kinde_sdk/models/model_property.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ModelProperty(BaseModel):
+ """
+ ModelProperty
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ is_private: Optional[StrictBool] = None
+ description: Optional[StrictStr] = None
+ is_kinde_property: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["id", "key", "name", "is_private", "description", "is_kinde_property"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ModelProperty from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ModelProperty from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name"),
+ "is_private": obj.get("is_private"),
+ "description": obj.get("description"),
+ "is_kinde_property": obj.get("is_kinde_property")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/not_found_response.py b/kinde_sdk/models/not_found_response.py
new file mode 100644
index 00000000..794793e0
--- /dev/null
+++ b/kinde_sdk/models/not_found_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.not_found_response_errors import NotFoundResponseErrors
+from typing import Optional, Set
+from typing_extensions import Self
+
+class NotFoundResponse(BaseModel):
+ """
+ NotFoundResponse
+ """ # noqa: E501
+ errors: Optional[NotFoundResponseErrors] = None
+ __properties: ClassVar[List[str]] = ["errors"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of NotFoundResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of errors
+ if self.errors:
+ _dict['errors'] = self.errors.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NotFoundResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "errors": NotFoundResponseErrors.from_dict(obj["errors"]) if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/not_found_response_errors.py b/kinde_sdk/models/not_found_response_errors.py
new file mode 100644
index 00000000..a9fdcef0
--- /dev/null
+++ b/kinde_sdk/models/not_found_response_errors.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class NotFoundResponseErrors(BaseModel):
+ """
+ NotFoundResponseErrors
+ """ # noqa: E501
+ code: Optional[StrictStr] = None
+ message: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["code", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of NotFoundResponseErrors from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NotFoundResponseErrors from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_item_schema.py b/kinde_sdk/models/organization_item_schema.py
new file mode 100644
index 00000000..567ced59
--- /dev/null
+++ b/kinde_sdk/models/organization_item_schema.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationItemSchema(BaseModel):
+ """
+ OrganizationItemSchema
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="The unique identifier for the organization.")
+ name: Optional[StrictStr] = Field(default=None, description="The organization's name.")
+ handle: Optional[StrictStr] = Field(default=None, description="A unique handle for the organization - can be used for dynamic callback urls.")
+ is_default: Optional[StrictBool] = Field(default=None, description="Whether the organization is the default organization.")
+ external_id: Optional[StrictStr] = Field(default=None, description="The organization's external identifier - commonly used when migrating from or mapping to other systems.")
+ is_auto_membership_enabled: Optional[StrictBool] = Field(default=None, description="If users become members of this organization when the org code is supplied during authentication.")
+ __properties: ClassVar[List[str]] = ["code", "name", "handle", "is_default", "external_id", "is_auto_membership_enabled"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationItemSchema from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if handle (nullable) is None
+ # and model_fields_set contains the field
+ if self.handle is None and "handle" in self.model_fields_set:
+ _dict['handle'] = None
+
+ # set to None if external_id (nullable) is None
+ # and model_fields_set contains the field
+ if self.external_id is None and "external_id" in self.model_fields_set:
+ _dict['external_id'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationItemSchema from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "name": obj.get("name"),
+ "handle": obj.get("handle"),
+ "is_default": obj.get("is_default"),
+ "external_id": obj.get("external_id"),
+ "is_auto_membership_enabled": obj.get("is_auto_membership_enabled")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_user.py b/kinde_sdk/models/organization_user.py
new file mode 100644
index 00000000..04e303d1
--- /dev/null
+++ b/kinde_sdk/models/organization_user.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationUser(BaseModel):
+ """
+ OrganizationUser
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The unique ID for the user.")
+ email: Optional[StrictStr] = Field(default=None, description="The user's email address.")
+ full_name: Optional[StrictStr] = Field(default=None, description="The user's full name.")
+ last_name: Optional[StrictStr] = Field(default=None, description="The user's last name.")
+ first_name: Optional[StrictStr] = Field(default=None, description="The user's first name.")
+ picture: Optional[StrictStr] = Field(default=None, description="The user's profile picture URL.")
+ joined_on: Optional[StrictStr] = Field(default=None, description="The date the user joined the organization.")
+ last_accessed_on: Optional[StrictStr] = Field(default=None, description="The date the user last accessed the organization.")
+ roles: Optional[List[StrictStr]] = Field(default=None, description="The roles the user has in the organization.")
+ __properties: ClassVar[List[str]] = ["id", "email", "full_name", "last_name", "first_name", "picture", "joined_on", "last_accessed_on", "roles"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationUser from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if id (nullable) is None
+ # and model_fields_set contains the field
+ if self.id is None and "id" in self.model_fields_set:
+ _dict['id'] = None
+
+ # set to None if email (nullable) is None
+ # and model_fields_set contains the field
+ if self.email is None and "email" in self.model_fields_set:
+ _dict['email'] = None
+
+ # set to None if last_name (nullable) is None
+ # and model_fields_set contains the field
+ if self.last_name is None and "last_name" in self.model_fields_set:
+ _dict['last_name'] = None
+
+ # set to None if first_name (nullable) is None
+ # and model_fields_set contains the field
+ if self.first_name is None and "first_name" in self.model_fields_set:
+ _dict['first_name'] = None
+
+ # set to None if picture (nullable) is None
+ # and model_fields_set contains the field
+ if self.picture is None and "picture" in self.model_fields_set:
+ _dict['picture'] = None
+
+ # set to None if last_accessed_on (nullable) is None
+ # and model_fields_set contains the field
+ if self.last_accessed_on is None and "last_accessed_on" in self.model_fields_set:
+ _dict['last_accessed_on'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationUser from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "email": obj.get("email"),
+ "full_name": obj.get("full_name"),
+ "last_name": obj.get("last_name"),
+ "first_name": obj.get("first_name"),
+ "picture": obj.get("picture"),
+ "joined_on": obj.get("joined_on"),
+ "last_accessed_on": obj.get("last_accessed_on"),
+ "roles": obj.get("roles")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_user_permission.py b/kinde_sdk/models/organization_user_permission.py
new file mode 100644
index 00000000..6cb019c7
--- /dev/null
+++ b/kinde_sdk/models/organization_user_permission.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.organization_user_permission_roles_inner import OrganizationUserPermissionRolesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationUserPermission(BaseModel):
+ """
+ OrganizationUserPermission
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ roles: Optional[List[OrganizationUserPermissionRolesInner]] = None
+ __properties: ClassVar[List[str]] = ["id", "key", "name", "description", "roles"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationUserPermission from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in roles (list)
+ _items = []
+ if self.roles:
+ for _item_roles in self.roles:
+ if _item_roles:
+ _items.append(_item_roles.to_dict())
+ _dict['roles'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationUserPermission from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "roles": [OrganizationUserPermissionRolesInner.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_user_permission_roles_inner.py b/kinde_sdk/models/organization_user_permission_roles_inner.py
new file mode 100644
index 00000000..4f589df9
--- /dev/null
+++ b/kinde_sdk/models/organization_user_permission_roles_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationUserPermissionRolesInner(BaseModel):
+ """
+ OrganizationUserPermissionRolesInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationUserPermissionRolesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationUserPermissionRolesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_user_role.py b/kinde_sdk/models/organization_user_role.py
new file mode 100644
index 00000000..756cbb43
--- /dev/null
+++ b/kinde_sdk/models/organization_user_role.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationUserRole(BaseModel):
+ """
+ OrganizationUserRole
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "key", "name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationUserRole from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationUserRole from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_user_role_permissions.py b/kinde_sdk/models/organization_user_role_permissions.py
new file mode 100644
index 00000000..9b801486
--- /dev/null
+++ b/kinde_sdk/models/organization_user_role_permissions.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.organization_user_role_permissions_permissions import OrganizationUserRolePermissionsPermissions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationUserRolePermissions(BaseModel):
+ """
+ OrganizationUserRolePermissions
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ role: Optional[StrictStr] = None
+ permissions: Optional[OrganizationUserRolePermissionsPermissions] = None
+ __properties: ClassVar[List[str]] = ["id", "role", "permissions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationUserRolePermissions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of permissions
+ if self.permissions:
+ _dict['permissions'] = self.permissions.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationUserRolePermissions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "role": obj.get("role"),
+ "permissions": OrganizationUserRolePermissionsPermissions.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/organization_user_role_permissions_permissions.py b/kinde_sdk/models/organization_user_role_permissions_permissions.py
new file mode 100644
index 00000000..ab187244
--- /dev/null
+++ b/kinde_sdk/models/organization_user_role_permissions_permissions.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationUserRolePermissionsPermissions(BaseModel):
+ """
+ OrganizationUserRolePermissionsPermissions
+ """ # noqa: E501
+ key: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationUserRolePermissionsPermissions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationUserRolePermissionsPermissions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/permissions.py b/kinde_sdk/models/permissions.py
new file mode 100644
index 00000000..34265205
--- /dev/null
+++ b/kinde_sdk/models/permissions.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Permissions(BaseModel):
+ """
+ Permissions
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The permission's ID.")
+ key: Optional[StrictStr] = Field(default=None, description="The permission identifier to use in code.")
+ name: Optional[StrictStr] = Field(default=None, description="The permission's name.")
+ description: Optional[StrictStr] = Field(default=None, description="The permission's description.")
+ __properties: ClassVar[List[str]] = ["id", "key", "name", "description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Permissions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Permissions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name"),
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/property_value.py b/kinde_sdk/models/property_value.py
new file mode 100644
index 00000000..63d15c2f
--- /dev/null
+++ b/kinde_sdk/models/property_value.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PropertyValue(BaseModel):
+ """
+ PropertyValue
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ value: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "name", "description", "key", "value"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PropertyValue from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if description (nullable) is None
+ # and model_fields_set contains the field
+ if self.description is None and "description" in self.model_fields_set:
+ _dict['description'] = None
+
+ # set to None if value (nullable) is None
+ # and model_fields_set contains the field
+ if self.value is None and "value" in self.model_fields_set:
+ _dict['value'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PropertyValue from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "key": obj.get("key"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/read_env_logo_response.py b/kinde_sdk/models/read_env_logo_response.py
new file mode 100644
index 00000000..8a106c21
--- /dev/null
+++ b/kinde_sdk/models/read_env_logo_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.read_env_logo_response_logos_inner import ReadEnvLogoResponseLogosInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReadEnvLogoResponse(BaseModel):
+ """
+ ReadEnvLogoResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ logos: Optional[List[ReadEnvLogoResponseLogosInner]] = Field(default=None, description="A list of logos.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ __properties: ClassVar[List[str]] = ["code", "logos", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReadEnvLogoResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in logos (list)
+ _items = []
+ if self.logos:
+ for _item_logos in self.logos:
+ if _item_logos:
+ _items.append(_item_logos.to_dict())
+ _dict['logos'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReadEnvLogoResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "logos": [ReadEnvLogoResponseLogosInner.from_dict(_item) for _item in obj["logos"]] if obj.get("logos") is not None else None,
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/read_env_logo_response_logos_inner.py b/kinde_sdk/models/read_env_logo_response_logos_inner.py
new file mode 100644
index 00000000..cbeb18a4
--- /dev/null
+++ b/kinde_sdk/models/read_env_logo_response_logos_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReadEnvLogoResponseLogosInner(BaseModel):
+ """
+ ReadEnvLogoResponseLogosInner
+ """ # noqa: E501
+ type: Optional[StrictStr] = Field(default=None, description="The type of logo (light or dark).")
+ file_name: Optional[StrictStr] = Field(default=None, description="The name of the logo file.")
+ __properties: ClassVar[List[str]] = ["type", "file_name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReadEnvLogoResponseLogosInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReadEnvLogoResponseLogosInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "file_name": obj.get("file_name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/read_logo_response.py b/kinde_sdk/models/read_logo_response.py
new file mode 100644
index 00000000..140ba153
--- /dev/null
+++ b/kinde_sdk/models/read_logo_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.read_logo_response_logos_inner import ReadLogoResponseLogosInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReadLogoResponse(BaseModel):
+ """
+ ReadLogoResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ logos: Optional[List[ReadLogoResponseLogosInner]] = Field(default=None, description="A list of logos.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ __properties: ClassVar[List[str]] = ["code", "logos", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReadLogoResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in logos (list)
+ _items = []
+ if self.logos:
+ for _item_logos in self.logos:
+ if _item_logos:
+ _items.append(_item_logos.to_dict())
+ _dict['logos'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReadLogoResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "logos": [ReadLogoResponseLogosInner.from_dict(_item) for _item in obj["logos"]] if obj.get("logos") is not None else None,
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/read_logo_response_logos_inner.py b/kinde_sdk/models/read_logo_response_logos_inner.py
new file mode 100644
index 00000000..f02db001
--- /dev/null
+++ b/kinde_sdk/models/read_logo_response_logos_inner.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReadLogoResponseLogosInner(BaseModel):
+ """
+ ReadLogoResponseLogosInner
+ """ # noqa: E501
+ type: Optional[StrictStr] = Field(default=None, description="The type of logo (light or dark).")
+ file_name: Optional[StrictStr] = Field(default=None, description="The name of the logo file.")
+ path: Optional[StrictStr] = Field(default=None, description="The relative path to the logo file.")
+ __properties: ClassVar[List[str]] = ["type", "file_name", "path"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReadLogoResponseLogosInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReadLogoResponseLogosInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "file_name": obj.get("file_name"),
+ "path": obj.get("path")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/redirect_callback_urls.py b/kinde_sdk/models/redirect_callback_urls.py
new file mode 100644
index 00000000..671e1268
--- /dev/null
+++ b/kinde_sdk/models/redirect_callback_urls.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class RedirectCallbackUrls(BaseModel):
+ """
+ RedirectCallbackUrls
+ """ # noqa: E501
+ redirect_urls: Optional[List[StrictStr]] = Field(default=None, description="An application's redirect URLs.")
+ __properties: ClassVar[List[str]] = ["redirect_urls"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of RedirectCallbackUrls from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RedirectCallbackUrls from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "redirect_urls": obj.get("redirect_urls")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_connection_request.py b/kinde_sdk/models/replace_connection_request.py
new file mode 100644
index 00000000..52addecf
--- /dev/null
+++ b/kinde_sdk/models/replace_connection_request.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.replace_connection_request_options import ReplaceConnectionRequestOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceConnectionRequest(BaseModel):
+ """
+ ReplaceConnectionRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The internal name of the connection.")
+ display_name: Optional[StrictStr] = Field(default=None, description="The public-facing name of the connection.")
+ enabled_applications: Optional[List[StrictStr]] = Field(default=None, description="Client IDs of applications in which this connection is to be enabled.")
+ options: Optional[ReplaceConnectionRequestOptions] = None
+ __properties: ClassVar[List[str]] = ["name", "display_name", "enabled_applications", "options"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceConnectionRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceConnectionRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "display_name": obj.get("display_name"),
+ "enabled_applications": obj.get("enabled_applications"),
+ "options": ReplaceConnectionRequestOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_connection_request_options.py b/kinde_sdk/models/replace_connection_request_options.py
new file mode 100644
index 00000000..b00b13cd
--- /dev/null
+++ b/kinde_sdk/models/replace_connection_request_options.py
@@ -0,0 +1,152 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from kinde_sdk.models.create_connection_request_options_one_of import CreateConnectionRequestOptionsOneOf
+from kinde_sdk.models.replace_connection_request_options_one_of import ReplaceConnectionRequestOptionsOneOf
+from kinde_sdk.models.replace_connection_request_options_one_of1 import ReplaceConnectionRequestOptionsOneOf1
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+REPLACECONNECTIONREQUESTOPTIONS_ONE_OF_SCHEMAS = ["CreateConnectionRequestOptionsOneOf", "ReplaceConnectionRequestOptionsOneOf", "ReplaceConnectionRequestOptionsOneOf1"]
+
+class ReplaceConnectionRequestOptions(BaseModel):
+ """
+ ReplaceConnectionRequestOptions
+ """
+ # data type: CreateConnectionRequestOptionsOneOf
+ oneof_schema_1_validator: Optional[CreateConnectionRequestOptionsOneOf] = None
+ # data type: ReplaceConnectionRequestOptionsOneOf
+ oneof_schema_2_validator: Optional[ReplaceConnectionRequestOptionsOneOf] = None
+ # data type: ReplaceConnectionRequestOptionsOneOf1
+ oneof_schema_3_validator: Optional[ReplaceConnectionRequestOptionsOneOf1] = None
+ actual_instance: Optional[Union[CreateConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf1]] = None
+ one_of_schemas: Set[str] = { "CreateConnectionRequestOptionsOneOf", "ReplaceConnectionRequestOptionsOneOf", "ReplaceConnectionRequestOptionsOneOf1" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = ReplaceConnectionRequestOptions.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: CreateConnectionRequestOptionsOneOf
+ if not isinstance(v, CreateConnectionRequestOptionsOneOf):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `CreateConnectionRequestOptionsOneOf`")
+ else:
+ match += 1
+ # validate data type: ReplaceConnectionRequestOptionsOneOf
+ if not isinstance(v, ReplaceConnectionRequestOptionsOneOf):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `ReplaceConnectionRequestOptionsOneOf`")
+ else:
+ match += 1
+ # validate data type: ReplaceConnectionRequestOptionsOneOf1
+ if not isinstance(v, ReplaceConnectionRequestOptionsOneOf1):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `ReplaceConnectionRequestOptionsOneOf1`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in ReplaceConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf1. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in ReplaceConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf1. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into CreateConnectionRequestOptionsOneOf
+ try:
+ instance.actual_instance = CreateConnectionRequestOptionsOneOf.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into ReplaceConnectionRequestOptionsOneOf
+ try:
+ instance.actual_instance = ReplaceConnectionRequestOptionsOneOf.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into ReplaceConnectionRequestOptionsOneOf1
+ try:
+ instance.actual_instance = ReplaceConnectionRequestOptionsOneOf1.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into ReplaceConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf1. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into ReplaceConnectionRequestOptions with oneOf schemas: CreateConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf1. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], CreateConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf, ReplaceConnectionRequestOptionsOneOf1]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/kinde_sdk/models/replace_connection_request_options_one_of.py b/kinde_sdk/models/replace_connection_request_options_one_of.py
new file mode 100644
index 00000000..f57b0e3e
--- /dev/null
+++ b/kinde_sdk/models/replace_connection_request_options_one_of.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceConnectionRequestOptionsOneOf(BaseModel):
+ """
+ Azure AD connection options.
+ """ # noqa: E501
+ client_id: Optional[StrictStr] = Field(default=None, description="Client ID.")
+ client_secret: Optional[StrictStr] = Field(default=None, description="Client secret.")
+ home_realm_domains: Optional[List[StrictStr]] = Field(default=None, description="List of domains to limit authentication.")
+ entra_id_domain: Optional[StrictStr] = Field(default=None, description="Domain for Entra ID.")
+ is_use_common_endpoint: Optional[StrictBool] = Field(default=None, description="Use https://login.windows.net/common instead of a default endpoint.")
+ is_sync_user_profile_on_login: Optional[StrictBool] = Field(default=None, description="Sync user profile data with IDP.")
+ is_retrieve_provider_user_groups: Optional[StrictBool] = Field(default=None, description="Include user group info from MS Entra ID.")
+ is_extended_attributes_required: Optional[StrictBool] = Field(default=None, description="Include additional user profile information.")
+ __properties: ClassVar[List[str]] = ["client_id", "client_secret", "home_realm_domains", "entra_id_domain", "is_use_common_endpoint", "is_sync_user_profile_on_login", "is_retrieve_provider_user_groups", "is_extended_attributes_required"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceConnectionRequestOptionsOneOf from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceConnectionRequestOptionsOneOf from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "client_id": obj.get("client_id"),
+ "client_secret": obj.get("client_secret"),
+ "home_realm_domains": obj.get("home_realm_domains"),
+ "entra_id_domain": obj.get("entra_id_domain"),
+ "is_use_common_endpoint": obj.get("is_use_common_endpoint"),
+ "is_sync_user_profile_on_login": obj.get("is_sync_user_profile_on_login"),
+ "is_retrieve_provider_user_groups": obj.get("is_retrieve_provider_user_groups"),
+ "is_extended_attributes_required": obj.get("is_extended_attributes_required")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_connection_request_options_one_of1.py b/kinde_sdk/models/replace_connection_request_options_one_of1.py
new file mode 100644
index 00000000..080e3aa6
--- /dev/null
+++ b/kinde_sdk/models/replace_connection_request_options_one_of1.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceConnectionRequestOptionsOneOf1(BaseModel):
+ """
+ SAML connection options (e.g., Cloudflare SAML).
+ """ # noqa: E501
+ home_realm_domains: Optional[List[StrictStr]] = Field(default=None, description="List of domains to restrict authentication.")
+ saml_entity_id: Optional[StrictStr] = Field(default=None, description="SAML Entity ID.")
+ saml_acs_url: Optional[StrictStr] = Field(default=None, description="Assertion Consumer Service URL.")
+ saml_idp_metadata_url: Optional[StrictStr] = Field(default=None, description="URL for the IdP metadata.")
+ saml_email_key_attr: Optional[StrictStr] = Field(default=None, description="Attribute key for the user’s email.")
+ saml_first_name_key_attr: Optional[StrictStr] = Field(default=None, description="Attribute key for the user’s first name.")
+ saml_last_name_key_attr: Optional[StrictStr] = Field(default=None, description="Attribute key for the user’s last name.")
+ is_create_missing_user: Optional[StrictBool] = Field(default=None, description="Create user if they don’t exist.")
+ saml_signing_certificate: Optional[StrictStr] = Field(default=None, description="Certificate for signing SAML requests.")
+ saml_signing_private_key: Optional[StrictStr] = Field(default=None, description="Private key associated with the signing certificate.")
+ __properties: ClassVar[List[str]] = ["home_realm_domains", "saml_entity_id", "saml_acs_url", "saml_idp_metadata_url", "saml_email_key_attr", "saml_first_name_key_attr", "saml_last_name_key_attr", "is_create_missing_user", "saml_signing_certificate", "saml_signing_private_key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceConnectionRequestOptionsOneOf1 from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceConnectionRequestOptionsOneOf1 from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "home_realm_domains": obj.get("home_realm_domains"),
+ "saml_entity_id": obj.get("saml_entity_id"),
+ "saml_acs_url": obj.get("saml_acs_url"),
+ "saml_idp_metadata_url": obj.get("saml_idp_metadata_url"),
+ "saml_email_key_attr": obj.get("saml_email_key_attr"),
+ "saml_first_name_key_attr": obj.get("saml_first_name_key_attr"),
+ "saml_last_name_key_attr": obj.get("saml_last_name_key_attr"),
+ "is_create_missing_user": obj.get("is_create_missing_user"),
+ "saml_signing_certificate": obj.get("saml_signing_certificate"),
+ "saml_signing_private_key": obj.get("saml_signing_private_key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_logout_redirect_urls_request.py b/kinde_sdk/models/replace_logout_redirect_urls_request.py
new file mode 100644
index 00000000..8b827495
--- /dev/null
+++ b/kinde_sdk/models/replace_logout_redirect_urls_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceLogoutRedirectURLsRequest(BaseModel):
+ """
+ ReplaceLogoutRedirectURLsRequest
+ """ # noqa: E501
+ urls: Optional[List[StrictStr]] = Field(default=None, description="Array of logout urls.")
+ __properties: ClassVar[List[str]] = ["urls"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceLogoutRedirectURLsRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceLogoutRedirectURLsRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "urls": obj.get("urls")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_mfa_request.py b/kinde_sdk/models/replace_mfa_request.py
new file mode 100644
index 00000000..7dbebc57
--- /dev/null
+++ b/kinde_sdk/models/replace_mfa_request.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceMFARequest(BaseModel):
+ """
+ ReplaceMFARequest
+ """ # noqa: E501
+ policy: StrictStr = Field(description="Specifies whether MFA is required, optional, or not enforced.")
+ enabled_factors: List[StrictStr] = Field(description="The MFA methods to enable.")
+ __properties: ClassVar[List[str]] = ["policy", "enabled_factors"]
+
+ @field_validator('policy')
+ def policy_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['required', 'off', 'optional']):
+ raise ValueError("must be one of enum values ('required', 'off', 'optional')")
+ return value
+
+ @field_validator('enabled_factors')
+ def enabled_factors_validate_enum(cls, value):
+ """Validates the enum"""
+ for i in value:
+ if i not in set(['mfa:email', 'mfa:sms', 'mfa:authenticator_app']):
+ raise ValueError("each list item must be one of ('mfa:email', 'mfa:sms', 'mfa:authenticator_app')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceMFARequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceMFARequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "policy": obj.get("policy"),
+ "enabled_factors": obj.get("enabled_factors")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_organization_mfa_request.py b/kinde_sdk/models/replace_organization_mfa_request.py
new file mode 100644
index 00000000..c19065f2
--- /dev/null
+++ b/kinde_sdk/models/replace_organization_mfa_request.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceOrganizationMFARequest(BaseModel):
+ """
+ ReplaceOrganizationMFARequest
+ """ # noqa: E501
+ enabled_factors: List[StrictStr] = Field(description="The MFA methods to enable.")
+ __properties: ClassVar[List[str]] = ["enabled_factors"]
+
+ @field_validator('enabled_factors')
+ def enabled_factors_validate_enum(cls, value):
+ """Validates the enum"""
+ for i in value:
+ if i not in set(['mfa:email', 'mfa:sms', 'mfa:authenticator_app']):
+ raise ValueError("each list item must be one of ('mfa:email', 'mfa:sms', 'mfa:authenticator_app')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceOrganizationMFARequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceOrganizationMFARequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "enabled_factors": obj.get("enabled_factors")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/replace_redirect_callback_urls_request.py b/kinde_sdk/models/replace_redirect_callback_urls_request.py
new file mode 100644
index 00000000..9739ac10
--- /dev/null
+++ b/kinde_sdk/models/replace_redirect_callback_urls_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ReplaceRedirectCallbackURLsRequest(BaseModel):
+ """
+ ReplaceRedirectCallbackURLsRequest
+ """ # noqa: E501
+ urls: Optional[List[StrictStr]] = Field(default=None, description="Array of callback urls.")
+ __properties: ClassVar[List[str]] = ["urls"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ReplaceRedirectCallbackURLsRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ReplaceRedirectCallbackURLsRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "urls": obj.get("urls")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/role.py b/kinde_sdk/models/role.py
new file mode 100644
index 00000000..4a425e51
--- /dev/null
+++ b/kinde_sdk/models/role.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Role(BaseModel):
+ """
+ Role
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ key: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "key", "name", "description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Role from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Role from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name"),
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/role_permissions_response.py b/kinde_sdk/models/role_permissions_response.py
new file mode 100644
index 00000000..4b9a87a5
--- /dev/null
+++ b/kinde_sdk/models/role_permissions_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.permissions import Permissions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class RolePermissionsResponse(BaseModel):
+ """
+ RolePermissionsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ permissions: Optional[List[Permissions]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "permissions", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of RolePermissionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in permissions (list)
+ _items = []
+ if self.permissions:
+ for _item_permissions in self.permissions:
+ if _item_permissions:
+ _items.append(_item_permissions.to_dict())
+ _dict['permissions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RolePermissionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "permissions": [Permissions.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/role_scopes_response.py b/kinde_sdk/models/role_scopes_response.py
new file mode 100644
index 00000000..1e2e99f9
--- /dev/null
+++ b/kinde_sdk/models/role_scopes_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.scopes import Scopes
+from typing import Optional, Set
+from typing_extensions import Self
+
+class RoleScopesResponse(BaseModel):
+ """
+ RoleScopesResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ scopes: Optional[List[Scopes]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "scopes"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of RoleScopesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in scopes (list)
+ _items = []
+ if self.scopes:
+ for _item_scopes in self.scopes:
+ if _item_scopes:
+ _items.append(_item_scopes.to_dict())
+ _dict['scopes'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RoleScopesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "scopes": [Scopes.from_dict(_item) for _item in obj["scopes"]] if obj.get("scopes") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/roles.py b/kinde_sdk/models/roles.py
new file mode 100644
index 00000000..d3ba840d
--- /dev/null
+++ b/kinde_sdk/models/roles.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Roles(BaseModel):
+ """
+ Roles
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The role's ID.")
+ key: Optional[StrictStr] = Field(default=None, description="The role identifier to use in code.")
+ name: Optional[StrictStr] = Field(default=None, description="The role's name.")
+ description: Optional[StrictStr] = Field(default=None, description="The role's description.")
+ is_default_role: Optional[StrictBool] = Field(default=None, description="Whether the role is the default role.")
+ __properties: ClassVar[List[str]] = ["id", "key", "name", "description", "is_default_role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Roles from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if description (nullable) is None
+ # and model_fields_set contains the field
+ if self.description is None and "description" in self.model_fields_set:
+ _dict['description'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Roles from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "is_default_role": obj.get("is_default_role")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/scopes.py b/kinde_sdk/models/scopes.py
new file mode 100644
index 00000000..cb2ff776
--- /dev/null
+++ b/kinde_sdk/models/scopes.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Scopes(BaseModel):
+ """
+ Scopes
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Scope ID.")
+ key: Optional[StrictStr] = Field(default=None, description="Scope key.")
+ description: Optional[StrictStr] = Field(default=None, description="Description of scope.")
+ api_id: Optional[StrictStr] = Field(default=None, description="API ID.")
+ __properties: ClassVar[List[str]] = ["id", "key", "description", "api_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Scopes from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Scopes from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "key": obj.get("key"),
+ "description": obj.get("description"),
+ "api_id": obj.get("api_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/search_users_response.py b/kinde_sdk/models/search_users_response.py
new file mode 100644
index 00000000..a7434985
--- /dev/null
+++ b/kinde_sdk/models/search_users_response.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.search_users_response_results_inner import SearchUsersResponseResultsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SearchUsersResponse(BaseModel):
+ """
+ SearchUsersResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ results: Optional[List[SearchUsersResponseResultsInner]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "results"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SearchUsersResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in results (list)
+ _items = []
+ if self.results:
+ for _item_results in self.results:
+ if _item_results:
+ _items.append(_item_results.to_dict())
+ _dict['results'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SearchUsersResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "results": [SearchUsersResponseResultsInner.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/search_users_response_results_inner.py b/kinde_sdk/models/search_users_response_results_inner.py
new file mode 100644
index 00000000..a803691d
--- /dev/null
+++ b/kinde_sdk/models/search_users_response_results_inner.py
@@ -0,0 +1,164 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SearchUsersResponseResultsInner(BaseModel):
+ """
+ SearchUsersResponseResultsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde.")
+ provided_id: Optional[StrictStr] = Field(default=None, description="External ID for user.")
+ email: Optional[StrictStr] = Field(default=None, description="Default email address of the user in Kinde.")
+ username: Optional[StrictStr] = Field(default=None, description="Primary username of the user in Kinde.")
+ last_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ first_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ is_suspended: Optional[StrictBool] = Field(default=None, description="Whether the user is currently suspended or not.")
+ picture: Optional[StrictStr] = Field(default=None, description="User's profile picture URL.")
+ total_sign_ins: Optional[StrictInt] = Field(default=None, description="Total number of user sign ins.")
+ failed_sign_ins: Optional[StrictInt] = Field(default=None, description="Number of consecutive failed user sign ins.")
+ last_signed_in: Optional[StrictStr] = Field(default=None, description="Last sign in date in ISO 8601 format.")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of user creation in ISO 8601 format.")
+ organizations: Optional[List[StrictStr]] = Field(default=None, description="Array of organizations a user belongs to.")
+ identities: Optional[List[UserIdentitiesInner]] = Field(default=None, description="Array of identities belonging to the user.")
+ properties: Optional[Dict[str, StrictStr]] = Field(default=None, description="The user properties.")
+ __properties: ClassVar[List[str]] = ["id", "provided_id", "email", "username", "last_name", "first_name", "is_suspended", "picture", "total_sign_ins", "failed_sign_ins", "last_signed_in", "created_on", "organizations", "identities", "properties"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SearchUsersResponseResultsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in identities (list)
+ _items = []
+ if self.identities:
+ for _item_identities in self.identities:
+ if _item_identities:
+ _items.append(_item_identities.to_dict())
+ _dict['identities'] = _items
+ # set to None if provided_id (nullable) is None
+ # and model_fields_set contains the field
+ if self.provided_id is None and "provided_id" in self.model_fields_set:
+ _dict['provided_id'] = None
+
+ # set to None if email (nullable) is None
+ # and model_fields_set contains the field
+ if self.email is None and "email" in self.model_fields_set:
+ _dict['email'] = None
+
+ # set to None if username (nullable) is None
+ # and model_fields_set contains the field
+ if self.username is None and "username" in self.model_fields_set:
+ _dict['username'] = None
+
+ # set to None if picture (nullable) is None
+ # and model_fields_set contains the field
+ if self.picture is None and "picture" in self.model_fields_set:
+ _dict['picture'] = None
+
+ # set to None if total_sign_ins (nullable) is None
+ # and model_fields_set contains the field
+ if self.total_sign_ins is None and "total_sign_ins" in self.model_fields_set:
+ _dict['total_sign_ins'] = None
+
+ # set to None if failed_sign_ins (nullable) is None
+ # and model_fields_set contains the field
+ if self.failed_sign_ins is None and "failed_sign_ins" in self.model_fields_set:
+ _dict['failed_sign_ins'] = None
+
+ # set to None if last_signed_in (nullable) is None
+ # and model_fields_set contains the field
+ if self.last_signed_in is None and "last_signed_in" in self.model_fields_set:
+ _dict['last_signed_in'] = None
+
+ # set to None if created_on (nullable) is None
+ # and model_fields_set contains the field
+ if self.created_on is None and "created_on" in self.model_fields_set:
+ _dict['created_on'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SearchUsersResponseResultsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "provided_id": obj.get("provided_id"),
+ "email": obj.get("email"),
+ "username": obj.get("username"),
+ "last_name": obj.get("last_name"),
+ "first_name": obj.get("first_name"),
+ "is_suspended": obj.get("is_suspended"),
+ "picture": obj.get("picture"),
+ "total_sign_ins": obj.get("total_sign_ins"),
+ "failed_sign_ins": obj.get("failed_sign_ins"),
+ "last_signed_in": obj.get("last_signed_in"),
+ "created_on": obj.get("created_on"),
+ "organizations": obj.get("organizations"),
+ "identities": [UserIdentitiesInner.from_dict(_item) for _item in obj["identities"]] if obj.get("identities") is not None else None,
+ "properties": obj.get("properties")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/set_user_password_request.py b/kinde_sdk/models/set_user_password_request.py
new file mode 100644
index 00000000..88467233
--- /dev/null
+++ b/kinde_sdk/models/set_user_password_request.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SetUserPasswordRequest(BaseModel):
+ """
+ SetUserPasswordRequest
+ """ # noqa: E501
+ hashed_password: StrictStr = Field(description="The hashed password.")
+ hashing_method: Optional[StrictStr] = Field(default=None, description="The hashing method or algorithm used to encrypt the user’s password. Default is bcrypt.")
+ salt: Optional[StrictStr] = Field(default=None, description="Extra characters added to passwords to make them stronger. Not required for bcrypt.")
+ salt_position: Optional[StrictStr] = Field(default=None, description="Position of salt in password string. Not required for bcrypt.")
+ is_temporary_password: Optional[StrictBool] = Field(default=None, description="The user will be prompted to set a new password after entering this one.")
+ __properties: ClassVar[List[str]] = ["hashed_password", "hashing_method", "salt", "salt_position", "is_temporary_password"]
+
+ @field_validator('hashing_method')
+ def hashing_method_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['bcrypt', 'crypt', 'md5', 'wordpress']):
+ raise ValueError("must be one of enum values ('bcrypt', 'crypt', 'md5', 'wordpress')")
+ return value
+
+ @field_validator('salt_position')
+ def salt_position_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['prefix', 'suffix']):
+ raise ValueError("must be one of enum values ('prefix', 'suffix')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SetUserPasswordRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SetUserPasswordRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "hashed_password": obj.get("hashed_password"),
+ "hashing_method": obj.get("hashing_method"),
+ "salt": obj.get("salt"),
+ "salt_position": obj.get("salt_position"),
+ "is_temporary_password": obj.get("is_temporary_password")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/subscriber.py b/kinde_sdk/models/subscriber.py
new file mode 100644
index 00000000..e19a6dca
--- /dev/null
+++ b/kinde_sdk/models/subscriber.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Subscriber(BaseModel):
+ """
+ Subscriber
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ preferred_email: Optional[StrictStr] = None
+ first_name: Optional[StrictStr] = None
+ last_name: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "preferred_email", "first_name", "last_name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Subscriber from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Subscriber from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "preferred_email": obj.get("preferred_email"),
+ "first_name": obj.get("first_name"),
+ "last_name": obj.get("last_name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/subscribers_subscriber.py b/kinde_sdk/models/subscribers_subscriber.py
new file mode 100644
index 00000000..52a2cb7e
--- /dev/null
+++ b/kinde_sdk/models/subscribers_subscriber.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SubscribersSubscriber(BaseModel):
+ """
+ SubscribersSubscriber
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ email: Optional[StrictStr] = None
+ full_name: Optional[StrictStr] = None
+ first_name: Optional[StrictStr] = None
+ last_name: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "email", "full_name", "first_name", "last_name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SubscribersSubscriber from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SubscribersSubscriber from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "email": obj.get("email"),
+ "full_name": obj.get("full_name"),
+ "first_name": obj.get("first_name"),
+ "last_name": obj.get("last_name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/success_response.py b/kinde_sdk/models/success_response.py
new file mode 100644
index 00000000..eb2e3d27
--- /dev/null
+++ b/kinde_sdk/models/success_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SuccessResponse(BaseModel):
+ """
+ SuccessResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["message", "code"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SuccessResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SuccessResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/token_error_response.py b/kinde_sdk/models/token_error_response.py
new file mode 100644
index 00000000..c7b13acf
--- /dev/null
+++ b/kinde_sdk/models/token_error_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class TokenErrorResponse(BaseModel):
+ """
+ TokenErrorResponse
+ """ # noqa: E501
+ error: Optional[StrictStr] = Field(default=None, description="Error.")
+ error_description: Optional[StrictStr] = Field(default=None, description="The error description.")
+ __properties: ClassVar[List[str]] = ["error", "error_description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TokenErrorResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TokenErrorResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "error": obj.get("error"),
+ "error_description": obj.get("error_description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/token_introspect.py b/kinde_sdk/models/token_introspect.py
new file mode 100644
index 00000000..54c7b240
--- /dev/null
+++ b/kinde_sdk/models/token_introspect.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class TokenIntrospect(BaseModel):
+ """
+ TokenIntrospect
+ """ # noqa: E501
+ active: Optional[StrictBool] = Field(default=None, description="Indicates the status of the token.")
+ aud: Optional[List[StrictStr]] = Field(default=None, description="Array of intended token recipients.")
+ client_id: Optional[StrictStr] = Field(default=None, description="Identifier for the requesting client.")
+ exp: Optional[StrictInt] = Field(default=None, description="Token expiration timestamp.")
+ iat: Optional[StrictInt] = Field(default=None, description="Token issuance timestamp.")
+ __properties: ClassVar[List[str]] = ["active", "aud", "client_id", "exp", "iat"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TokenIntrospect from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TokenIntrospect from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "active": obj.get("active"),
+ "aud": obj.get("aud"),
+ "client_id": obj.get("client_id"),
+ "exp": obj.get("exp"),
+ "iat": obj.get("iat")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_api_applications_request.py b/kinde_sdk/models/update_api_applications_request.py
new file mode 100644
index 00000000..529b1ffe
--- /dev/null
+++ b/kinde_sdk/models/update_api_applications_request.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from kinde_sdk.models.update_api_applications_request_applications_inner import UpdateAPIApplicationsRequestApplicationsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateAPIApplicationsRequest(BaseModel):
+ """
+ UpdateAPIApplicationsRequest
+ """ # noqa: E501
+ applications: List[UpdateAPIApplicationsRequestApplicationsInner]
+ __properties: ClassVar[List[str]] = ["applications"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateAPIApplicationsRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in applications (list)
+ _items = []
+ if self.applications:
+ for _item_applications in self.applications:
+ if _item_applications:
+ _items.append(_item_applications.to_dict())
+ _dict['applications'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateAPIApplicationsRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "applications": [UpdateAPIApplicationsRequestApplicationsInner.from_dict(_item) for _item in obj["applications"]] if obj.get("applications") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_api_applications_request_applications_inner.py b/kinde_sdk/models/update_api_applications_request_applications_inner.py
new file mode 100644
index 00000000..e5145c10
--- /dev/null
+++ b/kinde_sdk/models/update_api_applications_request_applications_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateAPIApplicationsRequestApplicationsInner(BaseModel):
+ """
+ UpdateAPIApplicationsRequestApplicationsInner
+ """ # noqa: E501
+ id: StrictStr = Field(description="The application's Client ID.")
+ operation: Optional[StrictStr] = Field(default=None, description="Optional operation, set to 'delete' to revoke authorization for the application. If not set, the application will be authorized.")
+ __properties: ClassVar[List[str]] = ["id", "operation"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateAPIApplicationsRequestApplicationsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateAPIApplicationsRequestApplicationsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "operation": obj.get("operation")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_api_scope_request.py b/kinde_sdk/models/update_api_scope_request.py
new file mode 100644
index 00000000..3baf6b02
--- /dev/null
+++ b/kinde_sdk/models/update_api_scope_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateAPIScopeRequest(BaseModel):
+ """
+ UpdateAPIScopeRequest
+ """ # noqa: E501
+ description: Optional[StrictStr] = Field(default=None, description="Description of the api scope purpose.")
+ __properties: ClassVar[List[str]] = ["description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateAPIScopeRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateAPIScopeRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_application_request.py b/kinde_sdk/models/update_application_request.py
new file mode 100644
index 00000000..1233486b
--- /dev/null
+++ b/kinde_sdk/models/update_application_request.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateApplicationRequest(BaseModel):
+ """
+ UpdateApplicationRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The application's name.")
+ language_key: Optional[StrictStr] = Field(default=None, description="The application's language key.")
+ logout_uris: Optional[List[StrictStr]] = Field(default=None, description="The application's logout uris.")
+ redirect_uris: Optional[List[StrictStr]] = Field(default=None, description="The application's redirect uris.")
+ login_uri: Optional[StrictStr] = Field(default=None, description="The default login route for resolving session issues.")
+ homepage_uri: Optional[StrictStr] = Field(default=None, description="The homepage link to your application.")
+ __properties: ClassVar[List[str]] = ["name", "language_key", "logout_uris", "redirect_uris", "login_uri", "homepage_uri"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateApplicationRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateApplicationRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "language_key": obj.get("language_key"),
+ "logout_uris": obj.get("logout_uris"),
+ "redirect_uris": obj.get("redirect_uris"),
+ "login_uri": obj.get("login_uri"),
+ "homepage_uri": obj.get("homepage_uri")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_application_tokens_request.py b/kinde_sdk/models/update_application_tokens_request.py
new file mode 100644
index 00000000..8a44f1f7
--- /dev/null
+++ b/kinde_sdk/models/update_application_tokens_request.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateApplicationTokensRequest(BaseModel):
+ """
+ UpdateApplicationTokensRequest
+ """ # noqa: E501
+ access_token_lifetime: Optional[StrictInt] = Field(default=None, description="The lifetime of an access token in seconds.")
+ refresh_token_lifetime: Optional[StrictInt] = Field(default=None, description="The lifetime of a refresh token in seconds.")
+ id_token_lifetime: Optional[StrictInt] = Field(default=None, description="The lifetime of an ID token in seconds.")
+ authenticated_session_lifetime: Optional[StrictInt] = Field(default=None, description="The lifetime of an authenticated session in seconds.")
+ is_hasura_mapping_enabled: Optional[StrictBool] = Field(default=None, description="Enable or disable Hasura mapping.")
+ __properties: ClassVar[List[str]] = ["access_token_lifetime", "refresh_token_lifetime", "id_token_lifetime", "authenticated_session_lifetime", "is_hasura_mapping_enabled"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateApplicationTokensRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateApplicationTokensRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "access_token_lifetime": obj.get("access_token_lifetime"),
+ "refresh_token_lifetime": obj.get("refresh_token_lifetime"),
+ "id_token_lifetime": obj.get("id_token_lifetime"),
+ "authenticated_session_lifetime": obj.get("authenticated_session_lifetime"),
+ "is_hasura_mapping_enabled": obj.get("is_hasura_mapping_enabled")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_applications_property_request.py b/kinde_sdk/models/update_applications_property_request.py
new file mode 100644
index 00000000..15ac6e2b
--- /dev/null
+++ b/kinde_sdk/models/update_applications_property_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from kinde_sdk.models.update_applications_property_request_value import UpdateApplicationsPropertyRequestValue
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateApplicationsPropertyRequest(BaseModel):
+ """
+ UpdateApplicationsPropertyRequest
+ """ # noqa: E501
+ value: UpdateApplicationsPropertyRequestValue
+ __properties: ClassVar[List[str]] = ["value"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateApplicationsPropertyRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of value
+ if self.value:
+ _dict['value'] = self.value.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateApplicationsPropertyRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "value": UpdateApplicationsPropertyRequestValue.from_dict(obj["value"]) if obj.get("value") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_applications_property_request_value.py b/kinde_sdk/models/update_applications_property_request_value.py
new file mode 100644
index 00000000..70a03dcb
--- /dev/null
+++ b/kinde_sdk/models/update_applications_property_request_value.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+UPDATEAPPLICATIONSPROPERTYREQUESTVALUE_ONE_OF_SCHEMAS = ["bool", "str"]
+
+class UpdateApplicationsPropertyRequestValue(BaseModel):
+ """
+ The new value for the property
+ """
+ # data type: str
+ oneof_schema_1_validator: Optional[StrictStr] = None
+ # data type: bool
+ oneof_schema_2_validator: Optional[StrictBool] = None
+ actual_instance: Optional[Union[bool, str]] = None
+ one_of_schemas: Set[str] = { "bool", "str" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = UpdateApplicationsPropertyRequestValue.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: str
+ try:
+ instance.oneof_schema_1_validator = v
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # validate data type: bool
+ try:
+ instance.oneof_schema_2_validator = v
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in UpdateApplicationsPropertyRequestValue with oneOf schemas: bool, str. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in UpdateApplicationsPropertyRequestValue with oneOf schemas: bool, str. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into str
+ try:
+ # validation
+ instance.oneof_schema_1_validator = json.loads(json_str)
+ # assign value to actual_instance
+ instance.actual_instance = instance.oneof_schema_1_validator
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into bool
+ try:
+ # validation
+ instance.oneof_schema_2_validator = json.loads(json_str)
+ # assign value to actual_instance
+ instance.actual_instance = instance.oneof_schema_2_validator
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into UpdateApplicationsPropertyRequestValue with oneOf schemas: bool, str. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into UpdateApplicationsPropertyRequestValue with oneOf schemas: bool, str. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], bool, str]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/kinde_sdk/models/update_business_request.py b/kinde_sdk/models/update_business_request.py
new file mode 100644
index 00000000..97ca041e
--- /dev/null
+++ b/kinde_sdk/models/update_business_request.py
@@ -0,0 +1,156 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateBusinessRequest(BaseModel):
+ """
+ UpdateBusinessRequest
+ """ # noqa: E501
+ business_name: Optional[StrictStr] = Field(default=None, description="The name of the business.")
+ email: Optional[StrictStr] = Field(default=None, description="The email address of the business.")
+ industry_key: Optional[StrictStr] = Field(default=None, description="The key of the industry of your business. Can be retrieved from the /industries endpoint.")
+ is_click_wrap: Optional[StrictBool] = Field(default=None, description="Whether the business is using clickwrap agreements.")
+ is_show_kinde_branding: Optional[StrictBool] = Field(default=None, description="Whether the business is showing Kinde branding. Requires a paid plan.")
+ kinde_perk_code: Optional[StrictStr] = Field(default=None, description="The Kinde perk code for the business.")
+ phone: Optional[StrictStr] = Field(default=None, description="The phone number of the business.")
+ privacy_url: Optional[StrictStr] = Field(default=None, description="The URL to the business's privacy policy.")
+ terms_url: Optional[StrictStr] = Field(default=None, description="The URL to the business's terms of service.")
+ timezone_key: Optional[StrictStr] = Field(default=None, description="The key of the timezone of your business. Can be retrieved from the /timezones endpoint.")
+ __properties: ClassVar[List[str]] = ["business_name", "email", "industry_key", "is_click_wrap", "is_show_kinde_branding", "kinde_perk_code", "phone", "privacy_url", "terms_url", "timezone_key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateBusinessRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if business_name (nullable) is None
+ # and model_fields_set contains the field
+ if self.business_name is None and "business_name" in self.model_fields_set:
+ _dict['business_name'] = None
+
+ # set to None if email (nullable) is None
+ # and model_fields_set contains the field
+ if self.email is None and "email" in self.model_fields_set:
+ _dict['email'] = None
+
+ # set to None if industry_key (nullable) is None
+ # and model_fields_set contains the field
+ if self.industry_key is None and "industry_key" in self.model_fields_set:
+ _dict['industry_key'] = None
+
+ # set to None if is_click_wrap (nullable) is None
+ # and model_fields_set contains the field
+ if self.is_click_wrap is None and "is_click_wrap" in self.model_fields_set:
+ _dict['is_click_wrap'] = None
+
+ # set to None if is_show_kinde_branding (nullable) is None
+ # and model_fields_set contains the field
+ if self.is_show_kinde_branding is None and "is_show_kinde_branding" in self.model_fields_set:
+ _dict['is_show_kinde_branding'] = None
+
+ # set to None if kinde_perk_code (nullable) is None
+ # and model_fields_set contains the field
+ if self.kinde_perk_code is None and "kinde_perk_code" in self.model_fields_set:
+ _dict['kinde_perk_code'] = None
+
+ # set to None if phone (nullable) is None
+ # and model_fields_set contains the field
+ if self.phone is None and "phone" in self.model_fields_set:
+ _dict['phone'] = None
+
+ # set to None if privacy_url (nullable) is None
+ # and model_fields_set contains the field
+ if self.privacy_url is None and "privacy_url" in self.model_fields_set:
+ _dict['privacy_url'] = None
+
+ # set to None if terms_url (nullable) is None
+ # and model_fields_set contains the field
+ if self.terms_url is None and "terms_url" in self.model_fields_set:
+ _dict['terms_url'] = None
+
+ # set to None if timezone_key (nullable) is None
+ # and model_fields_set contains the field
+ if self.timezone_key is None and "timezone_key" in self.model_fields_set:
+ _dict['timezone_key'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateBusinessRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "business_name": obj.get("business_name"),
+ "email": obj.get("email"),
+ "industry_key": obj.get("industry_key"),
+ "is_click_wrap": obj.get("is_click_wrap"),
+ "is_show_kinde_branding": obj.get("is_show_kinde_branding"),
+ "kinde_perk_code": obj.get("kinde_perk_code"),
+ "phone": obj.get("phone"),
+ "privacy_url": obj.get("privacy_url"),
+ "terms_url": obj.get("terms_url"),
+ "timezone_key": obj.get("timezone_key")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_category_request.py b/kinde_sdk/models/update_category_request.py
new file mode 100644
index 00000000..b051cdc9
--- /dev/null
+++ b/kinde_sdk/models/update_category_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateCategoryRequest(BaseModel):
+ """
+ UpdateCategoryRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The name of the category.")
+ __properties: ClassVar[List[str]] = ["name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateCategoryRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateCategoryRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_connection_request.py b/kinde_sdk/models/update_connection_request.py
new file mode 100644
index 00000000..63d9ec82
--- /dev/null
+++ b/kinde_sdk/models/update_connection_request.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.replace_connection_request_options import ReplaceConnectionRequestOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateConnectionRequest(BaseModel):
+ """
+ UpdateConnectionRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The internal name of the connection.")
+ display_name: Optional[StrictStr] = Field(default=None, description="The public facing name of the connection.")
+ enabled_applications: Optional[List[StrictStr]] = Field(default=None, description="Client IDs of applications in which this connection is to be enabled.")
+ options: Optional[ReplaceConnectionRequestOptions] = None
+ __properties: ClassVar[List[str]] = ["name", "display_name", "enabled_applications", "options"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateConnectionRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateConnectionRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "display_name": obj.get("display_name"),
+ "enabled_applications": obj.get("enabled_applications"),
+ "options": ReplaceConnectionRequestOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_environement_feature_flag_override_request.py b/kinde_sdk/models/update_environement_feature_flag_override_request.py
new file mode 100644
index 00000000..18b65629
--- /dev/null
+++ b/kinde_sdk/models/update_environement_feature_flag_override_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateEnvironementFeatureFlagOverrideRequest(BaseModel):
+ """
+ UpdateEnvironementFeatureFlagOverrideRequest
+ """ # noqa: E501
+ value: StrictStr = Field(description="The flag override value.")
+ __properties: ClassVar[List[str]] = ["value"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateEnvironementFeatureFlagOverrideRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateEnvironementFeatureFlagOverrideRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_environment_variable_request.py b/kinde_sdk/models/update_environment_variable_request.py
new file mode 100644
index 00000000..17a287fd
--- /dev/null
+++ b/kinde_sdk/models/update_environment_variable_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateEnvironmentVariableRequest(BaseModel):
+ """
+ UpdateEnvironmentVariableRequest
+ """ # noqa: E501
+ key: Optional[StrictStr] = Field(default=None, description="The key to update.")
+ value: Optional[StrictStr] = Field(default=None, description="The new value for the environment variable.")
+ is_secret: Optional[StrictBool] = Field(default=None, description="Whether the environment variable is sensitive. Secret variables are not-readable by you or your team after creation.")
+ __properties: ClassVar[List[str]] = ["key", "value", "is_secret"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateEnvironmentVariableRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateEnvironmentVariableRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "key": obj.get("key"),
+ "value": obj.get("value"),
+ "is_secret": obj.get("is_secret")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_environment_variable_response.py b/kinde_sdk/models/update_environment_variable_response.py
new file mode 100644
index 00000000..e2dda30b
--- /dev/null
+++ b/kinde_sdk/models/update_environment_variable_response.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateEnvironmentVariableResponse(BaseModel):
+ """
+ UpdateEnvironmentVariableResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = Field(default=None, description="A Kinde generated message.")
+ code: Optional[StrictStr] = Field(default=None, description="A Kinde generated status code.")
+ __properties: ClassVar[List[str]] = ["message", "code"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateEnvironmentVariableResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateEnvironmentVariableResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_identity_request.py b/kinde_sdk/models/update_identity_request.py
new file mode 100644
index 00000000..cf38b59b
--- /dev/null
+++ b/kinde_sdk/models/update_identity_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateIdentityRequest(BaseModel):
+ """
+ UpdateIdentityRequest
+ """ # noqa: E501
+ is_primary: Optional[StrictBool] = Field(default=None, description="Whether the identity is the primary for it's type")
+ __properties: ClassVar[List[str]] = ["is_primary"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateIdentityRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateIdentityRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "is_primary": obj.get("is_primary")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_organization_properties_request.py b/kinde_sdk/models/update_organization_properties_request.py
new file mode 100644
index 00000000..a84f6f70
--- /dev/null
+++ b/kinde_sdk/models/update_organization_properties_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationPropertiesRequest(BaseModel):
+ """
+ UpdateOrganizationPropertiesRequest
+ """ # noqa: E501
+ properties: Dict[str, Any] = Field(description="Property keys and values")
+ __properties: ClassVar[List[str]] = ["properties"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationPropertiesRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationPropertiesRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "properties": obj.get("properties")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_organization_request.py b/kinde_sdk/models/update_organization_request.py
new file mode 100644
index 00000000..c1dabb01
--- /dev/null
+++ b/kinde_sdk/models/update_organization_request.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationRequest(BaseModel):
+ """
+ UpdateOrganizationRequest
+ """ # noqa: E501
+ name: Optional[StrictStr] = Field(default=None, description="The organization's name.")
+ external_id: Optional[StrictStr] = Field(default=None, description="The organization's ID.")
+ background_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - background color.")
+ button_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - button color.")
+ button_text_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - button text color.")
+ link_color: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - link color.")
+ background_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode background color.")
+ button_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode button color.")
+ button_text_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode button text color.")
+ link_color_dark: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - dark mode link color.")
+ theme_code: Optional[StrictStr] = Field(default=None, description="The organization's brand settings - theme/mode.")
+ handle: Optional[StrictStr] = Field(default=None, description="The organization's handle.")
+ is_allow_registrations: Optional[StrictBool] = Field(default=None, description="Deprecated - Use 'is_auto_membership_enabled' instead.")
+ is_auto_join_domain_list: Optional[StrictBool] = Field(default=None, description="Users can sign up to this organization.")
+ allowed_domains: Optional[List[StrictStr]] = Field(default=None, description="Domains allowed for self-sign up to this environment.")
+ is_enable_advanced_orgs: Optional[StrictBool] = Field(default=None, description="Activate advanced organization features.")
+ is_enforce_mfa: Optional[StrictBool] = Field(default=None, description="Enforce MFA for all users in this organization.")
+ sender_name: Optional[StrictStr] = Field(default=None, description="The name of the organization that will be used in emails")
+ sender_email: Optional[StrictStr] = Field(default=None, description="The email address that will be used in emails. Requires custom SMTP to be set up.")
+ __properties: ClassVar[List[str]] = ["name", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", "is_auto_join_domain_list", "allowed_domains", "is_enable_advanced_orgs", "is_enforce_mfa", "sender_name", "sender_email"]
+
+ @field_validator('theme_code')
+ def theme_code_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['light', 'dark', 'user_preference']):
+ raise ValueError("must be one of enum values ('light', 'dark', 'user_preference')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if sender_name (nullable) is None
+ # and model_fields_set contains the field
+ if self.sender_name is None and "sender_name" in self.model_fields_set:
+ _dict['sender_name'] = None
+
+ # set to None if sender_email (nullable) is None
+ # and model_fields_set contains the field
+ if self.sender_email is None and "sender_email" in self.model_fields_set:
+ _dict['sender_email'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "external_id": obj.get("external_id"),
+ "background_color": obj.get("background_color"),
+ "button_color": obj.get("button_color"),
+ "button_text_color": obj.get("button_text_color"),
+ "link_color": obj.get("link_color"),
+ "background_color_dark": obj.get("background_color_dark"),
+ "button_color_dark": obj.get("button_color_dark"),
+ "button_text_color_dark": obj.get("button_text_color_dark"),
+ "link_color_dark": obj.get("link_color_dark"),
+ "theme_code": obj.get("theme_code"),
+ "handle": obj.get("handle"),
+ "is_allow_registrations": obj.get("is_allow_registrations"),
+ "is_auto_join_domain_list": obj.get("is_auto_join_domain_list"),
+ "allowed_domains": obj.get("allowed_domains"),
+ "is_enable_advanced_orgs": obj.get("is_enable_advanced_orgs"),
+ "is_enforce_mfa": obj.get("is_enforce_mfa"),
+ "sender_name": obj.get("sender_name"),
+ "sender_email": obj.get("sender_email")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_organization_sessions_request.py b/kinde_sdk/models/update_organization_sessions_request.py
new file mode 100644
index 00000000..0c203370
--- /dev/null
+++ b/kinde_sdk/models/update_organization_sessions_request.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationSessionsRequest(BaseModel):
+ """
+ UpdateOrganizationSessionsRequest
+ """ # noqa: E501
+ is_use_org_sso_session_policy: Optional[StrictBool] = Field(default=None, description="Whether to use the organization's SSO session policy override.")
+ sso_session_persistence_mode: Optional[StrictStr] = Field(default=None, description="Determines if the session should be persistent or not.")
+ is_use_org_authenticated_session_lifetime: Optional[StrictBool] = Field(default=None, description="Whether to apply the organization's authenticated session lifetime override.")
+ authenticated_session_lifetime: Optional[StrictInt] = Field(default=None, description="Authenticated session lifetime in seconds.")
+ __properties: ClassVar[List[str]] = ["is_use_org_sso_session_policy", "sso_session_persistence_mode", "is_use_org_authenticated_session_lifetime", "authenticated_session_lifetime"]
+
+ @field_validator('sso_session_persistence_mode')
+ def sso_session_persistence_mode_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['persistent', 'non-persistent']):
+ raise ValueError("must be one of enum values ('persistent', 'non-persistent')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationSessionsRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationSessionsRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "is_use_org_sso_session_policy": obj.get("is_use_org_sso_session_policy"),
+ "sso_session_persistence_mode": obj.get("sso_session_persistence_mode"),
+ "is_use_org_authenticated_session_lifetime": obj.get("is_use_org_authenticated_session_lifetime"),
+ "authenticated_session_lifetime": obj.get("authenticated_session_lifetime")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_organization_users_request.py b/kinde_sdk/models/update_organization_users_request.py
new file mode 100644
index 00000000..4ebf3d59
--- /dev/null
+++ b/kinde_sdk/models/update_organization_users_request.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.update_organization_users_request_users_inner import UpdateOrganizationUsersRequestUsersInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationUsersRequest(BaseModel):
+ """
+ UpdateOrganizationUsersRequest
+ """ # noqa: E501
+ users: Optional[List[UpdateOrganizationUsersRequestUsersInner]] = Field(default=None, description="Users to add, update or remove from the organization.")
+ __properties: ClassVar[List[str]] = ["users"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationUsersRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in users (list)
+ _items = []
+ if self.users:
+ for _item_users in self.users:
+ if _item_users:
+ _items.append(_item_users.to_dict())
+ _dict['users'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationUsersRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "users": [UpdateOrganizationUsersRequestUsersInner.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_organization_users_request_users_inner.py b/kinde_sdk/models/update_organization_users_request_users_inner.py
new file mode 100644
index 00000000..efe1ffcf
--- /dev/null
+++ b/kinde_sdk/models/update_organization_users_request_users_inner.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationUsersRequestUsersInner(BaseModel):
+ """
+ UpdateOrganizationUsersRequestUsersInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The users id.")
+ operation: Optional[StrictStr] = Field(default=None, description="Optional operation, set to 'delete' to remove the user from the organization.")
+ roles: Optional[List[StrictStr]] = Field(default=None, description="Role keys to assign to the user.")
+ permissions: Optional[List[StrictStr]] = Field(default=None, description="Permission keys to assign to the user.")
+ __properties: ClassVar[List[str]] = ["id", "operation", "roles", "permissions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationUsersRequestUsersInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationUsersRequestUsersInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "operation": obj.get("operation"),
+ "roles": obj.get("roles"),
+ "permissions": obj.get("permissions")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_organization_users_response.py b/kinde_sdk/models/update_organization_users_response.py
new file mode 100644
index 00000000..4ed6b82e
--- /dev/null
+++ b/kinde_sdk/models/update_organization_users_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationUsersResponse(BaseModel):
+ """
+ UpdateOrganizationUsersResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ users_added: Optional[List[StrictStr]] = None
+ users_updated: Optional[List[StrictStr]] = None
+ users_removed: Optional[List[StrictStr]] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "users_added", "users_updated", "users_removed"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationUsersResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationUsersResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "users_added": obj.get("users_added"),
+ "users_updated": obj.get("users_updated"),
+ "users_removed": obj.get("users_removed")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_property_request.py b/kinde_sdk/models/update_property_request.py
new file mode 100644
index 00000000..0b07cb54
--- /dev/null
+++ b/kinde_sdk/models/update_property_request.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdatePropertyRequest(BaseModel):
+ """
+ UpdatePropertyRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The name of the property.")
+ description: Optional[StrictStr] = Field(default=None, description="Description of the property purpose.")
+ is_private: StrictBool = Field(description="Whether the property can be included in id and access tokens.")
+ category_id: StrictStr = Field(description="Which category the property belongs to.")
+ __properties: ClassVar[List[str]] = ["name", "description", "is_private", "category_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdatePropertyRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdatePropertyRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "is_private": obj.get("is_private"),
+ "category_id": obj.get("category_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_role_permissions_request.py b/kinde_sdk/models/update_role_permissions_request.py
new file mode 100644
index 00000000..f34e887f
--- /dev/null
+++ b/kinde_sdk/models/update_role_permissions_request.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.update_role_permissions_request_permissions_inner import UpdateRolePermissionsRequestPermissionsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateRolePermissionsRequest(BaseModel):
+ """
+ UpdateRolePermissionsRequest
+ """ # noqa: E501
+ permissions: Optional[List[UpdateRolePermissionsRequestPermissionsInner]] = Field(default=None, description="Permissions to add or remove from the role.")
+ __properties: ClassVar[List[str]] = ["permissions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateRolePermissionsRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in permissions (list)
+ _items = []
+ if self.permissions:
+ for _item_permissions in self.permissions:
+ if _item_permissions:
+ _items.append(_item_permissions.to_dict())
+ _dict['permissions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateRolePermissionsRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "permissions": [UpdateRolePermissionsRequestPermissionsInner.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_role_permissions_request_permissions_inner.py b/kinde_sdk/models/update_role_permissions_request_permissions_inner.py
new file mode 100644
index 00000000..db69e3a8
--- /dev/null
+++ b/kinde_sdk/models/update_role_permissions_request_permissions_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateRolePermissionsRequestPermissionsInner(BaseModel):
+ """
+ UpdateRolePermissionsRequestPermissionsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="The permission id.")
+ operation: Optional[StrictStr] = Field(default=None, description="Optional operation, set to 'delete' to remove the permission from the role.")
+ __properties: ClassVar[List[str]] = ["id", "operation"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateRolePermissionsRequestPermissionsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateRolePermissionsRequestPermissionsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "operation": obj.get("operation")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_role_permissions_response.py b/kinde_sdk/models/update_role_permissions_response.py
new file mode 100644
index 00000000..f56803ae
--- /dev/null
+++ b/kinde_sdk/models/update_role_permissions_response.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateRolePermissionsResponse(BaseModel):
+ """
+ UpdateRolePermissionsResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = None
+ message: Optional[StrictStr] = None
+ permissions_added: Optional[List[StrictStr]] = None
+ permissions_removed: Optional[List[StrictStr]] = None
+ __properties: ClassVar[List[str]] = ["code", "message", "permissions_added", "permissions_removed"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateRolePermissionsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateRolePermissionsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "permissions_added": obj.get("permissions_added"),
+ "permissions_removed": obj.get("permissions_removed")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_roles_request.py b/kinde_sdk/models/update_roles_request.py
new file mode 100644
index 00000000..c27b3d83
--- /dev/null
+++ b/kinde_sdk/models/update_roles_request.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateRolesRequest(BaseModel):
+ """
+ UpdateRolesRequest
+ """ # noqa: E501
+ name: StrictStr = Field(description="The role's name.")
+ description: Optional[StrictStr] = Field(default=None, description="The role's description.")
+ key: StrictStr = Field(description="The role identifier to use in code.")
+ is_default_role: Optional[StrictBool] = Field(default=None, description="Set role as default for new users.")
+ __properties: ClassVar[List[str]] = ["name", "description", "key", "is_default_role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateRolesRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateRolesRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "description": obj.get("description"),
+ "key": obj.get("key"),
+ "is_default_role": obj.get("is_default_role")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_user_request.py b/kinde_sdk/models/update_user_request.py
new file mode 100644
index 00000000..8080695a
--- /dev/null
+++ b/kinde_sdk/models/update_user_request.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateUserRequest(BaseModel):
+ """
+ UpdateUserRequest
+ """ # noqa: E501
+ given_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ family_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ picture: Optional[StrictStr] = Field(default=None, description="The user's profile picture.")
+ is_suspended: Optional[StrictBool] = Field(default=None, description="Whether the user is currently suspended or not.")
+ is_password_reset_requested: Optional[StrictBool] = Field(default=None, description="Prompt the user to change their password on next sign in.")
+ provided_id: Optional[StrictStr] = Field(default=None, description="An external id to reference the user.")
+ __properties: ClassVar[List[str]] = ["given_name", "family_name", "picture", "is_suspended", "is_password_reset_requested", "provided_id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateUserRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateUserRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "given_name": obj.get("given_name"),
+ "family_name": obj.get("family_name"),
+ "picture": obj.get("picture"),
+ "is_suspended": obj.get("is_suspended"),
+ "is_password_reset_requested": obj.get("is_password_reset_requested"),
+ "provided_id": obj.get("provided_id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_user_response.py b/kinde_sdk/models/update_user_response.py
new file mode 100644
index 00000000..cde0c725
--- /dev/null
+++ b/kinde_sdk/models/update_user_response.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateUserResponse(BaseModel):
+ """
+ UpdateUserResponse
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde.")
+ given_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ family_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ email: Optional[StrictStr] = Field(default=None, description="User's preferred email.")
+ is_suspended: Optional[StrictBool] = Field(default=None, description="Whether the user is currently suspended or not.")
+ is_password_reset_requested: Optional[StrictBool] = Field(default=None, description="Whether a password reset has been requested.")
+ picture: Optional[StrictStr] = Field(default=None, description="User's profile picture URL.")
+ __properties: ClassVar[List[str]] = ["id", "given_name", "family_name", "email", "is_suspended", "is_password_reset_requested", "picture"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateUserResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if picture (nullable) is None
+ # and model_fields_set contains the field
+ if self.picture is None and "picture" in self.model_fields_set:
+ _dict['picture'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateUserResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "given_name": obj.get("given_name"),
+ "family_name": obj.get("family_name"),
+ "email": obj.get("email"),
+ "is_suspended": obj.get("is_suspended"),
+ "is_password_reset_requested": obj.get("is_password_reset_requested"),
+ "picture": obj.get("picture")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_web_hook_request.py b/kinde_sdk/models/update_web_hook_request.py
new file mode 100644
index 00000000..a9f93199
--- /dev/null
+++ b/kinde_sdk/models/update_web_hook_request.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateWebHookRequest(BaseModel):
+ """
+ UpdateWebHookRequest
+ """ # noqa: E501
+ event_types: Optional[List[StrictStr]] = Field(default=None, description="Array of event type keys")
+ name: Optional[StrictStr] = Field(default=None, description="The webhook name")
+ description: Optional[StrictStr] = Field(default=None, description="The webhook description")
+ __properties: ClassVar[List[str]] = ["event_types", "name", "description"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateWebHookRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if description (nullable) is None
+ # and model_fields_set contains the field
+ if self.description is None and "description" in self.model_fields_set:
+ _dict['description'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateWebHookRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "event_types": obj.get("event_types"),
+ "name": obj.get("name"),
+ "description": obj.get("description")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_webhook_response.py b/kinde_sdk/models/update_webhook_response.py
new file mode 100644
index 00000000..d4c65f22
--- /dev/null
+++ b/kinde_sdk/models/update_webhook_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.update_webhook_response_webhook import UpdateWebhookResponseWebhook
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateWebhookResponse(BaseModel):
+ """
+ UpdateWebhookResponse
+ """ # noqa: E501
+ message: Optional[StrictStr] = None
+ code: Optional[StrictStr] = None
+ webhook: Optional[UpdateWebhookResponseWebhook] = None
+ __properties: ClassVar[List[str]] = ["message", "code", "webhook"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateWebhookResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of webhook
+ if self.webhook:
+ _dict['webhook'] = self.webhook.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateWebhookResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "message": obj.get("message"),
+ "code": obj.get("code"),
+ "webhook": UpdateWebhookResponseWebhook.from_dict(obj["webhook"]) if obj.get("webhook") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/update_webhook_response_webhook.py b/kinde_sdk/models/update_webhook_response_webhook.py
new file mode 100644
index 00000000..8de5aded
--- /dev/null
+++ b/kinde_sdk/models/update_webhook_response_webhook.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateWebhookResponseWebhook(BaseModel):
+ """
+ UpdateWebhookResponseWebhook
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateWebhookResponseWebhook from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateWebhookResponseWebhook from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/user.py b/kinde_sdk/models/user.py
new file mode 100644
index 00000000..c4bb48fc
--- /dev/null
+++ b/kinde_sdk/models/user.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class User(BaseModel):
+ """
+ User
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde.")
+ provided_id: Optional[StrictStr] = Field(default=None, description="External ID for user.")
+ preferred_email: Optional[StrictStr] = Field(default=None, description="Default email address of the user in Kinde.")
+ phone: Optional[StrictStr] = Field(default=None, description="User's primary phone number.")
+ username: Optional[StrictStr] = Field(default=None, description="Primary username of the user in Kinde.")
+ last_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ first_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ is_suspended: Optional[StrictBool] = Field(default=None, description="Whether the user is currently suspended or not.")
+ picture: Optional[StrictStr] = Field(default=None, description="User's profile picture URL.")
+ total_sign_ins: Optional[StrictInt] = Field(default=None, description="Total number of user sign ins.")
+ failed_sign_ins: Optional[StrictInt] = Field(default=None, description="Number of consecutive failed user sign ins.")
+ last_signed_in: Optional[StrictStr] = Field(default=None, description="Last sign in date in ISO 8601 format.")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of user creation in ISO 8601 format.")
+ organizations: Optional[List[StrictStr]] = Field(default=None, description="Array of organizations a user belongs to.")
+ identities: Optional[List[UserIdentitiesInner]] = Field(default=None, description="Array of identities belonging to the user.")
+ __properties: ClassVar[List[str]] = ["id", "provided_id", "preferred_email", "phone", "username", "last_name", "first_name", "is_suspended", "picture", "total_sign_ins", "failed_sign_ins", "last_signed_in", "created_on", "organizations", "identities"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of User from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in identities (list)
+ _items = []
+ if self.identities:
+ for _item_identities in self.identities:
+ if _item_identities:
+ _items.append(_item_identities.to_dict())
+ _dict['identities'] = _items
+ # set to None if total_sign_ins (nullable) is None
+ # and model_fields_set contains the field
+ if self.total_sign_ins is None and "total_sign_ins" in self.model_fields_set:
+ _dict['total_sign_ins'] = None
+
+ # set to None if failed_sign_ins (nullable) is None
+ # and model_fields_set contains the field
+ if self.failed_sign_ins is None and "failed_sign_ins" in self.model_fields_set:
+ _dict['failed_sign_ins'] = None
+
+ # set to None if last_signed_in (nullable) is None
+ # and model_fields_set contains the field
+ if self.last_signed_in is None and "last_signed_in" in self.model_fields_set:
+ _dict['last_signed_in'] = None
+
+ # set to None if created_on (nullable) is None
+ # and model_fields_set contains the field
+ if self.created_on is None and "created_on" in self.model_fields_set:
+ _dict['created_on'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of User from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "provided_id": obj.get("provided_id"),
+ "preferred_email": obj.get("preferred_email"),
+ "phone": obj.get("phone"),
+ "username": obj.get("username"),
+ "last_name": obj.get("last_name"),
+ "first_name": obj.get("first_name"),
+ "is_suspended": obj.get("is_suspended"),
+ "picture": obj.get("picture"),
+ "total_sign_ins": obj.get("total_sign_ins"),
+ "failed_sign_ins": obj.get("failed_sign_ins"),
+ "last_signed_in": obj.get("last_signed_in"),
+ "created_on": obj.get("created_on"),
+ "organizations": obj.get("organizations"),
+ "identities": [UserIdentitiesInner.from_dict(_item) for _item in obj["identities"]] if obj.get("identities") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/user_identities_inner.py b/kinde_sdk/models/user_identities_inner.py
new file mode 100644
index 00000000..53e02232
--- /dev/null
+++ b/kinde_sdk/models/user_identities_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UserIdentitiesInner(BaseModel):
+ """
+ UserIdentitiesInner
+ """ # noqa: E501
+ type: Optional[StrictStr] = None
+ identity: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["type", "identity"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UserIdentitiesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UserIdentitiesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "identity": obj.get("identity")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/user_identity.py b/kinde_sdk/models/user_identity.py
new file mode 100644
index 00000000..d7f095bf
--- /dev/null
+++ b/kinde_sdk/models/user_identity.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.user_identity_result import UserIdentityResult
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UserIdentity(BaseModel):
+ """
+ UserIdentity
+ """ # noqa: E501
+ type: Optional[StrictStr] = Field(default=None, description="The type of identity object created.")
+ result: Optional[UserIdentityResult] = None
+ __properties: ClassVar[List[str]] = ["type", "result"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UserIdentity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UserIdentity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "result": UserIdentityResult.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/user_identity_result.py b/kinde_sdk/models/user_identity_result.py
new file mode 100644
index 00000000..b8db2d5d
--- /dev/null
+++ b/kinde_sdk/models/user_identity_result.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UserIdentityResult(BaseModel):
+ """
+ The result of the user creation operation.
+ """ # noqa: E501
+ created: Optional[StrictBool] = Field(default=None, description="True if the user identity was successfully created.")
+ __properties: ClassVar[List[str]] = ["created"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UserIdentityResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UserIdentityResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "created": obj.get("created")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/user_profile_v2.py b/kinde_sdk/models/user_profile_v2.py
new file mode 100644
index 00000000..7114a746
--- /dev/null
+++ b/kinde_sdk/models/user_profile_v2.py
@@ -0,0 +1,123 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UserProfileV2(BaseModel):
+ """
+ UserProfileV2
+ """ # noqa: E501
+ sub: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde.")
+ provided_id: Optional[StrictStr] = Field(default=None, description="Value of the user's ID in a third-party system when the user is imported into Kinde.")
+ name: Optional[StrictStr] = Field(default=None, description="User's first and last name separated by a space.")
+ given_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ family_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ updated_at: Optional[StrictInt] = Field(default=None, description="Date the user was last updated at (In Unix time).")
+ email: Optional[StrictStr] = Field(default=None, description="User's email address if available.")
+ email_verified: Optional[StrictBool] = Field(default=None, description="Whether the user's email address has been verified.")
+ picture: Optional[StrictStr] = Field(default=None, description="URL that point's to the user's picture or avatar")
+ preferred_username: Optional[StrictStr] = Field(default=None, description="User's preferred username.")
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde")
+ __properties: ClassVar[List[str]] = ["sub", "provided_id", "name", "given_name", "family_name", "updated_at", "email", "email_verified", "picture", "preferred_username", "id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UserProfileV2 from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if provided_id (nullable) is None
+ # and model_fields_set contains the field
+ if self.provided_id is None and "provided_id" in self.model_fields_set:
+ _dict['provided_id'] = None
+
+ # set to None if picture (nullable) is None
+ # and model_fields_set contains the field
+ if self.picture is None and "picture" in self.model_fields_set:
+ _dict['picture'] = None
+
+ # set to None if preferred_username (nullable) is None
+ # and model_fields_set contains the field
+ if self.preferred_username is None and "preferred_username" in self.model_fields_set:
+ _dict['preferred_username'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UserProfileV2 from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "sub": obj.get("sub"),
+ "provided_id": obj.get("provided_id"),
+ "name": obj.get("name"),
+ "given_name": obj.get("given_name"),
+ "family_name": obj.get("family_name"),
+ "updated_at": obj.get("updated_at"),
+ "email": obj.get("email"),
+ "email_verified": obj.get("email_verified"),
+ "picture": obj.get("picture"),
+ "preferred_username": obj.get("preferred_username"),
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/users_response.py b/kinde_sdk/models/users_response.py
new file mode 100644
index 00000000..52400bf6
--- /dev/null
+++ b/kinde_sdk/models/users_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.users_response_users_inner import UsersResponseUsersInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UsersResponse(BaseModel):
+ """
+ UsersResponse
+ """ # noqa: E501
+ code: Optional[StrictStr] = Field(default=None, description="Response code.")
+ message: Optional[StrictStr] = Field(default=None, description="Response message.")
+ users: Optional[List[UsersResponseUsersInner]] = None
+ next_token: Optional[StrictStr] = Field(default=None, description="Pagination token.")
+ __properties: ClassVar[List[str]] = ["code", "message", "users", "next_token"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UsersResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in users (list)
+ _items = []
+ if self.users:
+ for _item_users in self.users:
+ if _item_users:
+ _items.append(_item_users.to_dict())
+ _dict['users'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UsersResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "code": obj.get("code"),
+ "message": obj.get("message"),
+ "users": [UsersResponseUsersInner.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
+ "next_token": obj.get("next_token")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/users_response_users_inner.py b/kinde_sdk/models/users_response_users_inner.py
new file mode 100644
index 00000000..037ee239
--- /dev/null
+++ b/kinde_sdk/models/users_response_users_inner.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UsersResponseUsersInner(BaseModel):
+ """
+ UsersResponseUsersInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = Field(default=None, description="Unique ID of the user in Kinde.")
+ provided_id: Optional[StrictStr] = Field(default=None, description="External ID for user.")
+ email: Optional[StrictStr] = Field(default=None, description="Default email address of the user in Kinde.")
+ phone: Optional[StrictStr] = Field(default=None, description="User's primary phone number.")
+ username: Optional[StrictStr] = Field(default=None, description="Primary username of the user in Kinde.")
+ last_name: Optional[StrictStr] = Field(default=None, description="User's last name.")
+ first_name: Optional[StrictStr] = Field(default=None, description="User's first name.")
+ is_suspended: Optional[StrictBool] = Field(default=None, description="Whether the user is currently suspended or not.")
+ picture: Optional[StrictStr] = Field(default=None, description="User's profile picture URL.")
+ total_sign_ins: Optional[StrictInt] = Field(default=None, description="Total number of user sign ins.")
+ failed_sign_ins: Optional[StrictInt] = Field(default=None, description="Number of consecutive failed user sign ins.")
+ last_signed_in: Optional[StrictStr] = Field(default=None, description="Last sign in date in ISO 8601 format.")
+ created_on: Optional[StrictStr] = Field(default=None, description="Date of user creation in ISO 8601 format.")
+ organizations: Optional[List[StrictStr]] = Field(default=None, description="Array of organizations a user belongs to.")
+ identities: Optional[List[UserIdentitiesInner]] = Field(default=None, description="Array of identities belonging to the user.")
+ __properties: ClassVar[List[str]] = ["id", "provided_id", "email", "phone", "username", "last_name", "first_name", "is_suspended", "picture", "total_sign_ins", "failed_sign_ins", "last_signed_in", "created_on", "organizations", "identities"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UsersResponseUsersInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in identities (list)
+ _items = []
+ if self.identities:
+ for _item_identities in self.identities:
+ if _item_identities:
+ _items.append(_item_identities.to_dict())
+ _dict['identities'] = _items
+ # set to None if total_sign_ins (nullable) is None
+ # and model_fields_set contains the field
+ if self.total_sign_ins is None and "total_sign_ins" in self.model_fields_set:
+ _dict['total_sign_ins'] = None
+
+ # set to None if failed_sign_ins (nullable) is None
+ # and model_fields_set contains the field
+ if self.failed_sign_ins is None and "failed_sign_ins" in self.model_fields_set:
+ _dict['failed_sign_ins'] = None
+
+ # set to None if last_signed_in (nullable) is None
+ # and model_fields_set contains the field
+ if self.last_signed_in is None and "last_signed_in" in self.model_fields_set:
+ _dict['last_signed_in'] = None
+
+ # set to None if created_on (nullable) is None
+ # and model_fields_set contains the field
+ if self.created_on is None and "created_on" in self.model_fields_set:
+ _dict['created_on'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UsersResponseUsersInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "provided_id": obj.get("provided_id"),
+ "email": obj.get("email"),
+ "phone": obj.get("phone"),
+ "username": obj.get("username"),
+ "last_name": obj.get("last_name"),
+ "first_name": obj.get("first_name"),
+ "is_suspended": obj.get("is_suspended"),
+ "picture": obj.get("picture"),
+ "total_sign_ins": obj.get("total_sign_ins"),
+ "failed_sign_ins": obj.get("failed_sign_ins"),
+ "last_signed_in": obj.get("last_signed_in"),
+ "created_on": obj.get("created_on"),
+ "organizations": obj.get("organizations"),
+ "identities": [UserIdentitiesInner.from_dict(_item) for _item in obj["identities"]] if obj.get("identities") is not None else None
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/models/webhook.py b/kinde_sdk/models/webhook.py
new file mode 100644
index 00000000..633c202f
--- /dev/null
+++ b/kinde_sdk/models/webhook.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Webhook(BaseModel):
+ """
+ Webhook
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ endpoint: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ event_types: Optional[List[StrictStr]] = None
+ created_on: Optional[StrictStr] = Field(default=None, description="Created on date in ISO 8601 format.")
+ __properties: ClassVar[List[str]] = ["id", "name", "endpoint", "description", "event_types", "created_on"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Webhook from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Webhook from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "endpoint": obj.get("endpoint"),
+ "description": obj.get("description"),
+ "event_types": obj.get("event_types"),
+ "created_on": obj.get("created_on")
+ })
+ return _obj
+
+
diff --git a/kinde_sdk/paths/__init__.py b/kinde_sdk/paths/__init__.py
deleted file mode 100644
index 68a0f0ef..00000000
--- a/kinde_sdk/paths/__init__.py
+++ /dev/null
@@ -1,70 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.apis.path_to_api import path_to_api
-
-import enum
-
-
-class PathValues(str, enum.Enum):
- OAUTH2_USER_PROFILE = "/oauth2/user_profile"
- OAUTH2_INTROSPECT = "/oauth2/introspect"
- OAUTH2_REVOKE = "/oauth2/revoke"
- OAUTH2_V2_USER_PROFILE = "/oauth2/v2/user_profile"
- API_V1_APIS = "/api/v1/apis"
- API_V1_APIS_API_ID = "/api/v1/apis/{api_id}"
- API_V1_APIS_API_ID_APPLICATIONS = "/api/v1/apis/{api_id}/applications"
- API_V1_APPLICATIONS = "/api/v1/applications"
- API_V1_APPLICATIONS_APPLICATION_ID = "/api/v1/applications/{application_id}"
- API_V1_APPLICATIONS_APPLICATION_ID_CONNECTIONS = "/api/v1/applications/{application_id}/connections"
- API_V1_APPLICATIONS_APPLICATION_ID_CONNECTIONS_CONNECTION_ID = "/api/v1/applications/{application_id}/connections/{connection_id}"
- API_V1_BUSINESS = "/api/v1/business"
- API_V1_INDUSTRIES = "/api/v1/industries"
- API_V1_TIMEZONES = "/api/v1/timezones"
- API_V1_APPLICATIONS_APP_ID_AUTH_REDIRECT_URLS = "/api/v1/applications/{app_id}/auth_redirect_urls"
- API_V1_APPLICATIONS_APP_ID_AUTH_LOGOUT_URLS = "/api/v1/applications/{app_id}/auth_logout_urls"
- API_V1_CONNECTED_APPS_AUTH_URL = "/api/v1/connected_apps/auth_url"
- API_V1_CONNECTED_APPS_TOKEN = "/api/v1/connected_apps/token"
- API_V1_CONNECTED_APPS_REVOKE = "/api/v1/connected_apps/revoke"
- API_V1_CONNECTIONS = "/api/v1/connections"
- API_V1_CONNECTIONS_CONNECTION_ID = "/api/v1/connections/{connection_id}"
- API_V1_ENVIRONMENT_FEATURE_FLAGS = "/api/v1/environment/feature_flags"
- API_V1_ENVIRONMENT_FEATURE_FLAGS_FEATURE_FLAG_KEY = "/api/v1/environment/feature_flags/{feature_flag_key}"
- API_V1_FEATURE_FLAGS = "/api/v1/feature_flags"
- API_V1_FEATURE_FLAGS_FEATURE_FLAG_KEY = "/api/v1/feature_flags/{feature_flag_key}"
- API_V1_ORGANIZATION = "/api/v1/organization"
- API_V1_ORGANIZATION_ORG_CODE = "/api/v1/organization/{org_code}"
- API_V1_ORGANIZATIONS = "/api/v1/organizations"
- API_V1_ORGANIZATIONS_ORG_CODE_USERS = "/api/v1/organizations/{org_code}/users"
- API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_ROLES = "/api/v1/organizations/{org_code}/users/{user_id}/roles"
- API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_ROLES_ROLE_ID = "/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}"
- API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_PERMISSIONS = "/api/v1/organizations/{org_code}/users/{user_id}/permissions"
- API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_PERMISSIONS_PERMISSION_ID = "/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}"
- API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID = "/api/v1/organizations/{org_code}/users/{user_id}"
- API_V1_ORGANIZATIONS_ORG_CODE_FEATURE_FLAGS = "/api/v1/organizations/{org_code}/feature_flags"
- API_V1_ORGANIZATIONS_ORG_CODE_FEATURE_FLAGS_FEATURE_FLAG_KEY = "/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}"
- API_V1_ORGANIZATIONS_ORG_CODE_PROPERTIES_PROPERTY_KEY = "/api/v1/organizations/{org_code}/properties/{property_key}"
- API_V1_ORGANIZATIONS_ORG_CODE_PROPERTIES = "/api/v1/organizations/{org_code}/properties"
- API_V1_ORGANIZATION_ORG_CODE_HANDLE = "/api/v1/organization/{org_code}/handle"
- API_V1_PERMISSIONS = "/api/v1/permissions"
- API_V1_PERMISSIONS_PERMISSION_ID = "/api/v1/permissions/{permission_id}"
- API_V1_PROPERTIES = "/api/v1/properties"
- API_V1_PROPERTIES_PROPERTY_ID = "/api/v1/properties/{property_id}"
- API_V1_PROPERTY_CATEGORIES = "/api/v1/property_categories"
- API_V1_PROPERTY_CATEGORIES_CATEGORY_ID = "/api/v1/property_categories/{category_id}"
- API_V1_ROLES = "/api/v1/roles"
- API_V1_ROLES_ROLE_ID_PERMISSIONS = "/api/v1/roles/{role_id}/permissions"
- API_V1_ROLES_ROLE_ID_PERMISSIONS_PERMISSION_ID = "/api/v1/roles/{role_id}/permissions/{permission_id}"
- API_V1_ROLES_ROLE_ID = "/api/v1/roles/{role_id}"
- API_V1_SUBSCRIBERS = "/api/v1/subscribers"
- API_V1_SUBSCRIBERS_SUBSCRIBER_ID = "/api/v1/subscribers/{subscriber_id}"
- API_V1_USERS = "/api/v1/users"
- API_V1_USERS_USER_ID_REFRESH_CLAIMS = "/api/v1/users/{user_id}/refresh_claims"
- API_V1_USER = "/api/v1/user"
- API_V1_USERS_USER_ID_FEATURE_FLAGS_FEATURE_FLAG_KEY = "/api/v1/users/{user_id}/feature_flags/{feature_flag_key}"
- API_V1_USERS_USER_ID_PROPERTIES_PROPERTY_KEY = "/api/v1/users/{user_id}/properties/{property_key}"
- API_V1_USERS_USER_ID_PROPERTIES = "/api/v1/users/{user_id}/properties"
- API_V1_USERS_USER_ID_PASSWORD = "/api/v1/users/{user_id}/password"
- API_V1_EVENTS_EVENT_ID = "/api/v1/events/{event_id}"
- API_V1_EVENT_TYPES = "/api/v1/event_types"
- API_V1_WEBHOOKS_WEBHOOK_ID = "/api/v1/webhooks/{webhook_id}"
- API_V1_WEBHOOKS = "/api/v1/webhooks"
diff --git a/kinde_sdk/paths/api_v1_apis/__init__.py b/kinde_sdk/paths/api_v1_apis/__init__.py
deleted file mode 100644
index 57d746a9..00000000
--- a/kinde_sdk/paths/api_v1_apis/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_apis import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APIS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_apis/get.py b/kinde_sdk/paths/api_v1_apis/get.py
deleted file mode 100644
index 3a6204ee..00000000
--- a/kinde_sdk/paths/api_v1_apis/get.py
+++ /dev/null
@@ -1,310 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.apis import Apis
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Apis
-SchemaFor200ResponseBodyApplicationJson = Apis
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_apis_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_apis_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_apis_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_apis_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List APIs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApis(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_apis(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_apis(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_apis(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_apis(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_apis_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_apis_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis/get.pyi b/kinde_sdk/paths/api_v1_apis/get.pyi
deleted file mode 100644
index 450f7dcb..00000000
--- a/kinde_sdk/paths/api_v1_apis/get.pyi
+++ /dev/null
@@ -1,299 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.apis import Apis
-from kinde_sdk.model.error_response import ErrorResponse
-
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Apis
-SchemaFor200ResponseBodyApplicationJson = Apis
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_apis_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_apis_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_apis_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_apis_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List APIs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApis(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_apis(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_apis(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_apis(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_apis(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_apis_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_apis_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis/post.py b/kinde_sdk/paths/api_v1_apis/post.py
deleted file mode 100644
index f4109cef..00000000
--- a/kinde_sdk/paths/api_v1_apis/post.py
+++ /dev/null
@@ -1,470 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "audience",
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
- audience = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "audience": audience,
- }
-
- audience: MetaOapg.properties.audience
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["audience"]) -> MetaOapg.properties.audience: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "audience", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["audience"]) -> MetaOapg.properties.audience: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "audience", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- audience: typing.Union[MetaOapg.properties.audience, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- audience=audience,
- name=name,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add APIs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddApis(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_apis_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_apis_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis/post.pyi b/kinde_sdk/paths/api_v1_apis/post.pyi
deleted file mode 100644
index 7e47218c..00000000
--- a/kinde_sdk/paths/api_v1_apis/post.pyi
+++ /dev/null
@@ -1,459 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "audience",
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
- audience = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "audience": audience,
- }
-
- audience: MetaOapg.properties.audience
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["audience"]) -> MetaOapg.properties.audience: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "audience", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["audience"]) -> MetaOapg.properties.audience: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "audience", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- audience: typing.Union[MetaOapg.properties.audience, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- audience=audience,
- name=name,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_apis_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add APIs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddApis(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_apis(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_apis_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_apis_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis_api_id/__init__.py b/kinde_sdk/paths/api_v1_apis_api_id/__init__.py
deleted file mode 100644
index 7d7b8822..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_apis_api_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APIS_API_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_apis_api_id/delete.py b/kinde_sdk/paths/api_v1_apis_api_id/delete.py
deleted file mode 100644
index 37adbe52..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id/delete.py
+++ /dev/null
@@ -1,364 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApiIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'api_id': typing.Union[ApiIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_api_id = api_client.PathParameter(
- name="api_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApiIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_api_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete API
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_api_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteApi(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_api(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis_api_id/delete.pyi b/kinde_sdk/paths/api_v1_apis_api_id/delete.pyi
deleted file mode 100644
index f6d476c8..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id/delete.pyi
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApiIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'api_id': typing.Union[ApiIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_api_id = api_client.PathParameter(
- name="api_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApiIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_api_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete API
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_api_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteApi(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_api(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis_api_id/get.py b/kinde_sdk/paths/api_v1_apis_api_id/get.py
deleted file mode 100644
index fae630b5..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id/get.py
+++ /dev/null
@@ -1,364 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.api import Api
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApiIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'api_id': typing.Union[ApiIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_api_id = api_client.PathParameter(
- name="api_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApiIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Api
-SchemaFor200ResponseBodyApplicationJson = Api
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_api_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List API details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_api_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApi(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_api(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis_api_id/get.pyi b/kinde_sdk/paths/api_v1_apis_api_id/get.pyi
deleted file mode 100644
index 7f3773fe..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id/get.pyi
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.api import Api
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApiIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'api_id': typing.Union[ApiIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_api_id = api_client.PathParameter(
- name="api_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApiIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Api
-SchemaFor200ResponseBodyApplicationJson = Api
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_api_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_api_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List API details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_api_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApi(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_api(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_api(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_api_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis_api_id_applications/__init__.py b/kinde_sdk/paths/api_v1_apis_api_id_applications/__init__.py
deleted file mode 100644
index 222e2fd0..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id_applications/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_apis_api_id_applications import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APIS_API_ID_APPLICATIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_apis_api_id_applications/patch.py b/kinde_sdk/paths/api_v1_apis_api_id_applications/patch.py
deleted file mode 100644
index 35ca5c0d..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id_applications/patch.py
+++ /dev/null
@@ -1,601 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApiIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'api_id': typing.Union[ApiIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_api_id = api_client.PathParameter(
- name="api_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApiIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "applications",
- }
-
- class properties:
-
-
- class applications(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
- required = {
- "id",
- }
-
- class properties:
- id = schemas.StrSchema
- operation = schemas.StrSchema
- __annotations__ = {
- "id": id,
- "operation": operation,
- }
-
- id: MetaOapg.properties.id
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, ],
- operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- operation=operation,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'applications':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "applications": applications,
- }
-
- applications: MetaOapg.properties.applications
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["applications"]) -> MetaOapg.properties.applications: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["applications", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["applications"]) -> MetaOapg.properties.applications: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["applications", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- applications: typing.Union[MetaOapg.properties.applications, list, tuple, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- applications=applications,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update API Applications
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_api_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateApiApplications(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_api_applications_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_api_applications_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_apis_api_id_applications/patch.pyi b/kinde_sdk/paths/api_v1_apis_api_id_applications/patch.pyi
deleted file mode 100644
index 14a80deb..00000000
--- a/kinde_sdk/paths/api_v1_apis_api_id_applications/patch.pyi
+++ /dev/null
@@ -1,590 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApiIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'api_id': typing.Union[ApiIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_api_id = api_client.PathParameter(
- name="api_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApiIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "applications",
- }
-
- class properties:
-
-
- class applications(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
- required = {
- "id",
- }
-
- class properties:
- id = schemas.StrSchema
- operation = schemas.StrSchema
- __annotations__ = {
- "id": id,
- "operation": operation,
- }
-
- id: MetaOapg.properties.id
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, ],
- operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- operation=operation,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'applications':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "applications": applications,
- }
-
- applications: MetaOapg.properties.applications
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["applications"]) -> MetaOapg.properties.applications: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["applications", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["applications"]) -> MetaOapg.properties.applications: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["applications", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- applications: typing.Union[MetaOapg.properties.applications, list, tuple, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- applications=applications,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_api_applications_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update API Applications
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_api_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateApiApplications(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_api_applications(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_api_applications_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_api_applications_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications/__init__.py b/kinde_sdk/paths/api_v1_applications/__init__.py
deleted file mode 100644
index e6ff2ccb..00000000
--- a/kinde_sdk/paths/api_v1_applications/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_applications import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APPLICATIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_applications/get.py b/kinde_sdk/paths/api_v1_applications/get.py
deleted file mode 100644
index a69344cb..00000000
--- a/kinde_sdk/paths/api_v1_applications/get.py
+++ /dev/null
@@ -1,419 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_applications_response import GetApplicationsResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "ASC",
- "name_desc": "DESC",
- }
-
- @schemas.classproperty
- def ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def DESC(cls):
- return cls("name_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetApplicationsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetApplicationsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_applications_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_applications_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_applications_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_applications_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Applications
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApplications(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_applications(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_applications(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_applications(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_applications(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_applications_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_applications_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications/get.pyi b/kinde_sdk/paths/api_v1_applications/get.pyi
deleted file mode 100644
index 4d1cc64d..00000000
--- a/kinde_sdk/paths/api_v1_applications/get.pyi
+++ /dev/null
@@ -1,409 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_applications_response import GetApplicationsResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "ASC",
- "name_desc": "DESC",
- }
-
- @schemas.classproperty
- def ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def DESC(cls):
- return cls("name_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetApplicationsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetApplicationsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_applications_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_applications_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_applications_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_applications_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Applications
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApplications(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_applications(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_applications(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_applications(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_applications(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_applications_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_applications_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications/post.py b/kinde_sdk/paths/api_v1_applications/post.py
deleted file mode 100644
index e7d95d67..00000000
--- a/kinde_sdk/paths/api_v1_applications/post.py
+++ /dev/null
@@ -1,474 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_application_response import CreateApplicationResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "reg": "REG",
- "spa": "SPA",
- "m2m": "M2M",
- }
-
- @schemas.classproperty
- def REG(cls):
- return cls("reg")
-
- @schemas.classproperty
- def SPA(cls):
- return cls("spa")
-
- @schemas.classproperty
- def M2M(cls):
- return cls("m2m")
- __annotations__ = {
- "name": name,
- "type": type,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "type", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "type", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- type=type,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = CreateApplicationResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = CreateApplicationResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_application_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_application_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_application(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_application(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_application_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_application_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications/post.pyi b/kinde_sdk/paths/api_v1_applications/post.pyi
deleted file mode 100644
index e1550516..00000000
--- a/kinde_sdk/paths/api_v1_applications/post.pyi
+++ /dev/null
@@ -1,455 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_application_response import CreateApplicationResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def REG(cls):
- return cls("reg")
-
- @schemas.classproperty
- def SPA(cls):
- return cls("spa")
-
- @schemas.classproperty
- def M2M(cls):
- return cls("m2m")
- __annotations__ = {
- "name": name,
- "type": type,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "type", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "type", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- type=type,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor200ResponseBodyApplicationJson = CreateApplicationResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = CreateApplicationResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_application_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_application_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_application(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_application(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_application_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_application_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/__init__.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/__init__.py
deleted file mode 100644
index 860f863d..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_applications_app_id_auth_logout_urls import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APPLICATIONS_APP_ID_AUTH_LOGOUT_URLS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/delete.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/delete.py
deleted file mode 100644
index 7afc5943..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/delete.py
+++ /dev/null
@@ -1,415 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-UrlsSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'urls': typing.Union[UrlsSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_urls = api_client.QueryParameter(
- name="urls",
- style=api_client.ParameterStyle.FORM,
- schema=UrlsSchema,
- required=True,
- explode=True,
-)
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_logout_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_logout_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_logout_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_logout_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Logout URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_urls,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteLogoutUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_logout_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_logout_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_logout_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_logout_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_logout_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_logout_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/delete.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/delete.pyi
deleted file mode 100644
index f45a99eb..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/delete.pyi
+++ /dev/null
@@ -1,404 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-UrlsSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'urls': typing.Union[UrlsSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_urls = api_client.QueryParameter(
- name="urls",
- style=api_client.ParameterStyle.FORM,
- schema=UrlsSchema,
- required=True,
- explode=True,
-)
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_logout_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_logout_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_logout_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_logout_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Logout URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_urls,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteLogoutUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_logout_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_logout_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_logout_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_logout_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_logout_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_logout_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/get.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/get.py
deleted file mode 100644
index 31e33ed5..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.logout_redirect_urls import LogoutRedirectUrls
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = LogoutRedirectUrls
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = LogoutRedirectUrls
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_logout_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_logout_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_logout_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_logout_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Logout URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetLogoutUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_logout_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_logout_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_logout_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_logout_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_logout_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_logout_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/get.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/get.pyi
deleted file mode 100644
index 1059c61d..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.logout_redirect_urls import LogoutRedirectUrls
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = LogoutRedirectUrls
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = LogoutRedirectUrls
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_logout_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_logout_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_logout_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_logout_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Logout URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetLogoutUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_logout_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_logout_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_logout_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_logout_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_logout_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_logout_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/post.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/post.py
deleted file mode 100644
index cfa03273..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/post.py
+++ /dev/null
@@ -1,519 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Logout Redirect URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddLogoutRedirectUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/post.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/post.pyi
deleted file mode 100644
index 4548701c..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/post.pyi
+++ /dev/null
@@ -1,508 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Logout Redirect URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddLogoutRedirectUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/put.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/put.py
deleted file mode 100644
index bc84de8b..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/put.py
+++ /dev/null
@@ -1,512 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Replace Logout Redirect URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class ReplaceLogoutRedirectUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/put.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/put.pyi
deleted file mode 100644
index df85fe42..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_logout_urls/put.pyi
+++ /dev/null
@@ -1,501 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _replace_logout_redirect_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Replace Logout Redirect URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class ReplaceLogoutRedirectUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def replace_logout_redirect_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_logout_redirect_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/__init__.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/__init__.py
deleted file mode 100644
index a2c7c470..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_applications_app_id_auth_redirect_urls import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APPLICATIONS_APP_ID_AUTH_REDIRECT_URLS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/delete.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/delete.py
deleted file mode 100644
index c5c3e118..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/delete.py
+++ /dev/null
@@ -1,415 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-UrlsSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'urls': typing.Union[UrlsSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_urls = api_client.QueryParameter(
- name="urls",
- style=api_client.ParameterStyle.FORM,
- schema=UrlsSchema,
- required=True,
- explode=True,
-)
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_callback_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_callback_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_callback_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_callback_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_urls,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_callback_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_callback_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_callback_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_callback_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_callback_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_callback_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/delete.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/delete.pyi
deleted file mode 100644
index f939fe6d..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/delete.pyi
+++ /dev/null
@@ -1,404 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-UrlsSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'urls': typing.Union[UrlsSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_urls = api_client.QueryParameter(
- name="urls",
- style=api_client.ParameterStyle.FORM,
- schema=UrlsSchema,
- required=True,
- explode=True,
-)
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_callback_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_callback_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_callback_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_callback_urls_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_urls,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_callback_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_callback_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_callback_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_callback_urls(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_callback_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_callback_urls_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/get.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/get.py
deleted file mode 100644
index 4193ff3b..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.redirect_callback_urls import RedirectCallbackUrls
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = RedirectCallbackUrls
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = RedirectCallbackUrls
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_callback_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_callback_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_callback_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_callback_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_callback_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_callback_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_callback_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_callback_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_callback_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_callback_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/get.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/get.pyi
deleted file mode 100644
index 197adb90..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.redirect_callback_urls import RedirectCallbackUrls
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = RedirectCallbackUrls
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = RedirectCallbackUrls
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_callback_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_callback_urls_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_callback_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_callback_urls_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_callback_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_callback_urls(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_callback_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_callback_urls(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_callback_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_callback_urls_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/post.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/post.py
deleted file mode 100644
index 75d77148..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/post.py
+++ /dev/null
@@ -1,519 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Redirect Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddRedirectCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/post.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/post.pyi
deleted file mode 100644
index f0e867c1..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/post.pyi
+++ /dev/null
@@ -1,508 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Redirect Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddRedirectCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/put.py b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/put.py
deleted file mode 100644
index 53cf5b2c..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/put.py
+++ /dev/null
@@ -1,512 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Replace Redirect Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class ReplaceRedirectCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/put.pyi b/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/put.pyi
deleted file mode 100644
index b660be13..00000000
--- a/kinde_sdk/paths/api_v1_applications_app_id_auth_redirect_urls/put.pyi
+++ /dev/null
@@ -1,501 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-AppIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'app_id': typing.Union[AppIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_app_id = api_client.PathParameter(
- name="app_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=AppIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class urls(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'urls':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "urls": urls,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["urls"]) -> MetaOapg.properties.urls: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["urls"]) -> typing.Union[MetaOapg.properties.urls, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["urls", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- urls: typing.Union[MetaOapg.properties.urls, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- urls=urls,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _replace_redirect_callback_urls_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Replace Redirect Callback URLs
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_app_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class ReplaceRedirectCallbackUrls(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def replace_redirect_callback_urls(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._replace_redirect_callback_urls_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/__init__.py b/kinde_sdk/paths/api_v1_applications_application_id/__init__.py
deleted file mode 100644
index 29db816b..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_applications_application_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APPLICATIONS_APPLICATION_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/delete.py b/kinde_sdk/paths/api_v1_applications_application_id/delete.py
deleted file mode 100644
index 2fadfe79..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/delete.py
+++ /dev/null
@@ -1,360 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/delete.pyi b/kinde_sdk/paths/api_v1_applications_application_id/delete.pyi
deleted file mode 100644
index a153f971..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/delete.pyi
+++ /dev/null
@@ -1,349 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/get.py b/kinde_sdk/paths/api_v1_applications_application_id/get.py
deleted file mode 100644
index 59269b45..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_application_response import GetApplicationResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetApplicationResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetApplicationResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/get.pyi b/kinde_sdk/paths/api_v1_applications_application_id/get.pyi
deleted file mode 100644
index ba9c771a..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_application_response import GetApplicationResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetApplicationResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetApplicationResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_application_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_application(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/patch.py b/kinde_sdk/paths/api_v1_applications_application_id/patch.py
deleted file mode 100644
index 41a9ddd9..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/patch.py
+++ /dev/null
@@ -1,558 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- language_key = schemas.StrSchema
-
-
- class logout_uris(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'logout_uris':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
-
-
- class redirect_uris(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'redirect_uris':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "name": name,
- "language_key": language_key,
- "logout_uris": logout_uris,
- "redirect_uris": redirect_uris,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["language_key"]) -> MetaOapg.properties.language_key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["logout_uris"]) -> MetaOapg.properties.logout_uris: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["redirect_uris"]) -> MetaOapg.properties.redirect_uris: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "language_key", "logout_uris", "redirect_uris", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["language_key"]) -> typing.Union[MetaOapg.properties.language_key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["logout_uris"]) -> typing.Union[MetaOapg.properties.logout_uris, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["redirect_uris"]) -> typing.Union[MetaOapg.properties.redirect_uris, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "language_key", "logout_uris", "redirect_uris", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- language_key: typing.Union[MetaOapg.properties.language_key, str, schemas.Unset] = schemas.unset,
- logout_uris: typing.Union[MetaOapg.properties.logout_uris, list, tuple, schemas.Unset] = schemas.unset,
- redirect_uris: typing.Union[MetaOapg.properties.redirect_uris, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- language_key=language_key,
- logout_uris=logout_uris,
- redirect_uris=redirect_uris,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_application_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_application_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_application(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_application(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_application_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_application_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id/patch.pyi b/kinde_sdk/paths/api_v1_applications_application_id/patch.pyi
deleted file mode 100644
index d0899cbb..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id/patch.pyi
+++ /dev/null
@@ -1,547 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- language_key = schemas.StrSchema
-
-
- class logout_uris(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'logout_uris':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
-
-
- class redirect_uris(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'redirect_uris':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "name": name,
- "language_key": language_key,
- "logout_uris": logout_uris,
- "redirect_uris": redirect_uris,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["language_key"]) -> MetaOapg.properties.language_key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["logout_uris"]) -> MetaOapg.properties.logout_uris: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["redirect_uris"]) -> MetaOapg.properties.redirect_uris: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "language_key", "logout_uris", "redirect_uris", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["language_key"]) -> typing.Union[MetaOapg.properties.language_key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["logout_uris"]) -> typing.Union[MetaOapg.properties.logout_uris, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["redirect_uris"]) -> typing.Union[MetaOapg.properties.redirect_uris, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "language_key", "logout_uris", "redirect_uris", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- language_key: typing.Union[MetaOapg.properties.language_key, str, schemas.Unset] = schemas.unset,
- logout_uris: typing.Union[MetaOapg.properties.logout_uris, list, tuple, schemas.Unset] = schemas.unset,
- redirect_uris: typing.Union[MetaOapg.properties.redirect_uris, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- language_key=language_key,
- logout_uris=logout_uris,
- redirect_uris=redirect_uris,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_application_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_application_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_application_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_application_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Application
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateApplication(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_application(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_application(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_application(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_application(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_application_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_application_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections/__init__.py b/kinde_sdk/paths/api_v1_applications_application_id_connections/__init__.py
deleted file mode 100644
index 81c3c0b2..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_applications_application_id_connections import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APPLICATIONS_APPLICATION_ID_CONNECTIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections/get.py b/kinde_sdk/paths/api_v1_applications_application_id_connections/get.py
deleted file mode 100644
index 4fb11b84..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_connections_response import GetConnectionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetConnectionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_application_connections_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_application_connections_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_application_connections_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_application_connections_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get connections
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApplicationConnections(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_application_connections(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_application_connections(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_application_connections(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_application_connections(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_connections_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_connections_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections/get.pyi b/kinde_sdk/paths/api_v1_applications_application_id_connections/get.pyi
deleted file mode 100644
index ad084bab..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_connections_response import GetConnectionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetConnectionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_application_connections_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_application_connections_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_application_connections_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_application_connections_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get connections
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetApplicationConnections(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_application_connections(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_application_connections(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_application_connections(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_application_connections(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_connections_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_application_connections_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/__init__.py b/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/__init__.py
deleted file mode 100644
index 588e02b4..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_applications_application_id_connections_connection_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_APPLICATIONS_APPLICATION_ID_CONNECTIONS_CONNECTION_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/delete.py b/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/delete.py
deleted file mode 100644
index 87e28e56..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/delete.py
+++ /dev/null
@@ -1,369 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _remove_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _remove_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _remove_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _remove_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Remove connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RemoveConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def remove_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def remove_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def remove_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def remove_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/delete.pyi b/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/delete.pyi
deleted file mode 100644
index bf5712a2..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/delete.pyi
+++ /dev/null
@@ -1,358 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _remove_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _remove_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _remove_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _remove_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Remove connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RemoveConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def remove_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def remove_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def remove_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def remove_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/post.py b/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/post.py
deleted file mode 100644
index ae1d55a9..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/post.py
+++ /dev/null
@@ -1,350 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _enable_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _enable_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _enable_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _enable_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Enable connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class EnableConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def enable_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def enable_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def enable_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def enable_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._enable_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._enable_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/post.pyi b/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/post.pyi
deleted file mode 100644
index 811dcfa9..00000000
--- a/kinde_sdk/paths/api_v1_applications_application_id_connections_connection_id/post.pyi
+++ /dev/null
@@ -1,339 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ApplicationIdSchema = schemas.StrSchema
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'application_id': typing.Union[ApplicationIdSchema, str, ],
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_application_id = api_client.PathParameter(
- name="application_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ApplicationIdSchema,
- required=True,
-)
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _enable_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _enable_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _enable_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _enable_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Enable connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_application_id,
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class EnableConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def enable_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def enable_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def enable_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def enable_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._enable_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._enable_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_business/__init__.py b/kinde_sdk/paths/api_v1_business/__init__.py
deleted file mode 100644
index 674c2feb..00000000
--- a/kinde_sdk/paths/api_v1_business/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_business import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_BUSINESS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_business/get.py b/kinde_sdk/paths/api_v1_business/get.py
deleted file mode 100644
index f5588127..00000000
--- a/kinde_sdk/paths/api_v1_business/get.py
+++ /dev/null
@@ -1,446 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-from . import path
-
-# Query params
-CodeSchema = schemas.StrSchema
-NameSchema = schemas.StrSchema
-EmailSchema = schemas.StrSchema
-
-
-class PhoneSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PhoneSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-IndustrySchema = schemas.StrSchema
-TimezoneSchema = schemas.StrSchema
-
-
-class PrivacyUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PrivacyUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class TermsUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'TermsUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'code': typing.Union[CodeSchema, str, ],
- 'name': typing.Union[NameSchema, str, ],
- 'email': typing.Union[EmailSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'phone': typing.Union[PhoneSchema, None, str, ],
- 'industry': typing.Union[IndustrySchema, str, ],
- 'timezone': typing.Union[TimezoneSchema, str, ],
- 'privacy_url': typing.Union[PrivacyUrlSchema, None, str, ],
- 'terms_url': typing.Union[TermsUrlSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_code = api_client.QueryParameter(
- name="code",
- style=api_client.ParameterStyle.FORM,
- schema=CodeSchema,
- required=True,
- explode=True,
-)
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- required=True,
- explode=True,
-)
-request_query_email = api_client.QueryParameter(
- name="email",
- style=api_client.ParameterStyle.FORM,
- schema=EmailSchema,
- required=True,
- explode=True,
-)
-request_query_phone = api_client.QueryParameter(
- name="phone",
- style=api_client.ParameterStyle.FORM,
- schema=PhoneSchema,
- explode=True,
-)
-request_query_industry = api_client.QueryParameter(
- name="industry",
- style=api_client.ParameterStyle.FORM,
- schema=IndustrySchema,
- explode=True,
-)
-request_query_timezone = api_client.QueryParameter(
- name="timezone",
- style=api_client.ParameterStyle.FORM,
- schema=TimezoneSchema,
- explode=True,
-)
-request_query_privacy_url = api_client.QueryParameter(
- name="privacy_url",
- style=api_client.ParameterStyle.FORM,
- schema=PrivacyUrlSchema,
- explode=True,
-)
-request_query_terms_url = api_client.QueryParameter(
- name="terms_url",
- style=api_client.ParameterStyle.FORM,
- schema=TermsUrlSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _get_business_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List business details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_code,
- request_query_name,
- request_query_email,
- request_query_phone,
- request_query_industry,
- request_query_timezone,
- request_query_privacy_url,
- request_query_terms_url,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetBusiness(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get_business(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_business/get.pyi b/kinde_sdk/paths/api_v1_business/get.pyi
deleted file mode 100644
index 101f39e3..00000000
--- a/kinde_sdk/paths/api_v1_business/get.pyi
+++ /dev/null
@@ -1,436 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-# Query params
-CodeSchema = schemas.StrSchema
-NameSchema = schemas.StrSchema
-EmailSchema = schemas.StrSchema
-
-
-class PhoneSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PhoneSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-IndustrySchema = schemas.StrSchema
-TimezoneSchema = schemas.StrSchema
-
-
-class PrivacyUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PrivacyUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class TermsUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'TermsUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'code': typing.Union[CodeSchema, str, ],
- 'name': typing.Union[NameSchema, str, ],
- 'email': typing.Union[EmailSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'phone': typing.Union[PhoneSchema, None, str, ],
- 'industry': typing.Union[IndustrySchema, str, ],
- 'timezone': typing.Union[TimezoneSchema, str, ],
- 'privacy_url': typing.Union[PrivacyUrlSchema, None, str, ],
- 'terms_url': typing.Union[TermsUrlSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_code = api_client.QueryParameter(
- name="code",
- style=api_client.ParameterStyle.FORM,
- schema=CodeSchema,
- required=True,
- explode=True,
-)
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- required=True,
- explode=True,
-)
-request_query_email = api_client.QueryParameter(
- name="email",
- style=api_client.ParameterStyle.FORM,
- schema=EmailSchema,
- required=True,
- explode=True,
-)
-request_query_phone = api_client.QueryParameter(
- name="phone",
- style=api_client.ParameterStyle.FORM,
- schema=PhoneSchema,
- explode=True,
-)
-request_query_industry = api_client.QueryParameter(
- name="industry",
- style=api_client.ParameterStyle.FORM,
- schema=IndustrySchema,
- explode=True,
-)
-request_query_timezone = api_client.QueryParameter(
- name="timezone",
- style=api_client.ParameterStyle.FORM,
- schema=TimezoneSchema,
- explode=True,
-)
-request_query_privacy_url = api_client.QueryParameter(
- name="privacy_url",
- style=api_client.ParameterStyle.FORM,
- schema=PrivacyUrlSchema,
- explode=True,
-)
-request_query_terms_url = api_client.QueryParameter(
- name="terms_url",
- style=api_client.ParameterStyle.FORM,
- schema=TermsUrlSchema,
- explode=True,
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _get_business_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List business details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_code,
- request_query_name,
- request_query_email,
- request_query_phone,
- request_query_industry,
- request_query_timezone,
- request_query_privacy_url,
- request_query_terms_url,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetBusiness(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get_business(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_business/patch.py b/kinde_sdk/paths/api_v1_business/patch.py
deleted file mode 100644
index c870e580..00000000
--- a/kinde_sdk/paths/api_v1_business/patch.py
+++ /dev/null
@@ -1,541 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-BusinessNameSchema = schemas.StrSchema
-PrimaryEmailSchema = schemas.StrSchema
-
-
-class PrimaryPhoneSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PrimaryPhoneSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-IndustryKeySchema = schemas.StrSchema
-TimezoneIdSchema = schemas.StrSchema
-
-
-class PrivacyUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PrivacyUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class TermsUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'TermsUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class IsShowKindeBrandingSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'IsShowKindeBrandingSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class IsClickWrapSchema(
- schemas.BoolBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneBoolMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, bool, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'IsClickWrapSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PartnerCodeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PartnerCodeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'business_name': typing.Union[BusinessNameSchema, str, ],
- 'primary_email': typing.Union[PrimaryEmailSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'primary_phone': typing.Union[PrimaryPhoneSchema, None, str, ],
- 'industry_key': typing.Union[IndustryKeySchema, str, ],
- 'timezone_id': typing.Union[TimezoneIdSchema, str, ],
- 'privacy_url': typing.Union[PrivacyUrlSchema, None, str, ],
- 'terms_url': typing.Union[TermsUrlSchema, None, str, ],
- 'is_show_kinde_branding': typing.Union[IsShowKindeBrandingSchema, None, str, ],
- 'is_click_wrap': typing.Union[IsClickWrapSchema, None, bool, ],
- 'partner_code': typing.Union[PartnerCodeSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_business_name = api_client.QueryParameter(
- name="business_name",
- style=api_client.ParameterStyle.FORM,
- schema=BusinessNameSchema,
- required=True,
- explode=True,
-)
-request_query_primary_email = api_client.QueryParameter(
- name="primary_email",
- style=api_client.ParameterStyle.FORM,
- schema=PrimaryEmailSchema,
- required=True,
- explode=True,
-)
-request_query_primary_phone = api_client.QueryParameter(
- name="primary_phone",
- style=api_client.ParameterStyle.FORM,
- schema=PrimaryPhoneSchema,
- explode=True,
-)
-request_query_industry_key = api_client.QueryParameter(
- name="industry_key",
- style=api_client.ParameterStyle.FORM,
- schema=IndustryKeySchema,
- explode=True,
-)
-request_query_timezone_id = api_client.QueryParameter(
- name="timezone_id",
- style=api_client.ParameterStyle.FORM,
- schema=TimezoneIdSchema,
- explode=True,
-)
-request_query_privacy_url = api_client.QueryParameter(
- name="privacy_url",
- style=api_client.ParameterStyle.FORM,
- schema=PrivacyUrlSchema,
- explode=True,
-)
-request_query_terms_url = api_client.QueryParameter(
- name="terms_url",
- style=api_client.ParameterStyle.FORM,
- schema=TermsUrlSchema,
- explode=True,
-)
-request_query_is_show_kinde_branding = api_client.QueryParameter(
- name="is_show_kinde_branding",
- style=api_client.ParameterStyle.FORM,
- schema=IsShowKindeBrandingSchema,
- explode=True,
-)
-request_query_is_click_wrap = api_client.QueryParameter(
- name="is_click_wrap",
- style=api_client.ParameterStyle.FORM,
- schema=IsClickWrapSchema,
- explode=True,
-)
-request_query_partner_code = api_client.QueryParameter(
- name="partner_code",
- style=api_client.ParameterStyle.FORM,
- schema=PartnerCodeSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _update_business_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update business details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_business_name,
- request_query_primary_email,
- request_query_primary_phone,
- request_query_industry_key,
- request_query_timezone_id,
- request_query_privacy_url,
- request_query_terms_url,
- request_query_is_show_kinde_branding,
- request_query_is_click_wrap,
- request_query_partner_code,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateBusiness(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def update_business(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_business/patch.pyi b/kinde_sdk/paths/api_v1_business/patch.pyi
deleted file mode 100644
index c00769b5..00000000
--- a/kinde_sdk/paths/api_v1_business/patch.pyi
+++ /dev/null
@@ -1,530 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-BusinessNameSchema = schemas.StrSchema
-PrimaryEmailSchema = schemas.StrSchema
-
-
-class PrimaryPhoneSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PrimaryPhoneSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-IndustryKeySchema = schemas.StrSchema
-TimezoneIdSchema = schemas.StrSchema
-
-
-class PrivacyUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PrivacyUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class TermsUrlSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'TermsUrlSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class IsShowKindeBrandingSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'IsShowKindeBrandingSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class IsClickWrapSchema(
- schemas.BoolBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneBoolMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, bool, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'IsClickWrapSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PartnerCodeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PartnerCodeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'business_name': typing.Union[BusinessNameSchema, str, ],
- 'primary_email': typing.Union[PrimaryEmailSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'primary_phone': typing.Union[PrimaryPhoneSchema, None, str, ],
- 'industry_key': typing.Union[IndustryKeySchema, str, ],
- 'timezone_id': typing.Union[TimezoneIdSchema, str, ],
- 'privacy_url': typing.Union[PrivacyUrlSchema, None, str, ],
- 'terms_url': typing.Union[TermsUrlSchema, None, str, ],
- 'is_show_kinde_branding': typing.Union[IsShowKindeBrandingSchema, None, str, ],
- 'is_click_wrap': typing.Union[IsClickWrapSchema, None, bool, ],
- 'partner_code': typing.Union[PartnerCodeSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_business_name = api_client.QueryParameter(
- name="business_name",
- style=api_client.ParameterStyle.FORM,
- schema=BusinessNameSchema,
- required=True,
- explode=True,
-)
-request_query_primary_email = api_client.QueryParameter(
- name="primary_email",
- style=api_client.ParameterStyle.FORM,
- schema=PrimaryEmailSchema,
- required=True,
- explode=True,
-)
-request_query_primary_phone = api_client.QueryParameter(
- name="primary_phone",
- style=api_client.ParameterStyle.FORM,
- schema=PrimaryPhoneSchema,
- explode=True,
-)
-request_query_industry_key = api_client.QueryParameter(
- name="industry_key",
- style=api_client.ParameterStyle.FORM,
- schema=IndustryKeySchema,
- explode=True,
-)
-request_query_timezone_id = api_client.QueryParameter(
- name="timezone_id",
- style=api_client.ParameterStyle.FORM,
- schema=TimezoneIdSchema,
- explode=True,
-)
-request_query_privacy_url = api_client.QueryParameter(
- name="privacy_url",
- style=api_client.ParameterStyle.FORM,
- schema=PrivacyUrlSchema,
- explode=True,
-)
-request_query_terms_url = api_client.QueryParameter(
- name="terms_url",
- style=api_client.ParameterStyle.FORM,
- schema=TermsUrlSchema,
- explode=True,
-)
-request_query_is_show_kinde_branding = api_client.QueryParameter(
- name="is_show_kinde_branding",
- style=api_client.ParameterStyle.FORM,
- schema=IsShowKindeBrandingSchema,
- explode=True,
-)
-request_query_is_click_wrap = api_client.QueryParameter(
- name="is_click_wrap",
- style=api_client.ParameterStyle.FORM,
- schema=IsClickWrapSchema,
- explode=True,
-)
-request_query_partner_code = api_client.QueryParameter(
- name="partner_code",
- style=api_client.ParameterStyle.FORM,
- schema=PartnerCodeSchema,
- explode=True,
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _update_business_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_business_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update business details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_business_name,
- request_query_primary_email,
- request_query_primary_phone,
- request_query_industry_key,
- request_query_timezone_id,
- request_query_privacy_url,
- request_query_terms_url,
- request_query_is_show_kinde_branding,
- request_query_is_click_wrap,
- request_query_partner_code,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateBusiness(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def update_business(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_business(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_business_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connected_apps_auth_url/__init__.py b/kinde_sdk/paths/api_v1_connected_apps_auth_url/__init__.py
deleted file mode 100644
index 71318171..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_auth_url/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_connected_apps_auth_url import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_CONNECTED_APPS_AUTH_URL
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_connected_apps_auth_url/get.py b/kinde_sdk/paths/api_v1_connected_apps_auth_url/get.py
deleted file mode 100644
index 401c3bed..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_auth_url/get.py
+++ /dev/null
@@ -1,405 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.connected_apps_auth_url import ConnectedAppsAuthUrl
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-KeyCodeRefSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-OrgCodeSchema = schemas.StrSchema
-OverrideCallbackUrlSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'key_code_ref': typing.Union[KeyCodeRefSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'override_callback_url': typing.Union[OverrideCallbackUrlSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_key_code_ref = api_client.QueryParameter(
- name="key_code_ref",
- style=api_client.ParameterStyle.FORM,
- schema=KeyCodeRefSchema,
- required=True,
- explode=True,
-)
-request_query_user_id = api_client.QueryParameter(
- name="user_id",
- style=api_client.ParameterStyle.FORM,
- schema=UserIdSchema,
- explode=True,
-)
-request_query_org_code = api_client.QueryParameter(
- name="org_code",
- style=api_client.ParameterStyle.FORM,
- schema=OrgCodeSchema,
- explode=True,
-)
-request_query_override_callback_url = api_client.QueryParameter(
- name="override_callback_url",
- style=api_client.ParameterStyle.FORM,
- schema=OverrideCallbackUrlSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = ConnectedAppsAuthUrl
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = ConnectedAppsAuthUrl
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-SchemaFor404ResponseBodyApplicationJson = ErrorResponse
-SchemaFor404ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor404(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor404ResponseBodyApplicationJson,
- SchemaFor404ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_404 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor404,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor404ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor404ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '404': _response_for_404,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connected_app_auth_url_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connected_app_auth_url_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connected_app_auth_url_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connected_app_auth_url_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Connected App URL
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_key_code_ref,
- request_query_user_id,
- request_query_org_code,
- request_query_override_callback_url,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnectedAppAuthUrl(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connected_app_auth_url(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connected_app_auth_url(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connected_app_auth_url(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connected_app_auth_url(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_auth_url_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_auth_url_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connected_apps_auth_url/get.pyi b/kinde_sdk/paths/api_v1_connected_apps_auth_url/get.pyi
deleted file mode 100644
index 9a5a045c..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_auth_url/get.pyi
+++ /dev/null
@@ -1,393 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.connected_apps_auth_url import ConnectedAppsAuthUrl
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-KeyCodeRefSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-OrgCodeSchema = schemas.StrSchema
-OverrideCallbackUrlSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'key_code_ref': typing.Union[KeyCodeRefSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'override_callback_url': typing.Union[OverrideCallbackUrlSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_key_code_ref = api_client.QueryParameter(
- name="key_code_ref",
- style=api_client.ParameterStyle.FORM,
- schema=KeyCodeRefSchema,
- required=True,
- explode=True,
-)
-request_query_user_id = api_client.QueryParameter(
- name="user_id",
- style=api_client.ParameterStyle.FORM,
- schema=UserIdSchema,
- explode=True,
-)
-request_query_org_code = api_client.QueryParameter(
- name="org_code",
- style=api_client.ParameterStyle.FORM,
- schema=OrgCodeSchema,
- explode=True,
-)
-request_query_override_callback_url = api_client.QueryParameter(
- name="override_callback_url",
- style=api_client.ParameterStyle.FORM,
- schema=OverrideCallbackUrlSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = ConnectedAppsAuthUrl
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = ConnectedAppsAuthUrl
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-SchemaFor404ResponseBodyApplicationJson = ErrorResponse
-SchemaFor404ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor404(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor404ResponseBodyApplicationJson,
- SchemaFor404ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_404 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor404,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor404ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor404ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connected_app_auth_url_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connected_app_auth_url_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connected_app_auth_url_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connected_app_auth_url_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Connected App URL
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_key_code_ref,
- request_query_user_id,
- request_query_org_code,
- request_query_override_callback_url,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnectedAppAuthUrl(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connected_app_auth_url(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connected_app_auth_url(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connected_app_auth_url(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connected_app_auth_url(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_auth_url_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_auth_url_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connected_apps_revoke/__init__.py b/kinde_sdk/paths/api_v1_connected_apps_revoke/__init__.py
deleted file mode 100644
index 07371749..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_revoke/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_connected_apps_revoke import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_CONNECTED_APPS_REVOKE
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_connected_apps_revoke/post.py b/kinde_sdk/paths/api_v1_connected_apps_revoke/post.py
deleted file mode 100644
index 612221db..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_revoke/post.py
+++ /dev/null
@@ -1,378 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-SessionIdSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'session_id': typing.Union[SessionIdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_session_id = api_client.QueryParameter(
- name="session_id",
- style=api_client.ParameterStyle.FORM,
- schema=SessionIdSchema,
- required=True,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor405(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_405 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor405,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '405': _response_for_405,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _revoke_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _revoke_connected_app_token_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _revoke_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _revoke_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Revoke Connected App Token
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_session_id,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RevokeConnectedAppToken(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def revoke_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def revoke_connected_app_token(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def revoke_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def revoke_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._revoke_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._revoke_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connected_apps_revoke/post.pyi b/kinde_sdk/paths/api_v1_connected_apps_revoke/post.pyi
deleted file mode 100644
index d39a1b72..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_revoke/post.pyi
+++ /dev/null
@@ -1,366 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-SessionIdSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'session_id': typing.Union[SessionIdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_session_id = api_client.QueryParameter(
- name="session_id",
- style=api_client.ParameterStyle.FORM,
- schema=SessionIdSchema,
- required=True,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor405(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_405 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor405,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _revoke_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _revoke_connected_app_token_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _revoke_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _revoke_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Revoke Connected App Token
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_session_id,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RevokeConnectedAppToken(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def revoke_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def revoke_connected_app_token(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def revoke_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def revoke_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._revoke_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._revoke_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connected_apps_token/__init__.py b/kinde_sdk/paths/api_v1_connected_apps_token/__init__.py
deleted file mode 100644
index 255ab24e..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_token/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_connected_apps_token import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_CONNECTED_APPS_TOKEN
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_connected_apps_token/get.py b/kinde_sdk/paths/api_v1_connected_apps_token/get.py
deleted file mode 100644
index 0c794a1e..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_token/get.py
+++ /dev/null
@@ -1,365 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.connected_apps_access_token import ConnectedAppsAccessToken
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-SessionIdSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'session_id': typing.Union[SessionIdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_session_id = api_client.QueryParameter(
- name="session_id",
- style=api_client.ParameterStyle.FORM,
- schema=SessionIdSchema,
- required=True,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = ConnectedAppsAccessToken
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = ConnectedAppsAccessToken
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connected_app_token_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Connected App Token
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_session_id,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnectedAppToken(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connected_app_token(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connected_apps_token/get.pyi b/kinde_sdk/paths/api_v1_connected_apps_token/get.pyi
deleted file mode 100644
index f25f80c7..00000000
--- a/kinde_sdk/paths/api_v1_connected_apps_token/get.pyi
+++ /dev/null
@@ -1,354 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.connected_apps_access_token import ConnectedAppsAccessToken
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-SessionIdSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'session_id': typing.Union[SessionIdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_session_id = api_client.QueryParameter(
- name="session_id",
- style=api_client.ParameterStyle.FORM,
- schema=SessionIdSchema,
- required=True,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = ConnectedAppsAccessToken
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = ConnectedAppsAccessToken
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connected_app_token_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connected_app_token_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Connected App Token
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_session_id,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnectedAppToken(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connected_app_token(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connected_app_token(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connected_app_token_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections/__init__.py b/kinde_sdk/paths/api_v1_connections/__init__.py
deleted file mode 100644
index 069d1e06..00000000
--- a/kinde_sdk/paths/api_v1_connections/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_connections import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_CONNECTIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_connections/get.py b/kinde_sdk/paths/api_v1_connections/get.py
deleted file mode 100644
index c1c6e9cf..00000000
--- a/kinde_sdk/paths/api_v1_connections/get.py
+++ /dev/null
@@ -1,439 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_connections_response import GetConnectionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class StartingAfterSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'StartingAfterSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EndingBeforeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EndingBeforeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'starting_after': typing.Union[StartingAfterSchema, None, str, ],
- 'ending_before': typing.Union[EndingBeforeSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_starting_after = api_client.QueryParameter(
- name="starting_after",
- style=api_client.ParameterStyle.FORM,
- schema=StartingAfterSchema,
- explode=True,
-)
-request_query_ending_before = api_client.QueryParameter(
- name="ending_before",
- style=api_client.ParameterStyle.FORM,
- schema=EndingBeforeSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetConnectionsResponse
-SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connections_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connections_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connections_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connections_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Connections
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_starting_after,
- request_query_ending_before,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnections(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connections(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connections(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connections(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connections(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connections_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connections_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections/get.pyi b/kinde_sdk/paths/api_v1_connections/get.pyi
deleted file mode 100644
index 3644bf65..00000000
--- a/kinde_sdk/paths/api_v1_connections/get.pyi
+++ /dev/null
@@ -1,428 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_connections_response import GetConnectionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class StartingAfterSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'StartingAfterSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EndingBeforeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EndingBeforeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'starting_after': typing.Union[StartingAfterSchema, None, str, ],
- 'ending_before': typing.Union[EndingBeforeSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_starting_after = api_client.QueryParameter(
- name="starting_after",
- style=api_client.ParameterStyle.FORM,
- schema=StartingAfterSchema,
- explode=True,
-)
-request_query_ending_before = api_client.QueryParameter(
- name="ending_before",
- style=api_client.ParameterStyle.FORM,
- schema=EndingBeforeSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetConnectionsResponse
-SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connections_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connections_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connections_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connections_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Connections
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_starting_after,
- request_query_ending_before,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnections(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connections(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connections(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connections(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connections(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connections_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connections_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections/post.py b/kinde_sdk/paths/api_v1_connections/post.py
deleted file mode 100644
index cb20c1d5..00000000
--- a/kinde_sdk/paths/api_v1_connections/post.py
+++ /dev/null
@@ -1,613 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_connection_response import CreateConnectionResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- "display_name",
- "strategy",
- }
-
- class properties:
- name = schemas.StrSchema
- display_name = schemas.StrSchema
-
-
- class strategy(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "oauth2:apple": "OAUTH2APPLE",
- "oauth2:azure_ad": "OAUTH2AZURE_AD",
- "oauth2:bitbucket": "OAUTH2BITBUCKET",
- "oauth2:discord": "OAUTH2DISCORD",
- "oauth2:facebook": "OAUTH2FACEBOOK",
- "oauth2:github": "OAUTH2GITHUB",
- "oauth2:gitlab": "OAUTH2GITLAB",
- "oauth2:google": "OAUTH2GOOGLE",
- "oauth2:linkedin": "OAUTH2LINKEDIN",
- "oauth2:microsoft": "OAUTH2MICROSOFT",
- "oauth2:patreon": "OAUTH2PATREON",
- "oauth2:slack": "OAUTH2SLACK",
- "oauth2:stripe": "OAUTH2STRIPE",
- "oauth2:twitch": "OAUTH2TWITCH",
- "oauth2:twitter": "OAUTH2TWITTER",
- "oauth2:xero": "OAUTH2XERO",
- "saml:custom": "SAMLCUSTOM",
- "wsfed:azure_ad": "WSFEDAZURE_AD",
- }
-
- @schemas.classproperty
- def OAUTH2APPLE(cls):
- return cls("oauth2:apple")
-
- @schemas.classproperty
- def OAUTH2AZURE_AD(cls):
- return cls("oauth2:azure_ad")
-
- @schemas.classproperty
- def OAUTH2BITBUCKET(cls):
- return cls("oauth2:bitbucket")
-
- @schemas.classproperty
- def OAUTH2DISCORD(cls):
- return cls("oauth2:discord")
-
- @schemas.classproperty
- def OAUTH2FACEBOOK(cls):
- return cls("oauth2:facebook")
-
- @schemas.classproperty
- def OAUTH2GITHUB(cls):
- return cls("oauth2:github")
-
- @schemas.classproperty
- def OAUTH2GITLAB(cls):
- return cls("oauth2:gitlab")
-
- @schemas.classproperty
- def OAUTH2GOOGLE(cls):
- return cls("oauth2:google")
-
- @schemas.classproperty
- def OAUTH2LINKEDIN(cls):
- return cls("oauth2:linkedin")
-
- @schemas.classproperty
- def OAUTH2MICROSOFT(cls):
- return cls("oauth2:microsoft")
-
- @schemas.classproperty
- def OAUTH2PATREON(cls):
- return cls("oauth2:patreon")
-
- @schemas.classproperty
- def OAUTH2SLACK(cls):
- return cls("oauth2:slack")
-
- @schemas.classproperty
- def OAUTH2STRIPE(cls):
- return cls("oauth2:stripe")
-
- @schemas.classproperty
- def OAUTH2TWITCH(cls):
- return cls("oauth2:twitch")
-
- @schemas.classproperty
- def OAUTH2TWITTER(cls):
- return cls("oauth2:twitter")
-
- @schemas.classproperty
- def OAUTH2XERO(cls):
- return cls("oauth2:xero")
-
- @schemas.classproperty
- def SAMLCUSTOM(cls):
- return cls("saml:custom")
-
- @schemas.classproperty
- def WSFEDAZURE_AD(cls):
- return cls("wsfed:azure_ad")
-
-
- class enabled_applications(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'enabled_applications':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- options = schemas.DictSchema
- __annotations__ = {
- "name": name,
- "display_name": display_name,
- "strategy": strategy,
- "enabled_applications": enabled_applications,
- "options": options,
- }
-
- name: MetaOapg.properties.name
- display_name: MetaOapg.properties.display_name
- strategy: MetaOapg.properties.strategy
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["display_name"]) -> MetaOapg.properties.display_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["strategy"]) -> MetaOapg.properties.strategy: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["enabled_applications"]) -> MetaOapg.properties.enabled_applications: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["options"]) -> MetaOapg.properties.options: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "strategy", "enabled_applications", "options", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["display_name"]) -> MetaOapg.properties.display_name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["strategy"]) -> MetaOapg.properties.strategy: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["enabled_applications"]) -> typing.Union[MetaOapg.properties.enabled_applications, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["options"]) -> typing.Union[MetaOapg.properties.options, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "strategy", "enabled_applications", "options", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- display_name: typing.Union[MetaOapg.properties.display_name, str, ],
- strategy: typing.Union[MetaOapg.properties.strategy, str, ],
- enabled_applications: typing.Union[MetaOapg.properties.enabled_applications, list, tuple, schemas.Unset] = schemas.unset,
- options: typing.Union[MetaOapg.properties.options, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- display_name=display_name,
- strategy=strategy,
- enabled_applications=enabled_applications,
- options=options,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJson = CreateConnectionResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreateConnectionResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_connection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_connection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections/post.pyi b/kinde_sdk/paths/api_v1_connections/post.pyi
deleted file mode 100644
index 3d5cc959..00000000
--- a/kinde_sdk/paths/api_v1_connections/post.pyi
+++ /dev/null
@@ -1,579 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_connection_response import CreateConnectionResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- "display_name",
- "strategy",
- }
-
- class properties:
- name = schemas.StrSchema
- display_name = schemas.StrSchema
-
-
- class strategy(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def OAUTH2APPLE(cls):
- return cls("oauth2:apple")
-
- @schemas.classproperty
- def OAUTH2AZURE_AD(cls):
- return cls("oauth2:azure_ad")
-
- @schemas.classproperty
- def OAUTH2BITBUCKET(cls):
- return cls("oauth2:bitbucket")
-
- @schemas.classproperty
- def OAUTH2DISCORD(cls):
- return cls("oauth2:discord")
-
- @schemas.classproperty
- def OAUTH2FACEBOOK(cls):
- return cls("oauth2:facebook")
-
- @schemas.classproperty
- def OAUTH2GITHUB(cls):
- return cls("oauth2:github")
-
- @schemas.classproperty
- def OAUTH2GITLAB(cls):
- return cls("oauth2:gitlab")
-
- @schemas.classproperty
- def OAUTH2GOOGLE(cls):
- return cls("oauth2:google")
-
- @schemas.classproperty
- def OAUTH2LINKEDIN(cls):
- return cls("oauth2:linkedin")
-
- @schemas.classproperty
- def OAUTH2MICROSOFT(cls):
- return cls("oauth2:microsoft")
-
- @schemas.classproperty
- def OAUTH2PATREON(cls):
- return cls("oauth2:patreon")
-
- @schemas.classproperty
- def OAUTH2SLACK(cls):
- return cls("oauth2:slack")
-
- @schemas.classproperty
- def OAUTH2STRIPE(cls):
- return cls("oauth2:stripe")
-
- @schemas.classproperty
- def OAUTH2TWITCH(cls):
- return cls("oauth2:twitch")
-
- @schemas.classproperty
- def OAUTH2TWITTER(cls):
- return cls("oauth2:twitter")
-
- @schemas.classproperty
- def OAUTH2XERO(cls):
- return cls("oauth2:xero")
-
- @schemas.classproperty
- def SAMLCUSTOM(cls):
- return cls("saml:custom")
-
- @schemas.classproperty
- def WSFEDAZURE_AD(cls):
- return cls("wsfed:azure_ad")
-
-
- class enabled_applications(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'enabled_applications':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- options = schemas.DictSchema
- __annotations__ = {
- "name": name,
- "display_name": display_name,
- "strategy": strategy,
- "enabled_applications": enabled_applications,
- "options": options,
- }
-
- name: MetaOapg.properties.name
- display_name: MetaOapg.properties.display_name
- strategy: MetaOapg.properties.strategy
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["display_name"]) -> MetaOapg.properties.display_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["strategy"]) -> MetaOapg.properties.strategy: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["enabled_applications"]) -> MetaOapg.properties.enabled_applications: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["options"]) -> MetaOapg.properties.options: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "strategy", "enabled_applications", "options", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["display_name"]) -> MetaOapg.properties.display_name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["strategy"]) -> MetaOapg.properties.strategy: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["enabled_applications"]) -> typing.Union[MetaOapg.properties.enabled_applications, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["options"]) -> typing.Union[MetaOapg.properties.options, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "strategy", "enabled_applications", "options", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- display_name: typing.Union[MetaOapg.properties.display_name, str, ],
- strategy: typing.Union[MetaOapg.properties.strategy, str, ],
- enabled_applications: typing.Union[MetaOapg.properties.enabled_applications, list, tuple, schemas.Unset] = schemas.unset,
- options: typing.Union[MetaOapg.properties.options, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- display_name=display_name,
- strategy=strategy,
- enabled_applications=enabled_applications,
- options=options,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor201ResponseBodyApplicationJson = CreateConnectionResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreateConnectionResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_connection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_connection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/__init__.py b/kinde_sdk/paths/api_v1_connections_connection_id/__init__.py
deleted file mode 100644
index d7645956..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_connections_connection_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_CONNECTIONS_CONNECTION_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/delete.py b/kinde_sdk/paths/api_v1_connections_connection_id/delete.py
deleted file mode 100644
index 07af1bc8..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/delete.py
+++ /dev/null
@@ -1,360 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/delete.pyi b/kinde_sdk/paths/api_v1_connections_connection_id/delete.pyi
deleted file mode 100644
index b8d95a64..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/delete.pyi
+++ /dev/null
@@ -1,349 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/get.py b/kinde_sdk/paths/api_v1_connections_connection_id/get.py
deleted file mode 100644
index b386d3fc..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.connection import Connection
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = Connection
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Connection
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/get.pyi b/kinde_sdk/paths/api_v1_connections_connection_id/get.pyi
deleted file mode 100644
index 1c8ed39a..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.connection import Connection
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = Connection
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Connection
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_connection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_connection_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_connection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_connection(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_connection_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/patch.py b/kinde_sdk/paths/api_v1_connections_connection_id/patch.py
deleted file mode 100644
index dbc924f4..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/patch.py
+++ /dev/null
@@ -1,551 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- display_name = schemas.StrSchema
-
-
- class enabled_applications(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'enabled_applications':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- options = schemas.DictSchema
- __annotations__ = {
- "name": name,
- "display_name": display_name,
- "enabled_applications": enabled_applications,
- "options": options,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["display_name"]) -> MetaOapg.properties.display_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["enabled_applications"]) -> MetaOapg.properties.enabled_applications: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["options"]) -> MetaOapg.properties.options: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "enabled_applications", "options", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["display_name"]) -> typing.Union[MetaOapg.properties.display_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["enabled_applications"]) -> typing.Union[MetaOapg.properties.enabled_applications, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["options"]) -> typing.Union[MetaOapg.properties.options, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "enabled_applications", "options", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- display_name: typing.Union[MetaOapg.properties.display_name, str, schemas.Unset] = schemas.unset,
- enabled_applications: typing.Union[MetaOapg.properties.enabled_applications, list, tuple, schemas.Unset] = schemas.unset,
- options: typing.Union[MetaOapg.properties.options, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- display_name=display_name,
- enabled_applications=enabled_applications,
- options=options,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_connection_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_connection_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_connections_connection_id/patch.pyi b/kinde_sdk/paths/api_v1_connections_connection_id/patch.pyi
deleted file mode 100644
index 77014221..00000000
--- a/kinde_sdk/paths/api_v1_connections_connection_id/patch.pyi
+++ /dev/null
@@ -1,540 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-ConnectionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'connection_id': typing.Union[ConnectionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_connection_id = api_client.PathParameter(
- name="connection_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=ConnectionIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- display_name = schemas.StrSchema
-
-
- class enabled_applications(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'enabled_applications':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- options = schemas.DictSchema
- __annotations__ = {
- "name": name,
- "display_name": display_name,
- "enabled_applications": enabled_applications,
- "options": options,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["display_name"]) -> MetaOapg.properties.display_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["enabled_applications"]) -> MetaOapg.properties.enabled_applications: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["options"]) -> MetaOapg.properties.options: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "enabled_applications", "options", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["display_name"]) -> typing.Union[MetaOapg.properties.display_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["enabled_applications"]) -> typing.Union[MetaOapg.properties.enabled_applications, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["options"]) -> typing.Union[MetaOapg.properties.options, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "display_name", "enabled_applications", "options", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- display_name: typing.Union[MetaOapg.properties.display_name, str, schemas.Unset] = schemas.unset,
- enabled_applications: typing.Union[MetaOapg.properties.enabled_applications, list, tuple, schemas.Unset] = schemas.unset,
- options: typing.Union[MetaOapg.properties.options, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- display_name=display_name,
- enabled_applications=enabled_applications,
- options=options,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_connection_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Connection
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_connection_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateConnection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_connection(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_connection_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_connection_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags/__init__.py b/kinde_sdk/paths/api_v1_environment_feature_flags/__init__.py
deleted file mode 100644
index 35909e1c..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_environment_feature_flags import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ENVIRONMENT_FEATURE_FLAGS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags/delete.py b/kinde_sdk/paths/api_v1_environment_feature_flags/delete.py
deleted file mode 100644
index 67e63895..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags/delete.py
+++ /dev/null
@@ -1,299 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Environment Feature Flag Overrides
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteEnvironementFeatureFlagOverrides(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_environement_feature_flag_overrides(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_environement_feature_flag_overrides(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_environement_feature_flag_overrides(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_environement_feature_flag_overrides(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_overrides_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_overrides_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags/delete.pyi b/kinde_sdk/paths/api_v1_environment_feature_flags/delete.pyi
deleted file mode 100644
index 43de5e9e..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags/delete.pyi
+++ /dev/null
@@ -1,288 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_environement_feature_flag_overrides_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Environment Feature Flag Overrides
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteEnvironementFeatureFlagOverrides(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_environement_feature_flag_overrides(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_environement_feature_flag_overrides(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_environement_feature_flag_overrides(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_environement_feature_flag_overrides(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_overrides_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_overrides_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags/get.py b/kinde_sdk/paths/api_v1_environment_feature_flags/get.py
deleted file mode 100644
index 2ba7e3d9..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags/get.py
+++ /dev/null
@@ -1,299 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetEnvironmentFeatureFlagsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetEnvironmentFeatureFlagsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_environement_feature_flags_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_environement_feature_flags_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_environement_feature_flags_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_environement_feature_flags_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Environment Feature Flags
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetEnvironementFeatureFlags(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_environement_feature_flags(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_environement_feature_flags(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_environement_feature_flags(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_environement_feature_flags(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_environement_feature_flags_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_environement_feature_flags_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags/get.pyi b/kinde_sdk/paths/api_v1_environment_feature_flags/get.pyi
deleted file mode 100644
index 437fec31..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags/get.pyi
+++ /dev/null
@@ -1,288 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
-
-SchemaFor200ResponseBodyApplicationJson = GetEnvironmentFeatureFlagsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetEnvironmentFeatureFlagsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_environement_feature_flags_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_environement_feature_flags_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_environement_feature_flags_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_environement_feature_flags_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Environment Feature Flags
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetEnvironementFeatureFlags(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_environement_feature_flags(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_environement_feature_flags(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_environement_feature_flags(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_environement_feature_flags(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_environement_feature_flags_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_environement_feature_flags_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/__init__.py b/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index 01d644a7..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_environment_feature_flags_feature_flag_key import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ENVIRONMENT_FEATURE_FLAGS_FEATURE_FLAG_KEY
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/delete.py b/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/delete.py
deleted file mode 100644
index 7a9b72e0..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_environement_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_environement_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_environement_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_environement_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Environment Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteEnvironementFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_environement_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_environement_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_environement_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_environement_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/delete.pyi b/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/delete.pyi
deleted file mode 100644
index 890beff1..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_environement_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_environement_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_environement_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_environement_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Environment Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteEnvironementFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_environement_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_environement_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_environement_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_environement_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_environement_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/patch.py b/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/patch.py
deleted file mode 100644
index 173cfecc..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/patch.py
+++ /dev/null
@@ -1,504 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "value",
- }
-
- class properties:
- value = schemas.StrSchema
- __annotations__ = {
- "value": value,
- }
-
- value: MetaOapg.properties.value
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["value", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["value", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- value: typing.Union[MetaOapg.properties.value, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- value=value,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Environment Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateEnvironementFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_environement_feature_flag_override_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_environement_feature_flag_override_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/patch.pyi b/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/patch.pyi
deleted file mode 100644
index f1f29b9d..00000000
--- a/kinde_sdk/paths/api_v1_environment_feature_flags_feature_flag_key/patch.pyi
+++ /dev/null
@@ -1,493 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "value",
- }
-
- class properties:
- value = schemas.StrSchema
- __annotations__ = {
- "value": value,
- }
-
- value: MetaOapg.properties.value
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["value", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["value", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- value: typing.Union[MetaOapg.properties.value, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- value=value,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_environement_feature_flag_override_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Environment Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateEnvironementFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_environement_feature_flag_override(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_environement_feature_flag_override_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_environement_feature_flag_override_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_event_types/__init__.py b/kinde_sdk/paths/api_v1_event_types/__init__.py
deleted file mode 100644
index 2650864f..00000000
--- a/kinde_sdk/paths/api_v1_event_types/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_event_types import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_EVENT_TYPES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_event_types/get.py b/kinde_sdk/paths/api_v1_event_types/get.py
deleted file mode 100644
index d075e94c..00000000
--- a/kinde_sdk/paths/api_v1_event_types/get.py
+++ /dev/null
@@ -1,310 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_event_types_response import GetEventTypesResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetEventTypesResponse
-SchemaFor200ResponseBodyApplicationJson = GetEventTypesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_event_types_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_event_types_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_event_types_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_event_types_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Event Types
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetEventTypes(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_event_types(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_event_types(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_event_types(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_event_types(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_types_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_types_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_event_types/get.pyi b/kinde_sdk/paths/api_v1_event_types/get.pyi
deleted file mode 100644
index 1e2266a0..00000000
--- a/kinde_sdk/paths/api_v1_event_types/get.pyi
+++ /dev/null
@@ -1,299 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_event_types_response import GetEventTypesResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetEventTypesResponse
-SchemaFor200ResponseBodyApplicationJson = GetEventTypesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_event_types_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_event_types_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_event_types_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_event_types_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Event Types
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetEventTypes(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_event_types(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_event_types(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_event_types(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_event_types(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_types_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_types_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_events_event_id/__init__.py b/kinde_sdk/paths/api_v1_events_event_id/__init__.py
deleted file mode 100644
index 1f8a7877..00000000
--- a/kinde_sdk/paths/api_v1_events_event_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_events_event_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_EVENTS_EVENT_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_events_event_id/get.py b/kinde_sdk/paths/api_v1_events_event_id/get.py
deleted file mode 100644
index d76ba9b7..00000000
--- a/kinde_sdk/paths/api_v1_events_event_id/get.py
+++ /dev/null
@@ -1,364 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_event_response import GetEventResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-EventIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'event_id': typing.Union[EventIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_event_id = api_client.PathParameter(
- name="event_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=EventIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetEventResponse
-SchemaFor200ResponseBodyApplicationJson = GetEventResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_event_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_event_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_event_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_event_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Event
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_event_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetEvent(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_event(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_event(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_event(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_event(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_events_event_id/get.pyi b/kinde_sdk/paths/api_v1_events_event_id/get.pyi
deleted file mode 100644
index 94c5fa00..00000000
--- a/kinde_sdk/paths/api_v1_events_event_id/get.pyi
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_event_response import GetEventResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-EventIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'event_id': typing.Union[EventIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_event_id = api_client.PathParameter(
- name="event_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=EventIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetEventResponse
-SchemaFor200ResponseBodyApplicationJson = GetEventResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_event_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_event_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_event_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_event_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Event
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_event_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetEvent(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_event(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_event(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_event(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_event(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_event_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_feature_flags/__init__.py b/kinde_sdk/paths/api_v1_feature_flags/__init__.py
deleted file mode 100644
index ceee7ae8..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_feature_flags import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_FEATURE_FLAGS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_feature_flags/post.py b/kinde_sdk/paths/api_v1_feature_flags/post.py
deleted file mode 100644
index dc2a9f43..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags/post.py
+++ /dev/null
@@ -1,553 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- "default_value",
- "type",
- "key",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "str": "STR",
- "int": "INT",
- "bool": "BOOL",
- }
-
- @schemas.classproperty
- def STR(cls):
- return cls("str")
-
- @schemas.classproperty
- def INT(cls):
- return cls("int")
-
- @schemas.classproperty
- def BOOL(cls):
- return cls("bool")
-
-
- class allow_override_level(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "env": "ENV",
- "org": "ORG",
- "usr": "USR",
- }
-
- @schemas.classproperty
- def ENV(cls):
- return cls("env")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
- default_value = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "type": type,
- "allow_override_level": allow_override_level,
- "default_value": default_value,
- }
-
- name: MetaOapg.properties.name
- default_value: MetaOapg.properties.default_value
- type: MetaOapg.properties.type
- key: MetaOapg.properties.key
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["allow_override_level"]) -> MetaOapg.properties.allow_override_level: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["default_value"]) -> MetaOapg.properties.default_value: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "allow_override_level", "default_value", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["allow_override_level"]) -> typing.Union[MetaOapg.properties.allow_override_level, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["default_value"]) -> MetaOapg.properties.default_value: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "allow_override_level", "default_value", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- default_value: typing.Union[MetaOapg.properties.default_value, str, ],
- type: typing.Union[MetaOapg.properties.type, str, ],
- key: typing.Union[MetaOapg.properties.key, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- allow_override_level: typing.Union[MetaOapg.properties.allow_override_level, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- default_value=default_value,
- type=type,
- key=key,
- description=description,
- allow_override_level=allow_override_level,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJson = SuccessResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Feature Flag
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateFeatureFlag(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_feature_flag_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_feature_flag_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_feature_flags/post.pyi b/kinde_sdk/paths/api_v1_feature_flags/post.pyi
deleted file mode 100644
index 40fd3769..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags/post.pyi
+++ /dev/null
@@ -1,526 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- "default_value",
- "type",
- "key",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def STR(cls):
- return cls("str")
-
- @schemas.classproperty
- def INT(cls):
- return cls("int")
-
- @schemas.classproperty
- def BOOL(cls):
- return cls("bool")
-
-
- class allow_override_level(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def ENV(cls):
- return cls("env")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
- default_value = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "type": type,
- "allow_override_level": allow_override_level,
- "default_value": default_value,
- }
-
- name: MetaOapg.properties.name
- default_value: MetaOapg.properties.default_value
- type: MetaOapg.properties.type
- key: MetaOapg.properties.key
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["allow_override_level"]) -> MetaOapg.properties.allow_override_level: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["default_value"]) -> MetaOapg.properties.default_value: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "allow_override_level", "default_value", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["allow_override_level"]) -> typing.Union[MetaOapg.properties.allow_override_level, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["default_value"]) -> MetaOapg.properties.default_value: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "allow_override_level", "default_value", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- default_value: typing.Union[MetaOapg.properties.default_value, str, ],
- type: typing.Union[MetaOapg.properties.type, str, ],
- key: typing.Union[MetaOapg.properties.key, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- allow_override_level: typing.Union[MetaOapg.properties.allow_override_level, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- default_value=default_value,
- type=type,
- key=key,
- description=description,
- allow_override_level=allow_override_level,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor201ResponseBodyApplicationJson = SuccessResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_feature_flag_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Feature Flag
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateFeatureFlag(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_feature_flag(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_feature_flag_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_feature_flag_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/__init__.py b/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index 5a9365e6..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_feature_flags_feature_flag_key import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_FEATURE_FLAGS_FEATURE_FLAG_KEY
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/delete.py b/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/delete.py
deleted file mode 100644
index 900b7ea6..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_feature_flag_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_feature_flag_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_feature_flag_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_feature_flag_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Feature Flag
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteFeatureFlag(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_feature_flag(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_feature_flag(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_feature_flag(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_feature_flag(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_feature_flag_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_feature_flag_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/delete.pyi b/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/delete.pyi
deleted file mode 100644
index 916390e8..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_feature_flag_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_feature_flag_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_feature_flag_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_feature_flag_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Feature Flag
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteFeatureFlag(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_feature_flag(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_feature_flag(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_feature_flag(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_feature_flag(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_feature_flag_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_feature_flag_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/put.py b/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/put.py
deleted file mode 100644
index 119a5c21..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/put.py
+++ /dev/null
@@ -1,493 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-NameSchema = schemas.StrSchema
-DescriptionSchema = schemas.StrSchema
-
-
-class TypeSchema(
- schemas.EnumBase,
- schemas.StrSchema
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "str": "STR",
- "int": "INT",
- "bool": "BOOL",
- }
-
- @schemas.classproperty
- def STR(cls):
- return cls("str")
-
- @schemas.classproperty
- def INT(cls):
- return cls("int")
-
- @schemas.classproperty
- def BOOL(cls):
- return cls("bool")
-
-
-class AllowOverrideLevelSchema(
- schemas.EnumBase,
- schemas.StrSchema
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "env": "ENV",
- "org": "ORG",
- }
-
- @schemas.classproperty
- def ENV(cls):
- return cls("env")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-DefaultValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'name': typing.Union[NameSchema, str, ],
- 'description': typing.Union[DescriptionSchema, str, ],
- 'type': typing.Union[TypeSchema, str, ],
- 'allow_override_level': typing.Union[AllowOverrideLevelSchema, str, ],
- 'default_value': typing.Union[DefaultValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- required=True,
- explode=True,
-)
-request_query_description = api_client.QueryParameter(
- name="description",
- style=api_client.ParameterStyle.FORM,
- schema=DescriptionSchema,
- required=True,
- explode=True,
-)
-request_query_type = api_client.QueryParameter(
- name="type",
- style=api_client.ParameterStyle.FORM,
- schema=TypeSchema,
- required=True,
- explode=True,
-)
-request_query_allow_override_level = api_client.QueryParameter(
- name="allow_override_level",
- style=api_client.ParameterStyle.FORM,
- schema=AllowOverrideLevelSchema,
- required=True,
- explode=True,
-)
-request_query_default_value = api_client.QueryParameter(
- name="default_value",
- style=api_client.ParameterStyle.FORM,
- schema=DefaultValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_feature_flag_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_feature_flag_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_feature_flag_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_feature_flag_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Replace Feature Flag
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_name,
- request_query_description,
- request_query_type,
- request_query_allow_override_level,
- request_query_default_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateFeatureFlag(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_feature_flag(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_feature_flag(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_feature_flag(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_feature_flag(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_feature_flag_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_feature_flag_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/put.pyi b/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/put.pyi
deleted file mode 100644
index ec3d25ec..00000000
--- a/kinde_sdk/paths/api_v1_feature_flags_feature_flag_key/put.pyi
+++ /dev/null
@@ -1,467 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-NameSchema = schemas.StrSchema
-DescriptionSchema = schemas.StrSchema
-
-
-class TypeSchema(
- schemas.EnumBase,
- schemas.StrSchema
-):
-
- @schemas.classproperty
- def STR(cls):
- return cls("str")
-
- @schemas.classproperty
- def INT(cls):
- return cls("int")
-
- @schemas.classproperty
- def BOOL(cls):
- return cls("bool")
-
-
-class AllowOverrideLevelSchema(
- schemas.EnumBase,
- schemas.StrSchema
-):
-
- @schemas.classproperty
- def ENV(cls):
- return cls("env")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-DefaultValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'name': typing.Union[NameSchema, str, ],
- 'description': typing.Union[DescriptionSchema, str, ],
- 'type': typing.Union[TypeSchema, str, ],
- 'allow_override_level': typing.Union[AllowOverrideLevelSchema, str, ],
- 'default_value': typing.Union[DefaultValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- required=True,
- explode=True,
-)
-request_query_description = api_client.QueryParameter(
- name="description",
- style=api_client.ParameterStyle.FORM,
- schema=DescriptionSchema,
- required=True,
- explode=True,
-)
-request_query_type = api_client.QueryParameter(
- name="type",
- style=api_client.ParameterStyle.FORM,
- schema=TypeSchema,
- required=True,
- explode=True,
-)
-request_query_allow_override_level = api_client.QueryParameter(
- name="allow_override_level",
- style=api_client.ParameterStyle.FORM,
- schema=AllowOverrideLevelSchema,
- required=True,
- explode=True,
-)
-request_query_default_value = api_client.QueryParameter(
- name="default_value",
- style=api_client.ParameterStyle.FORM,
- schema=DefaultValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_feature_flag_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_feature_flag_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_feature_flag_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_feature_flag_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Replace Feature Flag
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_name,
- request_query_description,
- request_query_type,
- request_query_allow_override_level,
- request_query_default_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateFeatureFlag(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_feature_flag(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_feature_flag(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_feature_flag(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_feature_flag(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_feature_flag_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_feature_flag_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_industries/__init__.py b/kinde_sdk/paths/api_v1_industries/__init__.py
deleted file mode 100644
index 2c59ca19..00000000
--- a/kinde_sdk/paths/api_v1_industries/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_industries import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_INDUSTRIES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_industries/get.py b/kinde_sdk/paths/api_v1_industries/get.py
deleted file mode 100644
index 8d98b8d1..00000000
--- a/kinde_sdk/paths/api_v1_industries/get.py
+++ /dev/null
@@ -1,332 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-from . import path
-
-# Query params
-IndustryKeySchema = schemas.StrSchema
-NameSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'industry_key': typing.Union[IndustryKeySchema, str, ],
- 'name': typing.Union[NameSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_industry_key = api_client.QueryParameter(
- name="industry_key",
- style=api_client.ParameterStyle.FORM,
- schema=IndustryKeySchema,
- explode=True,
-)
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_industries_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _get_industries_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_industries_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_industries_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List industries and industry keys.
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_industry_key,
- request_query_name,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetIndustries(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_industries(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get_industries(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_industries(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_industries(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_industries_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_industries_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_industries/get.pyi b/kinde_sdk/paths/api_v1_industries/get.pyi
deleted file mode 100644
index 0a3dd5f7..00000000
--- a/kinde_sdk/paths/api_v1_industries/get.pyi
+++ /dev/null
@@ -1,322 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-# Query params
-IndustryKeySchema = schemas.StrSchema
-NameSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'industry_key': typing.Union[IndustryKeySchema, str, ],
- 'name': typing.Union[NameSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_industry_key = api_client.QueryParameter(
- name="industry_key",
- style=api_client.ParameterStyle.FORM,
- schema=IndustryKeySchema,
- explode=True,
-)
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- explode=True,
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_industries_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _get_industries_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_industries_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_industries_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List industries and industry keys.
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_industry_key,
- request_query_name,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetIndustries(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_industries(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get_industries(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_industries(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_industries(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_industries_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_industries_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization/__init__.py b/kinde_sdk/paths/api_v1_organization/__init__.py
deleted file mode 100644
index 6ba90363..00000000
--- a/kinde_sdk/paths/api_v1_organization/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organization import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATION
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organization/get.py b/kinde_sdk/paths/api_v1_organization/get.py
deleted file mode 100644
index a1e68b68..00000000
--- a/kinde_sdk/paths/api_v1_organization/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.organization import Organization
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-CodeSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'code': typing.Union[CodeSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_code = api_client.QueryParameter(
- name="code",
- style=api_client.ParameterStyle.FORM,
- schema=CodeSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = Organization
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Organization
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_code,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization/get.pyi b/kinde_sdk/paths/api_v1_organization/get.pyi
deleted file mode 100644
index 04a61736..00000000
--- a/kinde_sdk/paths/api_v1_organization/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.organization import Organization
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-CodeSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'code': typing.Union[CodeSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_code = api_client.QueryParameter(
- name="code",
- style=api_client.ParameterStyle.FORM,
- schema=CodeSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = Organization
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = Organization
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_code,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization/post.py b/kinde_sdk/paths/api_v1_organization/post.py
deleted file mode 100644
index b8a566c4..00000000
--- a/kinde_sdk/paths/api_v1_organization/post.py
+++ /dev/null
@@ -1,639 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_organization_response import CreateOrganizationResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
-
-
- class feature_flags(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
-
- class additional_properties(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "str": "STR",
- "int": "INT",
- "bool": "BOOL",
- }
-
- @schemas.classproperty
- def STR(cls):
- return cls("str")
-
- @schemas.classproperty
- def INT(cls):
- return cls("int")
-
- @schemas.classproperty
- def BOOL(cls):
- return cls("bool")
-
- def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
- def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
- return super().get_item_oapg(name)
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[MetaOapg.additional_properties, str, ],
- ) -> 'feature_flags':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- **kwargs,
- )
- external_id = schemas.StrSchema
- background_color = schemas.StrSchema
- button_color = schemas.StrSchema
- button_text_color = schemas.StrSchema
- link_color = schemas.StrSchema
- background_color_dark = schemas.StrSchema
- button_color_dark = schemas.StrSchema
- button_text_color_dark = schemas.StrSchema
- link_color_dark = schemas.StrSchema
- theme_code = schemas.StrSchema
- handle = schemas.StrSchema
- is_allow_registrations = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "feature_flags": feature_flags,
- "external_id": external_id,
- "background_color": background_color,
- "button_color": button_color,
- "button_text_color": button_text_color,
- "link_color": link_color,
- "background_color_dark": background_color_dark,
- "button_color_dark": button_color_dark,
- "button_text_color_dark": button_text_color_dark,
- "link_color_dark": link_color_dark,
- "theme_code": theme_code,
- "handle": handle,
- "is_allow_registrations": is_allow_registrations,
- }
-
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["feature_flags"]) -> MetaOapg.properties.feature_flags: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["external_id"]) -> MetaOapg.properties.external_id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color"]) -> MetaOapg.properties.background_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color"]) -> MetaOapg.properties.button_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color"]) -> MetaOapg.properties.button_text_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color"]) -> MetaOapg.properties.link_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color_dark"]) -> MetaOapg.properties.background_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color_dark"]) -> MetaOapg.properties.button_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color_dark"]) -> MetaOapg.properties.button_text_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color_dark"]) -> MetaOapg.properties.link_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["theme_code"]) -> MetaOapg.properties.theme_code: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["handle"]) -> MetaOapg.properties.handle: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_allow_registrations"]) -> MetaOapg.properties.is_allow_registrations: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "feature_flags", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["feature_flags"]) -> typing.Union[MetaOapg.properties.feature_flags, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["external_id"]) -> typing.Union[MetaOapg.properties.external_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color"]) -> typing.Union[MetaOapg.properties.background_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color"]) -> typing.Union[MetaOapg.properties.button_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color"]) -> typing.Union[MetaOapg.properties.button_text_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color"]) -> typing.Union[MetaOapg.properties.link_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color_dark"]) -> typing.Union[MetaOapg.properties.background_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color_dark"]) -> typing.Union[MetaOapg.properties.button_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color_dark"]) -> typing.Union[MetaOapg.properties.button_text_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color_dark"]) -> typing.Union[MetaOapg.properties.link_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["theme_code"]) -> typing.Union[MetaOapg.properties.theme_code, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["handle"]) -> typing.Union[MetaOapg.properties.handle, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_allow_registrations"]) -> typing.Union[MetaOapg.properties.is_allow_registrations, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "feature_flags", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- feature_flags: typing.Union[MetaOapg.properties.feature_flags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- external_id: typing.Union[MetaOapg.properties.external_id, str, schemas.Unset] = schemas.unset,
- background_color: typing.Union[MetaOapg.properties.background_color, str, schemas.Unset] = schemas.unset,
- button_color: typing.Union[MetaOapg.properties.button_color, str, schemas.Unset] = schemas.unset,
- button_text_color: typing.Union[MetaOapg.properties.button_text_color, str, schemas.Unset] = schemas.unset,
- link_color: typing.Union[MetaOapg.properties.link_color, str, schemas.Unset] = schemas.unset,
- background_color_dark: typing.Union[MetaOapg.properties.background_color_dark, str, schemas.Unset] = schemas.unset,
- button_color_dark: typing.Union[MetaOapg.properties.button_color_dark, str, schemas.Unset] = schemas.unset,
- button_text_color_dark: typing.Union[MetaOapg.properties.button_text_color_dark, str, schemas.Unset] = schemas.unset,
- link_color_dark: typing.Union[MetaOapg.properties.link_color_dark, str, schemas.Unset] = schemas.unset,
- theme_code: typing.Union[MetaOapg.properties.theme_code, str, schemas.Unset] = schemas.unset,
- handle: typing.Union[MetaOapg.properties.handle, str, schemas.Unset] = schemas.unset,
- is_allow_registrations: typing.Union[MetaOapg.properties.is_allow_registrations, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- feature_flags=feature_flags,
- external_id=external_id,
- background_color=background_color,
- button_color=button_color,
- button_text_color=button_text_color,
- link_color=link_color,
- background_color_dark=background_color_dark,
- button_color_dark=button_color_dark,
- button_text_color_dark=button_text_color_dark,
- link_color_dark=link_color_dark,
- theme_code=theme_code,
- handle=handle,
- is_allow_registrations=is_allow_registrations,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = CreateOrganizationResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-
-
-@dataclass
-class ApiResponseFor500(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_500 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor500,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
- '500': _response_for_500,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization/post.pyi b/kinde_sdk/paths/api_v1_organization/post.pyi
deleted file mode 100644
index c20e0708..00000000
--- a/kinde_sdk/paths/api_v1_organization/post.pyi
+++ /dev/null
@@ -1,619 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_organization_response import CreateOrganizationResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
-
-
- class feature_flags(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
-
- class additional_properties(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def STR(cls):
- return cls("str")
-
- @schemas.classproperty
- def INT(cls):
- return cls("int")
-
- @schemas.classproperty
- def BOOL(cls):
- return cls("bool")
-
- def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
- def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
- return super().get_item_oapg(name)
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[MetaOapg.additional_properties, str, ],
- ) -> 'feature_flags':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- **kwargs,
- )
- external_id = schemas.StrSchema
- background_color = schemas.StrSchema
- button_color = schemas.StrSchema
- button_text_color = schemas.StrSchema
- link_color = schemas.StrSchema
- background_color_dark = schemas.StrSchema
- button_color_dark = schemas.StrSchema
- button_text_color_dark = schemas.StrSchema
- link_color_dark = schemas.StrSchema
- theme_code = schemas.StrSchema
- handle = schemas.StrSchema
- is_allow_registrations = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "feature_flags": feature_flags,
- "external_id": external_id,
- "background_color": background_color,
- "button_color": button_color,
- "button_text_color": button_text_color,
- "link_color": link_color,
- "background_color_dark": background_color_dark,
- "button_color_dark": button_color_dark,
- "button_text_color_dark": button_text_color_dark,
- "link_color_dark": link_color_dark,
- "theme_code": theme_code,
- "handle": handle,
- "is_allow_registrations": is_allow_registrations,
- }
-
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["feature_flags"]) -> MetaOapg.properties.feature_flags: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["external_id"]) -> MetaOapg.properties.external_id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color"]) -> MetaOapg.properties.background_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color"]) -> MetaOapg.properties.button_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color"]) -> MetaOapg.properties.button_text_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color"]) -> MetaOapg.properties.link_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color_dark"]) -> MetaOapg.properties.background_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color_dark"]) -> MetaOapg.properties.button_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color_dark"]) -> MetaOapg.properties.button_text_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color_dark"]) -> MetaOapg.properties.link_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["theme_code"]) -> MetaOapg.properties.theme_code: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["handle"]) -> MetaOapg.properties.handle: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_allow_registrations"]) -> MetaOapg.properties.is_allow_registrations: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "feature_flags", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["feature_flags"]) -> typing.Union[MetaOapg.properties.feature_flags, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["external_id"]) -> typing.Union[MetaOapg.properties.external_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color"]) -> typing.Union[MetaOapg.properties.background_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color"]) -> typing.Union[MetaOapg.properties.button_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color"]) -> typing.Union[MetaOapg.properties.button_text_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color"]) -> typing.Union[MetaOapg.properties.link_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color_dark"]) -> typing.Union[MetaOapg.properties.background_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color_dark"]) -> typing.Union[MetaOapg.properties.button_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color_dark"]) -> typing.Union[MetaOapg.properties.button_text_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color_dark"]) -> typing.Union[MetaOapg.properties.link_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["theme_code"]) -> typing.Union[MetaOapg.properties.theme_code, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["handle"]) -> typing.Union[MetaOapg.properties.handle, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_allow_registrations"]) -> typing.Union[MetaOapg.properties.is_allow_registrations, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "feature_flags", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- feature_flags: typing.Union[MetaOapg.properties.feature_flags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- external_id: typing.Union[MetaOapg.properties.external_id, str, schemas.Unset] = schemas.unset,
- background_color: typing.Union[MetaOapg.properties.background_color, str, schemas.Unset] = schemas.unset,
- button_color: typing.Union[MetaOapg.properties.button_color, str, schemas.Unset] = schemas.unset,
- button_text_color: typing.Union[MetaOapg.properties.button_text_color, str, schemas.Unset] = schemas.unset,
- link_color: typing.Union[MetaOapg.properties.link_color, str, schemas.Unset] = schemas.unset,
- background_color_dark: typing.Union[MetaOapg.properties.background_color_dark, str, schemas.Unset] = schemas.unset,
- button_color_dark: typing.Union[MetaOapg.properties.button_color_dark, str, schemas.Unset] = schemas.unset,
- button_text_color_dark: typing.Union[MetaOapg.properties.button_text_color_dark, str, schemas.Unset] = schemas.unset,
- link_color_dark: typing.Union[MetaOapg.properties.link_color_dark, str, schemas.Unset] = schemas.unset,
- theme_code: typing.Union[MetaOapg.properties.theme_code, str, schemas.Unset] = schemas.unset,
- handle: typing.Union[MetaOapg.properties.handle, str, schemas.Unset] = schemas.unset,
- is_allow_registrations: typing.Union[MetaOapg.properties.is_allow_registrations, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- feature_flags=feature_flags,
- external_id=external_id,
- background_color=background_color,
- button_color=button_color,
- button_text_color=button_text_color,
- link_color=link_color,
- background_color_dark=background_color_dark,
- button_color_dark=button_color_dark,
- button_text_color_dark=button_text_color_dark,
- link_color_dark=link_color_dark,
- theme_code=theme_code,
- handle=handle,
- is_allow_registrations=is_allow_registrations,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = CreateOrganizationResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-
-
-@dataclass
-class ApiResponseFor500(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_500 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor500,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_organization_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_organization(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization_org_code/__init__.py b/kinde_sdk/paths/api_v1_organization_org_code/__init__.py
deleted file mode 100644
index 0dcd54e5..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organization_org_code import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATION_ORG_CODE
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organization_org_code/delete.py b/kinde_sdk/paths/api_v1_organization_org_code/delete.py
deleted file mode 100644
index 2d1eb158..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code/delete.py
+++ /dev/null
@@ -1,341 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization_org_code/delete.pyi b/kinde_sdk/paths/api_v1_organization_org_code/delete.pyi
deleted file mode 100644
index d09e7463..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code/delete.pyi
+++ /dev/null
@@ -1,330 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization_org_code/patch.py b/kinde_sdk/paths/api_v1_organization_org_code/patch.py
deleted file mode 100644
index 9f96e7ba..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code/patch.py
+++ /dev/null
@@ -1,616 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- external_id = schemas.StrSchema
- background_color = schemas.StrSchema
- button_color = schemas.StrSchema
- button_text_color = schemas.StrSchema
- link_color = schemas.StrSchema
- background_color_dark = schemas.StrSchema
- button_color_dark = schemas.StrSchema
- button_text_color_dark = schemas.StrSchema
- link_color_dark = schemas.StrSchema
- theme_code = schemas.StrSchema
- handle = schemas.StrSchema
- is_allow_registrations = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "external_id": external_id,
- "background_color": background_color,
- "button_color": button_color,
- "button_text_color": button_text_color,
- "link_color": link_color,
- "background_color_dark": background_color_dark,
- "button_color_dark": button_color_dark,
- "button_text_color_dark": button_text_color_dark,
- "link_color_dark": link_color_dark,
- "theme_code": theme_code,
- "handle": handle,
- "is_allow_registrations": is_allow_registrations,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["external_id"]) -> MetaOapg.properties.external_id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color"]) -> MetaOapg.properties.background_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color"]) -> MetaOapg.properties.button_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color"]) -> MetaOapg.properties.button_text_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color"]) -> MetaOapg.properties.link_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color_dark"]) -> MetaOapg.properties.background_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color_dark"]) -> MetaOapg.properties.button_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color_dark"]) -> MetaOapg.properties.button_text_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color_dark"]) -> MetaOapg.properties.link_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["theme_code"]) -> MetaOapg.properties.theme_code: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["handle"]) -> MetaOapg.properties.handle: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_allow_registrations"]) -> MetaOapg.properties.is_allow_registrations: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["external_id"]) -> typing.Union[MetaOapg.properties.external_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color"]) -> typing.Union[MetaOapg.properties.background_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color"]) -> typing.Union[MetaOapg.properties.button_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color"]) -> typing.Union[MetaOapg.properties.button_text_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color"]) -> typing.Union[MetaOapg.properties.link_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color_dark"]) -> typing.Union[MetaOapg.properties.background_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color_dark"]) -> typing.Union[MetaOapg.properties.button_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color_dark"]) -> typing.Union[MetaOapg.properties.button_text_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color_dark"]) -> typing.Union[MetaOapg.properties.link_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["theme_code"]) -> typing.Union[MetaOapg.properties.theme_code, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["handle"]) -> typing.Union[MetaOapg.properties.handle, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_allow_registrations"]) -> typing.Union[MetaOapg.properties.is_allow_registrations, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- external_id: typing.Union[MetaOapg.properties.external_id, str, schemas.Unset] = schemas.unset,
- background_color: typing.Union[MetaOapg.properties.background_color, str, schemas.Unset] = schemas.unset,
- button_color: typing.Union[MetaOapg.properties.button_color, str, schemas.Unset] = schemas.unset,
- button_text_color: typing.Union[MetaOapg.properties.button_text_color, str, schemas.Unset] = schemas.unset,
- link_color: typing.Union[MetaOapg.properties.link_color, str, schemas.Unset] = schemas.unset,
- background_color_dark: typing.Union[MetaOapg.properties.background_color_dark, str, schemas.Unset] = schemas.unset,
- button_color_dark: typing.Union[MetaOapg.properties.button_color_dark, str, schemas.Unset] = schemas.unset,
- button_text_color_dark: typing.Union[MetaOapg.properties.button_text_color_dark, str, schemas.Unset] = schemas.unset,
- link_color_dark: typing.Union[MetaOapg.properties.link_color_dark, str, schemas.Unset] = schemas.unset,
- theme_code: typing.Union[MetaOapg.properties.theme_code, str, schemas.Unset] = schemas.unset,
- handle: typing.Union[MetaOapg.properties.handle, str, schemas.Unset] = schemas.unset,
- is_allow_registrations: typing.Union[MetaOapg.properties.is_allow_registrations, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- external_id=external_id,
- background_color=background_color,
- button_color=button_color,
- button_text_color=button_text_color,
- link_color=link_color,
- background_color_dark=background_color_dark,
- button_color_dark=button_color_dark,
- button_text_color_dark=button_text_color_dark,
- link_color_dark=link_color_dark,
- theme_code=theme_code,
- handle=handle,
- is_allow_registrations=is_allow_registrations,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_organization_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_organization(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization_org_code/patch.pyi b/kinde_sdk/paths/api_v1_organization_org_code/patch.pyi
deleted file mode 100644
index 72d12c0d..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code/patch.pyi
+++ /dev/null
@@ -1,605 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- external_id = schemas.StrSchema
- background_color = schemas.StrSchema
- button_color = schemas.StrSchema
- button_text_color = schemas.StrSchema
- link_color = schemas.StrSchema
- background_color_dark = schemas.StrSchema
- button_color_dark = schemas.StrSchema
- button_text_color_dark = schemas.StrSchema
- link_color_dark = schemas.StrSchema
- theme_code = schemas.StrSchema
- handle = schemas.StrSchema
- is_allow_registrations = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "external_id": external_id,
- "background_color": background_color,
- "button_color": button_color,
- "button_text_color": button_text_color,
- "link_color": link_color,
- "background_color_dark": background_color_dark,
- "button_color_dark": button_color_dark,
- "button_text_color_dark": button_text_color_dark,
- "link_color_dark": link_color_dark,
- "theme_code": theme_code,
- "handle": handle,
- "is_allow_registrations": is_allow_registrations,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["external_id"]) -> MetaOapg.properties.external_id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color"]) -> MetaOapg.properties.background_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color"]) -> MetaOapg.properties.button_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color"]) -> MetaOapg.properties.button_text_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color"]) -> MetaOapg.properties.link_color: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["background_color_dark"]) -> MetaOapg.properties.background_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_color_dark"]) -> MetaOapg.properties.button_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["button_text_color_dark"]) -> MetaOapg.properties.button_text_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["link_color_dark"]) -> MetaOapg.properties.link_color_dark: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["theme_code"]) -> MetaOapg.properties.theme_code: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["handle"]) -> MetaOapg.properties.handle: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_allow_registrations"]) -> MetaOapg.properties.is_allow_registrations: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["external_id"]) -> typing.Union[MetaOapg.properties.external_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color"]) -> typing.Union[MetaOapg.properties.background_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color"]) -> typing.Union[MetaOapg.properties.button_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color"]) -> typing.Union[MetaOapg.properties.button_text_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color"]) -> typing.Union[MetaOapg.properties.link_color, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["background_color_dark"]) -> typing.Union[MetaOapg.properties.background_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_color_dark"]) -> typing.Union[MetaOapg.properties.button_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["button_text_color_dark"]) -> typing.Union[MetaOapg.properties.button_text_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["link_color_dark"]) -> typing.Union[MetaOapg.properties.link_color_dark, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["theme_code"]) -> typing.Union[MetaOapg.properties.theme_code, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["handle"]) -> typing.Union[MetaOapg.properties.handle, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_allow_registrations"]) -> typing.Union[MetaOapg.properties.is_allow_registrations, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "external_id", "background_color", "button_color", "button_text_color", "link_color", "background_color_dark", "button_color_dark", "button_text_color_dark", "link_color_dark", "theme_code", "handle", "is_allow_registrations", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- external_id: typing.Union[MetaOapg.properties.external_id, str, schemas.Unset] = schemas.unset,
- background_color: typing.Union[MetaOapg.properties.background_color, str, schemas.Unset] = schemas.unset,
- button_color: typing.Union[MetaOapg.properties.button_color, str, schemas.Unset] = schemas.unset,
- button_text_color: typing.Union[MetaOapg.properties.button_text_color, str, schemas.Unset] = schemas.unset,
- link_color: typing.Union[MetaOapg.properties.link_color, str, schemas.Unset] = schemas.unset,
- background_color_dark: typing.Union[MetaOapg.properties.background_color_dark, str, schemas.Unset] = schemas.unset,
- button_color_dark: typing.Union[MetaOapg.properties.button_color_dark, str, schemas.Unset] = schemas.unset,
- button_text_color_dark: typing.Union[MetaOapg.properties.button_text_color_dark, str, schemas.Unset] = schemas.unset,
- link_color_dark: typing.Union[MetaOapg.properties.link_color_dark, str, schemas.Unset] = schemas.unset,
- theme_code: typing.Union[MetaOapg.properties.theme_code, str, schemas.Unset] = schemas.unset,
- handle: typing.Union[MetaOapg.properties.handle, str, schemas.Unset] = schemas.unset,
- is_allow_registrations: typing.Union[MetaOapg.properties.is_allow_registrations, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- external_id=external_id,
- background_color=background_color,
- button_color=button_color,
- button_text_color=button_text_color,
- link_color=link_color,
- background_color_dark=background_color_dark,
- button_color_dark=button_color_dark,
- button_text_color_dark=button_text_color_dark,
- link_color_dark=link_color_dark,
- theme_code=theme_code,
- handle=handle,
- is_allow_registrations=is_allow_registrations,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_organization_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganization(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_organization(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization_org_code_handle/__init__.py b/kinde_sdk/paths/api_v1_organization_org_code_handle/__init__.py
deleted file mode 100644
index 4997640a..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code_handle/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organization_org_code_handle import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATION_ORG_CODE_HANDLE
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organization_org_code_handle/delete.py b/kinde_sdk/paths/api_v1_organization_org_code_handle/delete.py
deleted file mode 100644
index bd6ff97c..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code_handle/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_handle_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_handle_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_handle_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_handle_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete organization handle
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationHandle(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_handle(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_handle(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_handle(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_handle(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_handle_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_handle_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organization_org_code_handle/delete.pyi b/kinde_sdk/paths/api_v1_organization_org_code_handle/delete.pyi
deleted file mode 100644
index 09733662..00000000
--- a/kinde_sdk/paths/api_v1_organization_org_code_handle/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_handle_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_handle_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_handle_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_handle_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete organization handle
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationHandle(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_handle(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_handle(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_handle(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_handle(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_handle_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_handle_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations/__init__.py b/kinde_sdk/paths/api_v1_organizations/__init__.py
deleted file mode 100644
index 546e7cf2..00000000
--- a/kinde_sdk/paths/api_v1_organizations/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations/get.py b/kinde_sdk/paths/api_v1_organizations/get.py
deleted file mode 100644
index 0667bf94..00000000
--- a/kinde_sdk/paths/api_v1_organizations/get.py
+++ /dev/null
@@ -1,429 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organizations_response import GetOrganizationsResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "email_asc": "EMAIL_ASC",
- "email_desc": "EMAIL_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def EMAIL_ASC(cls):
- return cls("email_asc")
-
- @schemas.classproperty
- def EMAIL_DESC(cls):
- return cls("email_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organizations_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organizations_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organizations_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organizations_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organizations
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizations(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organizations(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organizations(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organizations(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organizations(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organizations_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organizations_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations/get.pyi b/kinde_sdk/paths/api_v1_organizations/get.pyi
deleted file mode 100644
index 4457d022..00000000
--- a/kinde_sdk/paths/api_v1_organizations/get.pyi
+++ /dev/null
@@ -1,419 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organizations_response import GetOrganizationsResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "email_asc": "EMAIL_ASC",
- "email_desc": "EMAIL_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def EMAIL_ASC(cls):
- return cls("email_asc")
-
- @schemas.classproperty
- def EMAIL_DESC(cls):
- return cls("email_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organizations_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organizations_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organizations_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organizations_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organizations
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizations(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organizations(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organizations(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organizations(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organizations(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organizations_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organizations_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/__init__.py
deleted file mode 100644
index c60be527..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_feature_flags import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_FEATURE_FLAGS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/delete.py b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/delete.py
deleted file mode 100644
index 86edd805..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization Feature Flag Overrides
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationFeatureFlagOverrides(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_feature_flag_overrides(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_feature_flag_overrides(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_feature_flag_overrides(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_feature_flag_overrides(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_overrides_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_overrides_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/delete.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/delete.pyi
deleted file mode 100644
index 7cf85cb2..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_feature_flag_overrides_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization Feature Flag Overrides
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationFeatureFlagOverrides(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_feature_flag_overrides(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_feature_flag_overrides(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_feature_flag_overrides(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_feature_flag_overrides(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_overrides_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_overrides_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/get.py b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/get.py
deleted file mode 100644
index 5dec27ae..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationFeatureFlagsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationFeatureFlagsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_feature_flags_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_feature_flags_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_feature_flags_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_feature_flags_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization Feature Flags
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationFeatureFlags(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_feature_flags(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_feature_flags(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_feature_flags(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_feature_flags(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_feature_flags_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_feature_flags_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/get.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/get.pyi
deleted file mode 100644
index 79cfe35e..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationFeatureFlagsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationFeatureFlagsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_feature_flags_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_feature_flags_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_feature_flags_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_feature_flags_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization Feature Flags
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationFeatureFlags(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_feature_flags(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_feature_flags(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_feature_flags(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_feature_flags(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_feature_flags_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_feature_flags_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index 20420a52..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_feature_flags_feature_flag_key import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_FEATURE_FLAGS_FEATURE_FLAG_KEY
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/delete.py b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/delete.py
deleted file mode 100644
index bd41ef06..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/delete.py
+++ /dev/null
@@ -1,362 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/delete.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/delete.pyi
deleted file mode 100644
index ad294e98..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/delete.pyi
+++ /dev/null
@@ -1,351 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_feature_flag_override_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_feature_flag_override(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_feature_flag_override_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/patch.py b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/patch.py
deleted file mode 100644
index a6b7284f..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/patch.py
+++ /dev/null
@@ -1,417 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/patch.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/patch.pyi
deleted file mode 100644
index 0cee2527..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_feature_flags_feature_flag_key/patch.pyi
+++ /dev/null
@@ -1,406 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_properties/__init__.py
deleted file mode 100644
index 33e4319d..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_properties import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_PROPERTIES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties/get.py b/kinde_sdk/paths/api_v1_organizations_org_code_properties/get.py
deleted file mode 100644
index aa36ac5c..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_property_values_response import GetPropertyValuesResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetPropertyValuesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPropertyValuesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_property_values_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Organization Property Values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationPropertyValues(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_property_values(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties/get.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_properties/get.pyi
deleted file mode 100644
index 6c7c2258..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_property_values_response import GetPropertyValuesResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetPropertyValuesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPropertyValuesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_property_values_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Organization Property Values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationPropertyValues(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_property_values(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties/patch.py b/kinde_sdk/paths/api_v1_organizations_org_code_properties/patch.py
deleted file mode 100644
index 57bd51f5..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties/patch.py
+++ /dev/null
@@ -1,504 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "properties",
- }
-
- class properties:
- properties = schemas.DictSchema
- __annotations__ = {
- "properties": properties,
- }
-
- properties: MetaOapg.properties.properties
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- properties: typing.Union[MetaOapg.properties.properties, dict, frozendict.frozendict, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- properties=properties,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Property values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationProperties(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties/patch.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_properties/patch.pyi
deleted file mode 100644
index e0f954a6..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties/patch.pyi
+++ /dev/null
@@ -1,493 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "properties",
- }
-
- class properties:
- properties = schemas.DictSchema
- __annotations__ = {
- "properties": properties,
- }
-
- properties: MetaOapg.properties.properties
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- properties: typing.Union[MetaOapg.properties.properties, dict, frozendict.frozendict, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- properties=properties,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Property values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationProperties(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/__init__.py
deleted file mode 100644
index 2061bd56..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_properties_property_key import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_PROPERTIES_PROPERTY_KEY
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/put.py b/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/put.py
deleted file mode 100644
index f13540eb..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/put.py
+++ /dev/null
@@ -1,417 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-PropertyKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'property_key': typing.Union[PropertyKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_property_key = api_client.PathParameter(
- name="property_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_property_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Property value
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_property_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_property(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/put.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/put.pyi
deleted file mode 100644
index a19ee850..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_properties_property_key/put.pyi
+++ /dev/null
@@ -1,406 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-PropertyKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'property_key': typing.Union[PropertyKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_property_key = api_client.PathParameter(
- name="property_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_property_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Property value
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_property_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_property(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_users/__init__.py
deleted file mode 100644
index b09eb098..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_users import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_USERS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/get.py b/kinde_sdk/paths/api_v1_organizations_org_code_users/get.py
deleted file mode 100644
index 51aaee31..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/get.py
+++ /dev/null
@@ -1,536 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organization_users_response import GetOrganizationUsersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "email_asc": "EMAIL_ASC",
- "email_desc": "EMAIL_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def EMAIL_ASC(cls):
- return cls("email_asc")
-
- @schemas.classproperty
- def EMAIL_DESC(cls):
- return cls("email_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-PermissionsSchema = schemas.StrSchema
-RolesSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- 'permissions': typing.Union[PermissionsSchema, str, ],
- 'roles': typing.Union[RolesSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-request_query_permissions = api_client.QueryParameter(
- name="permissions",
- style=api_client.ParameterStyle.FORM,
- schema=PermissionsSchema,
- explode=True,
-)
-request_query_roles = api_client.QueryParameter(
- name="roles",
- style=api_client.ParameterStyle.FORM,
- schema=RolesSchema,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationUsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationUsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- request_query_permissions,
- request_query_roles,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_users_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_users_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/get.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users/get.pyi
deleted file mode 100644
index 8f302f56..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/get.pyi
+++ /dev/null
@@ -1,525 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organization_users_response import GetOrganizationUsersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "email_asc": "EMAIL_ASC",
- "email_desc": "EMAIL_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def EMAIL_ASC(cls):
- return cls("email_asc")
-
- @schemas.classproperty
- def EMAIL_DESC(cls):
- return cls("email_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-PermissionsSchema = schemas.StrSchema
-RolesSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- 'permissions': typing.Union[PermissionsSchema, str, ],
- 'roles': typing.Union[RolesSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-request_query_permissions = api_client.QueryParameter(
- name="permissions",
- style=api_client.ParameterStyle.FORM,
- schema=PermissionsSchema,
- explode=True,
-)
-request_query_roles = api_client.QueryParameter(
- name="roles",
- style=api_client.ParameterStyle.FORM,
- schema=RolesSchema,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationUsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationUsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- request_query_permissions,
- request_query_roles,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_users_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_users_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/patch.py b/kinde_sdk/paths/api_v1_organizations_org_code_users/patch.py
deleted file mode 100644
index 16b0cac3..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/patch.py
+++ /dev/null
@@ -1,641 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.update_organization_users_response import UpdateOrganizationUsersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class users(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- id = schemas.StrSchema
- operation = schemas.StrSchema
-
-
- class roles(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'roles':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
-
-
- class permissions(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'permissions':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "id": id,
- "operation": operation,
- "roles": roles,
- "permissions": permissions,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "operation", "roles", "permissions", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "operation", "roles", "permissions", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,
- operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset,
- roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset,
- permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- operation=operation,
- roles=roles,
- permissions=permissions,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'users':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "users": users,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- users=users,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = UpdateOrganizationUsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateOrganizationUsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_users_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_organization_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_users_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_users(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_organization_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_users(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/patch.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users/patch.pyi
deleted file mode 100644
index f6543de7..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/patch.pyi
+++ /dev/null
@@ -1,630 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.update_organization_users_response import UpdateOrganizationUsersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class users(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- id = schemas.StrSchema
- operation = schemas.StrSchema
-
-
- class roles(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'roles':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
-
-
- class permissions(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'permissions':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "id": id,
- "operation": operation,
- "roles": roles,
- "permissions": permissions,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "operation", "roles", "permissions", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "operation", "roles", "permissions", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,
- operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset,
- roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset,
- permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- operation=operation,
- roles=roles,
- permissions=permissions,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'users':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "users": users,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- users=users,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor200ResponseBodyApplicationJson = UpdateOrganizationUsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateOrganizationUsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_organization_users_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_organization_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_organization_users_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Organization Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateOrganizationUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_organization_users(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_organization_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_organization_users(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/post.py b/kinde_sdk/paths/api_v1_organizations_org_code_users/post.py
deleted file mode 100644
index bb8797ca..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/post.py
+++ /dev/null
@@ -1,653 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.add_organization_users_response import AddOrganizationUsersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class users(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- id = schemas.StrSchema
-
-
- class roles(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'roles':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
-
-
- class permissions(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'permissions':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "id": id,
- "roles": roles,
- "permissions": permissions,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "roles", "permissions", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "roles", "permissions", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,
- roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset,
- permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- roles=roles,
- permissions=permissions,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'users':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "users": users,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- users=users,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = AddOrganizationUsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = AddOrganizationUsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor204(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_204 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor204,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '204': _response_for_204,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_organization_users_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
- @typing.overload
- def _add_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
-
- @typing.overload
- def _add_organization_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_organization_users_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Organization Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddOrganizationUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_organization_users(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
- @typing.overload
- def add_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
-
- @typing.overload
- def add_organization_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_organization_users(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users/post.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users/post.pyi
deleted file mode 100644
index 325d980f..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users/post.pyi
+++ /dev/null
@@ -1,641 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.add_organization_users_response import AddOrganizationUsersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class users(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- id = schemas.StrSchema
-
-
- class roles(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'roles':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
-
-
- class permissions(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'permissions':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "id": id,
- "roles": roles,
- "permissions": permissions,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "roles", "permissions", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "roles", "permissions", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,
- roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset,
- permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- roles=roles,
- permissions=permissions,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'users':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "users": users,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- users=users,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor200ResponseBodyApplicationJson = AddOrganizationUsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = AddOrganizationUsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor204(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_204 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor204,
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _add_organization_users_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
- @typing.overload
- def _add_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
-
- @typing.overload
- def _add_organization_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _add_organization_users_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _add_organization_users_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Organization Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class AddOrganizationUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def add_organization_users(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
- @typing.overload
- def add_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
-
- @typing.overload
- def add_organization_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def add_organization_users(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def add_organization_users(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ApiResponseFor204,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._add_organization_users_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/__init__.py
deleted file mode 100644
index 166360b8..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/delete.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/delete.py
deleted file mode 100644
index 50add7b1..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/delete.py
+++ /dev/null
@@ -1,362 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _remove_organization_user_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _remove_organization_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _remove_organization_user_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _remove_organization_user_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Remove Organization User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RemoveOrganizationUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def remove_organization_user(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def remove_organization_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def remove_organization_user(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def remove_organization_user(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_organization_user_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_organization_user_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/delete.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/delete.pyi
deleted file mode 100644
index 0316f3e4..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id/delete.pyi
+++ /dev/null
@@ -1,351 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _remove_organization_user_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _remove_organization_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _remove_organization_user_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _remove_organization_user_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Remove Organization User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RemoveOrganizationUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def remove_organization_user(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def remove_organization_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def remove_organization_user(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def remove_organization_user(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_organization_user_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_organization_user_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/__init__.py
deleted file mode 100644
index b1145f2a..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_permissions import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_PERMISSIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/get.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/get.py
deleted file mode 100644
index e50af3c2..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/get.py
+++ /dev/null
@@ -1,410 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
-
-from . import path
-
-# Query params
-
-
-class ExpandSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ExpandSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'expand': typing.Union[ExpandSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_expand = api_client.QueryParameter(
- name="expand",
- style=api_client.ParameterStyle.FORM,
- schema=ExpandSchema,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationsUserPermissionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationsUserPermissionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_user_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_user_permissions_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_user_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_user_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization User Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_expand,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationUserPermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_user_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_user_permissions(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_user_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_user_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_permissions_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_permissions_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/get.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/get.pyi
deleted file mode 100644
index c8457ec5..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/get.pyi
+++ /dev/null
@@ -1,400 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
-
-# Query params
-
-
-class ExpandSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ExpandSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'expand': typing.Union[ExpandSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_expand = api_client.QueryParameter(
- name="expand",
- style=api_client.ParameterStyle.FORM,
- schema=ExpandSchema,
- explode=True,
-)
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationsUserPermissionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationsUserPermissionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_user_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_user_permissions_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_user_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_user_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization User Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_expand,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationUserPermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_user_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_user_permissions(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_user_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_user_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_permissions_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_permissions_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/post.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/post.py
deleted file mode 100644
index ef775653..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/post.py
+++ /dev/null
@@ -1,483 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- permission_id = schemas.StrSchema
- __annotations__ = {
- "permission_id": permission_id,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permission_id"]) -> MetaOapg.properties.permission_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permission_id"]) -> typing.Union[MetaOapg.properties.permission_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- permission_id: typing.Union[MetaOapg.properties.permission_id, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- permission_id=permission_id,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Organization User Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateOrganizationUserPermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_permission_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_permission_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/post.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/post.pyi
deleted file mode 100644
index 7b709d10..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions/post.pyi
+++ /dev/null
@@ -1,473 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- permission_id = schemas.StrSchema
- __annotations__ = {
- "permission_id": permission_id,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permission_id"]) -> MetaOapg.properties.permission_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permission_id"]) -> typing.Union[MetaOapg.properties.permission_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- permission_id: typing.Union[MetaOapg.properties.permission_id, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- permission_id=permission_id,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_organization_user_permission_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Organization User Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateOrganizationUserPermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_organization_user_permission(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_permission_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_permission_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/__init__.py
deleted file mode 100644
index 4199c264..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_permissions_permission_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_PERMISSIONS_PERMISSION_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/delete.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/delete.py
deleted file mode 100644
index 5ecddaf1..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/delete.py
+++ /dev/null
@@ -1,371 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-PermissionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'permission_id': typing.Union[PermissionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_user_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_user_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_user_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_user_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization User Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationUserPermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_user_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_user_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_user_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_user_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/delete.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/delete.pyi
deleted file mode 100644
index 2adbd091..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_permissions_permission_id/delete.pyi
+++ /dev/null
@@ -1,360 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-PermissionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'permission_id': typing.Union[PermissionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_user_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_user_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_user_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_user_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization User Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationUserPermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_user_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_user_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_user_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_user_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/__init__.py
deleted file mode 100644
index 4a37aaa1..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_roles import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_ROLES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/get.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/get.py
deleted file mode 100644
index 33ed7589..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/get.py
+++ /dev/null
@@ -1,337 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationsUserRolesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationsUserRolesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_user_roles_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_user_roles_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_user_roles_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_user_roles_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization User Roles
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationUserRoles(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_user_roles(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_user_roles(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_user_roles(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_user_roles(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_roles_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_roles_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/get.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/get.pyi
deleted file mode 100644
index a2b4a32b..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/get.pyi
+++ /dev/null
@@ -1,327 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetOrganizationsUserRolesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetOrganizationsUserRolesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_organization_user_roles_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_organization_user_roles_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_organization_user_roles_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_organization_user_roles_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Organization User Roles
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetOrganizationUserRoles(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_organization_user_roles(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_organization_user_roles(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_organization_user_roles(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_organization_user_roles(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_roles_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_organization_user_roles_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/post.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/post.py
deleted file mode 100644
index 67ecb3d4..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/post.py
+++ /dev/null
@@ -1,483 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- role_id = schemas.StrSchema
- __annotations__ = {
- "role_id": role_id,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["role_id"]) -> MetaOapg.properties.role_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["role_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["role_id"]) -> typing.Union[MetaOapg.properties.role_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- role_id: typing.Union[MetaOapg.properties.role_id, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- role_id=role_id,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Organization User Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateOrganizationUserRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_role_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_role_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/post.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/post.pyi
deleted file mode 100644
index 3b6adfed..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles/post.pyi
+++ /dev/null
@@ -1,473 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- role_id = schemas.StrSchema
- __annotations__ = {
- "role_id": role_id,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["role_id"]) -> MetaOapg.properties.role_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["role_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["role_id"]) -> typing.Union[MetaOapg.properties.role_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- role_id: typing.Union[MetaOapg.properties.role_id, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- role_id=role_id,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_organization_user_role_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Add Organization User Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateOrganizationUserRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_organization_user_role(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_role_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_organization_user_role_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/__init__.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/__init__.py
deleted file mode 100644
index ebf7b5bd..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_roles_role_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ORGANIZATIONS_ORG_CODE_USERS_USER_ID_ROLES_ROLE_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/delete.py b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/delete.py
deleted file mode 100644
index fa160a97..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/delete.py
+++ /dev/null
@@ -1,371 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_user_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_user_role_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_user_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_user_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization User Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationUserRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_user_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_user_role(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_user_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_user_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/delete.pyi b/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/delete.pyi
deleted file mode 100644
index 70c36c54..00000000
--- a/kinde_sdk/paths/api_v1_organizations_org_code_users_user_id_roles_role_id/delete.pyi
+++ /dev/null
@@ -1,360 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-OrgCodeSchema = schemas.StrSchema
-UserIdSchema = schemas.StrSchema
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'org_code': typing.Union[OrgCodeSchema, str, ],
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_org_code = api_client.PathParameter(
- name="org_code",
- style=api_client.ParameterStyle.SIMPLE,
- schema=OrgCodeSchema,
- required=True,
-)
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_organization_user_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_organization_user_role_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_organization_user_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_organization_user_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Organization User Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_org_code,
- request_path_user_id,
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteOrganizationUserRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_organization_user_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_organization_user_role(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_organization_user_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_organization_user_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_organization_user_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions/__init__.py b/kinde_sdk/paths/api_v1_permissions/__init__.py
deleted file mode 100644
index aef7ae92..00000000
--- a/kinde_sdk/paths/api_v1_permissions/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_permissions import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_PERMISSIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_permissions/get.py b/kinde_sdk/paths/api_v1_permissions/get.py
deleted file mode 100644
index dab9d2a0..00000000
--- a/kinde_sdk/paths/api_v1_permissions/get.py
+++ /dev/null
@@ -1,441 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_permissions_response import GetPermissionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetPermissionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPermissionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_permissions_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetPermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_permissions(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_permissions_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_permissions_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions/get.pyi b/kinde_sdk/paths/api_v1_permissions/get.pyi
deleted file mode 100644
index c7610d44..00000000
--- a/kinde_sdk/paths/api_v1_permissions/get.pyi
+++ /dev/null
@@ -1,431 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_permissions_response import GetPermissionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetPermissionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPermissionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_permissions_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_permissions_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetPermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_permissions(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_permissions(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_permissions_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_permissions_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions/post.py b/kinde_sdk/paths/api_v1_permissions/post.py
deleted file mode 100644
index bd8d17c8..00000000
--- a/kinde_sdk/paths/api_v1_permissions/post.py
+++ /dev/null
@@ -1,457 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- description=description,
- key=key,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_permission_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_permission_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_permission_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_permission_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreatePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_permission(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_permission(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_permission(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_permission(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_permission_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_permission_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions/post.pyi b/kinde_sdk/paths/api_v1_permissions/post.pyi
deleted file mode 100644
index 1ac4b6ea..00000000
--- a/kinde_sdk/paths/api_v1_permissions/post.pyi
+++ /dev/null
@@ -1,446 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- description=description,
- key=key,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_permission_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_permission_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_permission_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_permission_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreatePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_permission(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_permission(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_permission(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_permission(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_permission_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_permission_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions_permission_id/__init__.py b/kinde_sdk/paths/api_v1_permissions_permission_id/__init__.py
deleted file mode 100644
index f236914c..00000000
--- a/kinde_sdk/paths/api_v1_permissions_permission_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_permissions_permission_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_PERMISSIONS_PERMISSION_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_permissions_permission_id/delete.py b/kinde_sdk/paths/api_v1_permissions_permission_id/delete.py
deleted file mode 100644
index df7b0e21..00000000
--- a/kinde_sdk/paths/api_v1_permissions_permission_id/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-PermissionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'permission_id': typing.Union[PermissionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeletePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions_permission_id/delete.pyi b/kinde_sdk/paths/api_v1_permissions_permission_id/delete.pyi
deleted file mode 100644
index 40f5e039..00000000
--- a/kinde_sdk/paths/api_v1_permissions_permission_id/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-PermissionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'permission_id': typing.Union[PermissionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeletePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions_permission_id/patch.py b/kinde_sdk/paths/api_v1_permissions_permission_id/patch.py
deleted file mode 100644
index 2c202742..00000000
--- a/kinde_sdk/paths/api_v1_permissions_permission_id/patch.py
+++ /dev/null
@@ -1,514 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-PermissionIdSchema = schemas.IntSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'permission_id': typing.Union[PermissionIdSchema, decimal.Decimal, int, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- description=description,
- key=key,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_permissions_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _update_permissions_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _update_permissions_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_permissions_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_permissions_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdatePermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_permissions(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def update_permissions(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def update_permissions(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_permissions(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_permissions(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_permissions_permission_id/patch.pyi b/kinde_sdk/paths/api_v1_permissions_permission_id/patch.pyi
deleted file mode 100644
index 7b8ef965..00000000
--- a/kinde_sdk/paths/api_v1_permissions_permission_id/patch.pyi
+++ /dev/null
@@ -1,503 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-PermissionIdSchema = schemas.IntSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'permission_id': typing.Union[PermissionIdSchema, decimal.Decimal, int, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- description=description,
- key=key,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_permissions_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _update_permissions_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _update_permissions_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_permissions_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_permissions_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdatePermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_permissions(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def update_permissions(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def update_permissions(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_permissions(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_permissions(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties/__init__.py b/kinde_sdk/paths/api_v1_properties/__init__.py
deleted file mode 100644
index ec774acf..00000000
--- a/kinde_sdk/paths/api_v1_properties/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_properties import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_PROPERTIES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_properties/get.py b/kinde_sdk/paths/api_v1_properties/get.py
deleted file mode 100644
index dcbcf2fb..00000000
--- a/kinde_sdk/paths/api_v1_properties/get.py
+++ /dev/null
@@ -1,483 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_properties_response import GetPropertiesResponse
-
-from . import path
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class StartingAfterSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'StartingAfterSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EndingBeforeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EndingBeforeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class ContextSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "usr": "USR",
- "org": "ORG",
- }
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ContextSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'starting_after': typing.Union[StartingAfterSchema, None, str, ],
- 'ending_before': typing.Union[EndingBeforeSchema, None, str, ],
- 'context': typing.Union[ContextSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_starting_after = api_client.QueryParameter(
- name="starting_after",
- style=api_client.ParameterStyle.FORM,
- schema=StartingAfterSchema,
- explode=True,
-)
-request_query_ending_before = api_client.QueryParameter(
- name="ending_before",
- style=api_client.ParameterStyle.FORM,
- schema=EndingBeforeSchema,
- explode=True,
-)
-request_query_context = api_client.QueryParameter(
- name="context",
- style=api_client.ParameterStyle.FORM,
- schema=ContextSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPropertiesResponse
-SchemaFor200ResponseBodyApplicationJson = GetPropertiesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_properties_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_properties_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_properties_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_properties_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List properties
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_starting_after,
- request_query_ending_before,
- request_query_context,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetProperties(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_properties(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_properties(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_properties(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_properties(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_properties_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_properties_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties/get.pyi b/kinde_sdk/paths/api_v1_properties/get.pyi
deleted file mode 100644
index dc9bba35..00000000
--- a/kinde_sdk/paths/api_v1_properties/get.pyi
+++ /dev/null
@@ -1,472 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_properties_response import GetPropertiesResponse
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class StartingAfterSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'StartingAfterSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EndingBeforeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EndingBeforeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class ContextSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "usr": "USR",
- "org": "ORG",
- }
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ContextSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'starting_after': typing.Union[StartingAfterSchema, None, str, ],
- 'ending_before': typing.Union[EndingBeforeSchema, None, str, ],
- 'context': typing.Union[ContextSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_starting_after = api_client.QueryParameter(
- name="starting_after",
- style=api_client.ParameterStyle.FORM,
- schema=StartingAfterSchema,
- explode=True,
-)
-request_query_ending_before = api_client.QueryParameter(
- name="ending_before",
- style=api_client.ParameterStyle.FORM,
- schema=EndingBeforeSchema,
- explode=True,
-)
-request_query_context = api_client.QueryParameter(
- name="context",
- style=api_client.ParameterStyle.FORM,
- schema=ContextSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPropertiesResponse
-SchemaFor200ResponseBodyApplicationJson = GetPropertiesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_properties_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_properties_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_properties_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_properties_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List properties
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_starting_after,
- request_query_ending_before,
- request_query_context,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetProperties(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_properties(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_properties(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_properties(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_properties(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_properties_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_properties_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties/post.py b/kinde_sdk/paths/api_v1_properties/post.py
deleted file mode 100644
index 6cdf0ae2..00000000
--- a/kinde_sdk/paths/api_v1_properties/post.py
+++ /dev/null
@@ -1,557 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_property_response import CreatePropertyResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "is_private",
- "category_id",
- "context",
- "name",
- "type",
- "key",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "single_line_text": "SINGLE_LINE_TEXT",
- "multi_line_text": "MULTI_LINE_TEXT",
- }
-
- @schemas.classproperty
- def SINGLE_LINE_TEXT(cls):
- return cls("single_line_text")
-
- @schemas.classproperty
- def MULTI_LINE_TEXT(cls):
- return cls("multi_line_text")
-
-
- class context(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "org": "ORG",
- "usr": "USR",
- }
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
- is_private = schemas.BoolSchema
- category_id = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "type": type,
- "context": context,
- "is_private": is_private,
- "category_id": category_id,
- }
-
- is_private: MetaOapg.properties.is_private
- category_id: MetaOapg.properties.category_id
- context: MetaOapg.properties.context
- name: MetaOapg.properties.name
- type: MetaOapg.properties.type
- key: MetaOapg.properties.key
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "context", "is_private", "category_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "context", "is_private", "category_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- is_private: typing.Union[MetaOapg.properties.is_private, bool, ],
- category_id: typing.Union[MetaOapg.properties.category_id, str, ],
- context: typing.Union[MetaOapg.properties.context, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- type: typing.Union[MetaOapg.properties.type, str, ],
- key: typing.Union[MetaOapg.properties.key, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- is_private=is_private,
- category_id=category_id,
- context=context,
- name=name,
- type=type,
- key=key,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJson = CreatePropertyResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreatePropertyResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Property
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_property_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_property_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties/post.pyi b/kinde_sdk/paths/api_v1_properties/post.pyi
deleted file mode 100644
index 8ca2a0b6..00000000
--- a/kinde_sdk/paths/api_v1_properties/post.pyi
+++ /dev/null
@@ -1,532 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_property_response import CreatePropertyResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "is_private",
- "category_id",
- "context",
- "name",
- "type",
- "key",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def SINGLE_LINE_TEXT(cls):
- return cls("single_line_text")
-
- @schemas.classproperty
- def MULTI_LINE_TEXT(cls):
- return cls("multi_line_text")
-
-
- class context(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
- is_private = schemas.BoolSchema
- category_id = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "type": type,
- "context": context,
- "is_private": is_private,
- "category_id": category_id,
- }
-
- is_private: MetaOapg.properties.is_private
- category_id: MetaOapg.properties.category_id
- context: MetaOapg.properties.context
- name: MetaOapg.properties.name
- type: MetaOapg.properties.type
- key: MetaOapg.properties.key
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "context", "is_private", "category_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "type", "context", "is_private", "category_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- is_private: typing.Union[MetaOapg.properties.is_private, bool, ],
- category_id: typing.Union[MetaOapg.properties.category_id, str, ],
- context: typing.Union[MetaOapg.properties.context, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- type: typing.Union[MetaOapg.properties.type, str, ],
- key: typing.Union[MetaOapg.properties.key, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- is_private=is_private,
- category_id=category_id,
- context=context,
- name=name,
- type=type,
- key=key,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor201ResponseBodyApplicationJson = CreatePropertyResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreatePropertyResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Property
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_property_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_property_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties_property_id/__init__.py b/kinde_sdk/paths/api_v1_properties_property_id/__init__.py
deleted file mode 100644
index 1fce01d7..00000000
--- a/kinde_sdk/paths/api_v1_properties_property_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_properties_property_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_PROPERTIES_PROPERTY_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_properties_property_id/delete.py b/kinde_sdk/paths/api_v1_properties_property_id/delete.py
deleted file mode 100644
index 8a71a894..00000000
--- a/kinde_sdk/paths/api_v1_properties_property_id/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-PropertyIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'property_id': typing.Union[PropertyIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_property_id = api_client.PathParameter(
- name="property_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_property_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_property_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_property_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_property_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Property
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_property_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_property(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_property(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_property(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_property(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_property_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_property_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties_property_id/delete.pyi b/kinde_sdk/paths/api_v1_properties_property_id/delete.pyi
deleted file mode 100644
index dd041854..00000000
--- a/kinde_sdk/paths/api_v1_properties_property_id/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-PropertyIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'property_id': typing.Union[PropertyIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_property_id = api_client.PathParameter(
- name="property_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_property_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_property_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_property_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_property_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Property
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_property_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_property(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_property(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_property(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_property(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_property_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_property_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties_property_id/put.py b/kinde_sdk/paths/api_v1_properties_property_id/put.py
deleted file mode 100644
index ba779468..00000000
--- a/kinde_sdk/paths/api_v1_properties_property_id/put.py
+++ /dev/null
@@ -1,538 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-PropertyIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'property_id': typing.Union[PropertyIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_property_id = api_client.PathParameter(
- name="property_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "is_private",
- "category_id",
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- is_private = schemas.BoolSchema
- category_id = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "is_private": is_private,
- "category_id": category_id,
- }
-
- is_private: MetaOapg.properties.is_private
- category_id: MetaOapg.properties.category_id
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "is_private", "category_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "is_private", "category_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- is_private: typing.Union[MetaOapg.properties.is_private, bool, ],
- category_id: typing.Union[MetaOapg.properties.category_id, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- is_private=is_private,
- category_id=category_id,
- name=name,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Property
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_property_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_property_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_property_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_properties_property_id/put.pyi b/kinde_sdk/paths/api_v1_properties_property_id/put.pyi
deleted file mode 100644
index 79a81334..00000000
--- a/kinde_sdk/paths/api_v1_properties_property_id/put.pyi
+++ /dev/null
@@ -1,527 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-PropertyIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'property_id': typing.Union[PropertyIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_property_id = api_client.PathParameter(
- name="property_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "is_private",
- "category_id",
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- is_private = schemas.BoolSchema
- category_id = schemas.StrSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "is_private": is_private,
- "category_id": category_id,
- }
-
- is_private: MetaOapg.properties.is_private
- category_id: MetaOapg.properties.category_id
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "is_private", "category_id", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_private"]) -> MetaOapg.properties.is_private: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["category_id"]) -> MetaOapg.properties.category_id: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "is_private", "category_id", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- is_private: typing.Union[MetaOapg.properties.is_private, bool, ],
- category_id: typing.Union[MetaOapg.properties.category_id, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- is_private=is_private,
- category_id=category_id,
- name=name,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_property_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Property
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_property_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_property(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_property_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_property_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_property_categories/__init__.py b/kinde_sdk/paths/api_v1_property_categories/__init__.py
deleted file mode 100644
index 8769ebdc..00000000
--- a/kinde_sdk/paths/api_v1_property_categories/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_property_categories import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_PROPERTY_CATEGORIES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_property_categories/get.py b/kinde_sdk/paths/api_v1_property_categories/get.py
deleted file mode 100644
index 6fd43ff8..00000000
--- a/kinde_sdk/paths/api_v1_property_categories/get.py
+++ /dev/null
@@ -1,483 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_categories_response import GetCategoriesResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class StartingAfterSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'StartingAfterSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EndingBeforeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EndingBeforeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class ContextSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "usr": "USR",
- "org": "ORG",
- }
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ContextSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'starting_after': typing.Union[StartingAfterSchema, None, str, ],
- 'ending_before': typing.Union[EndingBeforeSchema, None, str, ],
- 'context': typing.Union[ContextSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_starting_after = api_client.QueryParameter(
- name="starting_after",
- style=api_client.ParameterStyle.FORM,
- schema=StartingAfterSchema,
- explode=True,
-)
-request_query_ending_before = api_client.QueryParameter(
- name="ending_before",
- style=api_client.ParameterStyle.FORM,
- schema=EndingBeforeSchema,
- explode=True,
-)
-request_query_context = api_client.QueryParameter(
- name="context",
- style=api_client.ParameterStyle.FORM,
- schema=ContextSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetCategoriesResponse
-SchemaFor200ResponseBodyApplicationJson = GetCategoriesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_categories_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_categories_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_categories_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_categories_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List categories
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_starting_after,
- request_query_ending_before,
- request_query_context,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetCategories(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_categories(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_categories(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_categories(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_categories(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_categories_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_categories_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_property_categories/get.pyi b/kinde_sdk/paths/api_v1_property_categories/get.pyi
deleted file mode 100644
index 7765950d..00000000
--- a/kinde_sdk/paths/api_v1_property_categories/get.pyi
+++ /dev/null
@@ -1,472 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_categories_response import GetCategoriesResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class StartingAfterSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'StartingAfterSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EndingBeforeSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EndingBeforeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class ContextSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "usr": "USR",
- "org": "ORG",
- }
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ContextSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'starting_after': typing.Union[StartingAfterSchema, None, str, ],
- 'ending_before': typing.Union[EndingBeforeSchema, None, str, ],
- 'context': typing.Union[ContextSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_starting_after = api_client.QueryParameter(
- name="starting_after",
- style=api_client.ParameterStyle.FORM,
- schema=StartingAfterSchema,
- explode=True,
-)
-request_query_ending_before = api_client.QueryParameter(
- name="ending_before",
- style=api_client.ParameterStyle.FORM,
- schema=EndingBeforeSchema,
- explode=True,
-)
-request_query_context = api_client.QueryParameter(
- name="context",
- style=api_client.ParameterStyle.FORM,
- schema=ContextSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetCategoriesResponse
-SchemaFor200ResponseBodyApplicationJson = GetCategoriesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_categories_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_categories_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_categories_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_categories_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List categories
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_starting_after,
- request_query_ending_before,
- request_query_context,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetCategories(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_categories(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_categories(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_categories(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_categories(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_categories_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_categories_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_property_categories/post.py b/kinde_sdk/paths/api_v1_property_categories/post.py
deleted file mode 100644
index dde1f85c..00000000
--- a/kinde_sdk/paths/api_v1_property_categories/post.py
+++ /dev/null
@@ -1,479 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_category_response import CreateCategoryResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "context",
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
-
-
- class context(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "org": "ORG",
- "usr": "USR",
- }
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
- __annotations__ = {
- "name": name,
- "context": context,
- }
-
- context: MetaOapg.properties.context
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "context", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "context", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- context: typing.Union[MetaOapg.properties.context, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- context=context,
- name=name,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJson = CreateCategoryResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreateCategoryResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Category
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateCategory(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_category_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_category_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_property_categories/post.pyi b/kinde_sdk/paths/api_v1_property_categories/post.pyi
deleted file mode 100644
index d2555c3e..00000000
--- a/kinde_sdk/paths/api_v1_property_categories/post.pyi
+++ /dev/null
@@ -1,461 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_category_response import CreateCategoryResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "context",
- "name",
- }
-
- class properties:
- name = schemas.StrSchema
-
-
- class context(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def ORG(cls):
- return cls("org")
-
- @schemas.classproperty
- def USR(cls):
- return cls("usr")
- __annotations__ = {
- "name": name,
- "context": context,
- }
-
- context: MetaOapg.properties.context
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "context", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "context", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- context: typing.Union[MetaOapg.properties.context, str, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- context=context,
- name=name,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor201ResponseBodyApplicationJson = CreateCategoryResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreateCategoryResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Category
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateCategory(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_category_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_category_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_property_categories_category_id/__init__.py b/kinde_sdk/paths/api_v1_property_categories_category_id/__init__.py
deleted file mode 100644
index 3c94dfb8..00000000
--- a/kinde_sdk/paths/api_v1_property_categories_category_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_property_categories_category_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_PROPERTY_CATEGORIES_CATEGORY_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_property_categories_category_id/put.py b/kinde_sdk/paths/api_v1_property_categories_category_id/put.py
deleted file mode 100644
index e0996805..00000000
--- a/kinde_sdk/paths/api_v1_property_categories_category_id/put.py
+++ /dev/null
@@ -1,499 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-CategoryIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'category_id': typing.Union[CategoryIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_category_id = api_client.PathParameter(
- name="category_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=CategoryIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- __annotations__ = {
- "name": name,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Category
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_category_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateCategory(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_category_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_category_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_property_categories_category_id/put.pyi b/kinde_sdk/paths/api_v1_property_categories_category_id/put.pyi
deleted file mode 100644
index cd39c46d..00000000
--- a/kinde_sdk/paths/api_v1_property_categories_category_id/put.pyi
+++ /dev/null
@@ -1,488 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-CategoryIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'category_id': typing.Union[CategoryIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_category_id = api_client.PathParameter(
- name="category_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=CategoryIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- __annotations__ = {
- "name": name,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_category_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Category
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_category_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateCategory(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_category(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_category_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_category_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles/__init__.py b/kinde_sdk/paths/api_v1_roles/__init__.py
deleted file mode 100644
index 3d4c580d..00000000
--- a/kinde_sdk/paths/api_v1_roles/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_roles import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ROLES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_roles/get.py b/kinde_sdk/paths/api_v1_roles/get.py
deleted file mode 100644
index 8fd36abd..00000000
--- a/kinde_sdk/paths/api_v1_roles/get.py
+++ /dev/null
@@ -1,441 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_roles_response import GetRolesResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetRolesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetRolesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_roles_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_roles_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_roles_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_roles_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Roles
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetRoles(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_roles(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_roles(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_roles(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_roles(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_roles_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_roles_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles/get.pyi b/kinde_sdk/paths/api_v1_roles/get.pyi
deleted file mode 100644
index 4aa66c45..00000000
--- a/kinde_sdk/paths/api_v1_roles/get.pyi
+++ /dev/null
@@ -1,431 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_roles_response import GetRolesResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetRolesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetRolesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_roles_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_roles_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_roles_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_roles_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Roles
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetRoles(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_roles(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_roles(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_roles(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_roles(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_roles_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_roles_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles/post.py b/kinde_sdk/paths/api_v1_roles/post.py
deleted file mode 100644
index db661b6b..00000000
--- a/kinde_sdk/paths/api_v1_roles/post.py
+++ /dev/null
@@ -1,467 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- is_default_role = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "is_default_role": is_default_role,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_default_role"]) -> MetaOapg.properties.is_default_role: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_default_role"]) -> typing.Union[MetaOapg.properties.is_default_role, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset,
- is_default_role: typing.Union[MetaOapg.properties.is_default_role, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- description=description,
- key=key,
- is_default_role=is_default_role,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJson = SuccessResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_role_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_role_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_role_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_role_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_role_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_role(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_role(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_role(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_role(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_role(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_role_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_role_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles/post.pyi b/kinde_sdk/paths/api_v1_roles/post.pyi
deleted file mode 100644
index e91b65c6..00000000
--- a/kinde_sdk/paths/api_v1_roles/post.pyi
+++ /dev/null
@@ -1,457 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- is_default_role = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "is_default_role": is_default_role,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_default_role"]) -> MetaOapg.properties.is_default_role: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_default_role"]) -> typing.Union[MetaOapg.properties.is_default_role, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset,
- is_default_role: typing.Union[MetaOapg.properties.is_default_role, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- description=description,
- key=key,
- is_default_role=is_default_role,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor201ResponseBodyApplicationJson = SuccessResponse
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJson,
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_role_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_role_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _create_role_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_role_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_role_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_role(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_role(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def create_role(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_role(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_role(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_role_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_role_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id/__init__.py b/kinde_sdk/paths/api_v1_roles_role_id/__init__.py
deleted file mode 100644
index b1ebb378..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_roles_role_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ROLES_ROLE_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_roles_role_id/delete.py b/kinde_sdk/paths/api_v1_roles_role_id/delete.py
deleted file mode 100644
index 16045ff1..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id/delete.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_role_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_role(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id/delete.pyi b/kinde_sdk/paths/api_v1_roles_role_id/delete.pyi
deleted file mode 100644
index 9c6f182f..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id/delete.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_role_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_role_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteRole(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_role(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_role(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_role_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id/patch.py b/kinde_sdk/paths/api_v1_roles_role_id/patch.py
deleted file mode 100644
index d0e9cf52..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id/patch.py
+++ /dev/null
@@ -1,531 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- "key",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- is_default_role = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "is_default_role": is_default_role,
- }
-
- name: MetaOapg.properties.name
- key: MetaOapg.properties.key
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_default_role"]) -> MetaOapg.properties.is_default_role: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_default_role"]) -> typing.Union[MetaOapg.properties.is_default_role, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- key: typing.Union[MetaOapg.properties.key, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- is_default_role: typing.Union[MetaOapg.properties.is_default_role, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- key=key,
- description=description,
- is_default_role=is_default_role,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_roles_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _update_roles_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _update_roles_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_roles_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_roles_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateRoles(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_roles(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def update_roles(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def update_roles(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_roles(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_roles(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_roles_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_roles_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id/patch.pyi b/kinde_sdk/paths/api_v1_roles_role_id/patch.pyi
deleted file mode 100644
index 4cbd1e42..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id/patch.pyi
+++ /dev/null
@@ -1,520 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "name",
- "key",
- }
-
- class properties:
- name = schemas.StrSchema
- description = schemas.StrSchema
- key = schemas.StrSchema
- is_default_role = schemas.BoolSchema
- __annotations__ = {
- "name": name,
- "description": description,
- "key": key,
- "is_default_role": is_default_role,
- }
-
- name: MetaOapg.properties.name
- key: MetaOapg.properties.key
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_default_role"]) -> MetaOapg.properties.is_default_role: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_default_role"]) -> typing.Union[MetaOapg.properties.is_default_role, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "description", "key", "is_default_role", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- key: typing.Union[MetaOapg.properties.key, str, ],
- description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
- is_default_role: typing.Union[MetaOapg.properties.is_default_role, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- name=name,
- key=key,
- description=description,
- is_default_role=is_default_role,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_roles_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _update_roles_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def _update_roles_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_roles_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_roles_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Role
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateRoles(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_roles(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def update_roles(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def update_roles(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_roles(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_roles(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_roles_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_roles_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions/__init__.py b/kinde_sdk/paths/api_v1_roles_role_id_permissions/__init__.py
deleted file mode 100644
index 5d669acf..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_roles_role_id_permissions import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ROLES_ROLE_ID_PERMISSIONS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions/get.py b/kinde_sdk/paths/api_v1_roles_role_id_permissions/get.py
deleted file mode 100644
index 162ce122..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions/get.py
+++ /dev/null
@@ -1,508 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.roles_permission_response import RolesPermissionResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = RolesPermissionResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = RolesPermissionResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_role_permission_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_role_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_role_permission_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_role_permission_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Role Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetRolePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_role_permission(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_role_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_role_permission(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_role_permission(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_role_permission_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_role_permission_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions/get.pyi b/kinde_sdk/paths/api_v1_roles_role_id_permissions/get.pyi
deleted file mode 100644
index 930b08a3..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions/get.pyi
+++ /dev/null
@@ -1,497 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.roles_permission_response import RolesPermissionResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "id_asc": "ID_ASC",
- "id_desc": "ID_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def ID_ASC(cls):
- return cls("id_asc")
-
- @schemas.classproperty
- def ID_DESC(cls):
- return cls("id_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = RolesPermissionResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = RolesPermissionResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_role_permission_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_role_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_role_permission_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_role_permission_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Role Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetRolePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_role_permission(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_role_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_role_permission(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_role_permission(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_role_permission_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_role_permission_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions/patch.py b/kinde_sdk/paths/api_v1_roles_role_id_permissions/patch.py
deleted file mode 100644
index e91580a3..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions/patch.py
+++ /dev/null
@@ -1,567 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.update_role_permissions_response import UpdateRolePermissionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class permissions(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- id = schemas.StrSchema
- operation = schemas.StrSchema
- __annotations__ = {
- "id": id,
- "operation": operation,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,
- operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- operation=operation,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'permissions':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "permissions": permissions,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- permissions=permissions,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = UpdateRolePermissionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateRolePermissionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Role Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateRolePermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_role_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_role_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions/patch.pyi b/kinde_sdk/paths/api_v1_roles_role_id_permissions/patch.pyi
deleted file mode 100644
index 9c8dff9f..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions/patch.pyi
+++ /dev/null
@@ -1,557 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.update_role_permissions_response import UpdateRolePermissionsResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class permissions(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- id = schemas.StrSchema
- operation = schemas.StrSchema
- __annotations__ = {
- "id": id,
- "operation": operation,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "operation", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,
- operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- id=id,
- operation=operation,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'permissions':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "permissions": permissions,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- permissions=permissions,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = UpdateRolePermissionsResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateRolePermissionsResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJson,
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_role_permissions_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Role Permissions
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateRolePermissions(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_role_permissions(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_role_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_role_permissions_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/__init__.py b/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/__init__.py
deleted file mode 100644
index 560f6db1..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_roles_role_id_permissions_permission_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_ROLES_ROLE_ID_PERMISSIONS_PERMISSION_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/delete.py b/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/delete.py
deleted file mode 100644
index 0eba5342..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/delete.py
+++ /dev/null
@@ -1,362 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-PermissionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- 'permission_id': typing.Union[PermissionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _remove_role_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _remove_role_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _remove_role_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _remove_role_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Remove Role Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RemoveRolePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def remove_role_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def remove_role_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def remove_role_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def remove_role_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_role_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_role_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/delete.pyi b/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/delete.pyi
deleted file mode 100644
index 64223caa..00000000
--- a/kinde_sdk/paths/api_v1_roles_role_id_permissions_permission_id/delete.pyi
+++ /dev/null
@@ -1,351 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-RoleIdSchema = schemas.StrSchema
-PermissionIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'role_id': typing.Union[RoleIdSchema, str, ],
- 'permission_id': typing.Union[PermissionIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_role_id = api_client.PathParameter(
- name="role_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=RoleIdSchema,
- required=True,
-)
-request_path_permission_id = api_client.PathParameter(
- name="permission_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PermissionIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _remove_role_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _remove_role_permission_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _remove_role_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _remove_role_permission_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Remove Role Permission
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_role_id,
- request_path_permission_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RemoveRolePermission(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def remove_role_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def remove_role_permission(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def remove_role_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def remove_role_permission(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_role_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._remove_role_permission_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_subscribers/__init__.py b/kinde_sdk/paths/api_v1_subscribers/__init__.py
deleted file mode 100644
index 84c30721..00000000
--- a/kinde_sdk/paths/api_v1_subscribers/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_subscribers import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_SUBSCRIBERS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_subscribers/get.py b/kinde_sdk/paths/api_v1_subscribers/get.py
deleted file mode 100644
index 79d3ec50..00000000
--- a/kinde_sdk/paths/api_v1_subscribers/get.py
+++ /dev/null
@@ -1,432 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_subscribers_response import GetSubscribersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "email_asc": "EMAIL_ASC",
- "email_desc": "EMAIL_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def EMAIL_ASC(cls):
- return cls("email_asc")
-
- @schemas.classproperty
- def EMAIL_DESC(cls):
- return cls("email_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetSubscribersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_subscribers_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_subscribers_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_subscribers_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_subscribers_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Subscribers
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetSubscribers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_subscribers(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_subscribers(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_subscribers(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_subscribers(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscribers_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscribers_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_subscribers/get.pyi b/kinde_sdk/paths/api_v1_subscribers/get.pyi
deleted file mode 100644
index a1bf60af..00000000
--- a/kinde_sdk/paths/api_v1_subscribers/get.pyi
+++ /dev/null
@@ -1,422 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_subscribers_response import GetSubscribersResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-
-
-class SortSchema(
- schemas.EnumBase,
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "name_asc": "NAME_ASC",
- "name_desc": "NAME_DESC",
- "email_asc": "EMAIL_ASC",
- "email_desc": "EMAIL_DESC",
- }
-
- @schemas.classproperty
- def NAME_ASC(cls):
- return cls("name_asc")
-
- @schemas.classproperty
- def NAME_DESC(cls):
- return cls("name_desc")
-
- @schemas.classproperty
- def EMAIL_ASC(cls):
- return cls("email_asc")
-
- @schemas.classproperty
- def EMAIL_DESC(cls):
- return cls("email_desc")
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'SortSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'sort': typing.Union[SortSchema, None, str, ],
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_sort = api_client.QueryParameter(
- name="sort",
- style=api_client.ParameterStyle.FORM,
- schema=SortSchema,
- explode=True,
-)
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetSubscribersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_subscribers_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_subscribers_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_subscribers_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_subscribers_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Subscribers
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_sort,
- request_query_page_size,
- request_query_next_token,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetSubscribers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_subscribers(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_subscribers(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_subscribers(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_subscribers(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscribers_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscribers_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_subscribers/post.py b/kinde_sdk/paths/api_v1_subscribers/post.py
deleted file mode 100644
index 1eeea707..00000000
--- a/kinde_sdk/paths/api_v1_subscribers/post.py
+++ /dev/null
@@ -1,410 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_subscriber_success_response import CreateSubscriberSuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-FirstNameSchema = schemas.StrSchema
-
-
-class LastNameSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'LastNameSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EmailSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EmailSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'first_name': typing.Union[FirstNameSchema, str, ],
- 'last_name': typing.Union[LastNameSchema, None, str, ],
- 'email': typing.Union[EmailSchema, None, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_first_name = api_client.QueryParameter(
- name="first_name",
- style=api_client.ParameterStyle.FORM,
- schema=FirstNameSchema,
- required=True,
- explode=True,
-)
-request_query_last_name = api_client.QueryParameter(
- name="last_name",
- style=api_client.ParameterStyle.FORM,
- schema=LastNameSchema,
- required=True,
- explode=True,
-)
-request_query_email = api_client.QueryParameter(
- name="email",
- style=api_client.ParameterStyle.FORM,
- schema=EmailSchema,
- required=True,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreateSubscriberSuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_subscriber_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_subscriber_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_subscriber_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_subscriber_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Subscriber
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_first_name,
- request_query_last_name,
- request_query_email,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateSubscriber(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_subscriber(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_subscriber(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_subscriber(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_subscriber(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_subscriber_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_subscriber_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_subscribers/post.pyi b/kinde_sdk/paths/api_v1_subscribers/post.pyi
deleted file mode 100644
index 077c9aad..00000000
--- a/kinde_sdk/paths/api_v1_subscribers/post.pyi
+++ /dev/null
@@ -1,399 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_subscriber_success_response import CreateSubscriberSuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-FirstNameSchema = schemas.StrSchema
-
-
-class LastNameSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'LastNameSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EmailSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EmailSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'first_name': typing.Union[FirstNameSchema, str, ],
- 'last_name': typing.Union[LastNameSchema, None, str, ],
- 'email': typing.Union[EmailSchema, None, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_first_name = api_client.QueryParameter(
- name="first_name",
- style=api_client.ParameterStyle.FORM,
- schema=FirstNameSchema,
- required=True,
- explode=True,
-)
-request_query_last_name = api_client.QueryParameter(
- name="last_name",
- style=api_client.ParameterStyle.FORM,
- schema=LastNameSchema,
- required=True,
- explode=True,
-)
-request_query_email = api_client.QueryParameter(
- name="email",
- style=api_client.ParameterStyle.FORM,
- schema=EmailSchema,
- required=True,
- explode=True,
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = CreateSubscriberSuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_subscriber_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _create_subscriber_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_subscriber_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_subscriber_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create Subscriber
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_first_name,
- request_query_last_name,
- request_query_email,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateSubscriber(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_subscriber(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def create_subscriber(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_subscriber(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_subscriber(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_subscriber_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_subscriber_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_subscribers_subscriber_id/__init__.py b/kinde_sdk/paths/api_v1_subscribers_subscriber_id/__init__.py
deleted file mode 100644
index cf695728..00000000
--- a/kinde_sdk/paths/api_v1_subscribers_subscriber_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_subscribers_subscriber_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_SUBSCRIBERS_SUBSCRIBER_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_subscribers_subscriber_id/get.py b/kinde_sdk/paths/api_v1_subscribers_subscriber_id/get.py
deleted file mode 100644
index 13e8270a..00000000
--- a/kinde_sdk/paths/api_v1_subscribers_subscriber_id/get.py
+++ /dev/null
@@ -1,351 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_subscriber_response import GetSubscriberResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-SubscriberIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'subscriber_id': typing.Union[SubscriberIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_subscriber_id = api_client.PathParameter(
- name="subscriber_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=SubscriberIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetSubscriberResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_subscriber_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_subscriber_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_subscriber_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_subscriber_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Subscriber
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_subscriber_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetSubscriber(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_subscriber(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_subscriber(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_subscriber(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_subscriber(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscriber_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscriber_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_subscribers_subscriber_id/get.pyi b/kinde_sdk/paths/api_v1_subscribers_subscriber_id/get.pyi
deleted file mode 100644
index afe2a46e..00000000
--- a/kinde_sdk/paths/api_v1_subscribers_subscriber_id/get.pyi
+++ /dev/null
@@ -1,340 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_subscriber_response import GetSubscriberResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-SubscriberIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'subscriber_id': typing.Union[SubscriberIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_subscriber_id = api_client.PathParameter(
- name="subscriber_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=SubscriberIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetSubscriberResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_subscriber_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_subscriber_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_subscriber_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_subscriber_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get Subscriber
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_subscriber_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetSubscriber(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_subscriber(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_subscriber(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_subscriber(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_subscriber(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscriber_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_subscriber_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_timezones/__init__.py b/kinde_sdk/paths/api_v1_timezones/__init__.py
deleted file mode 100644
index 68122f05..00000000
--- a/kinde_sdk/paths/api_v1_timezones/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_timezones import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_TIMEZONES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_timezones/get.py b/kinde_sdk/paths/api_v1_timezones/get.py
deleted file mode 100644
index 96183950..00000000
--- a/kinde_sdk/paths/api_v1_timezones/get.py
+++ /dev/null
@@ -1,332 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-from . import path
-
-# Query params
-TimezoneKeySchema = schemas.StrSchema
-NameSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'timezone_key': typing.Union[TimezoneKeySchema, str, ],
- 'name': typing.Union[NameSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_timezone_key = api_client.QueryParameter(
- name="timezone_key",
- style=api_client.ParameterStyle.FORM,
- schema=TimezoneKeySchema,
- explode=True,
-)
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '201': _response_for_201,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_timezones_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _get_timezones_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_timezones_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_timezones_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List timezones and timezone IDs.
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_timezone_key,
- request_query_name,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetTimezones(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_timezones(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get_timezones(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_timezones(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_timezones(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_timezones_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_timezones_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_timezones/get.pyi b/kinde_sdk/paths/api_v1_timezones/get.pyi
deleted file mode 100644
index 5406ed70..00000000
--- a/kinde_sdk/paths/api_v1_timezones/get.pyi
+++ /dev/null
@@ -1,322 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-
-# Query params
-TimezoneKeySchema = schemas.StrSchema
-NameSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'timezone_key': typing.Union[TimezoneKeySchema, str, ],
- 'name': typing.Union[NameSchema, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_timezone_key = api_client.QueryParameter(
- name="timezone_key",
- style=api_client.ParameterStyle.FORM,
- schema=TimezoneKeySchema,
- explode=True,
-)
-request_query_name = api_client.QueryParameter(
- name="name",
- style=api_client.ParameterStyle.FORM,
- schema=NameSchema,
- explode=True,
-)
-SchemaFor201ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor201(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor201ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_201 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor201,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor201ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_timezones_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def _get_timezones_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_timezones_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_timezones_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List timezones and timezone IDs.
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_timezone_key,
- request_query_name,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetTimezones(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_timezones(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get_timezones(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_timezones(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_timezones(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_timezones_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor201,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_timezones_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/__init__.py b/kinde_sdk/paths/api_v1_user/__init__.py
deleted file mode 100644
index 28bba1f9..00000000
--- a/kinde_sdk/paths/api_v1_user/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_user import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USER
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_user/delete.py b/kinde_sdk/paths/api_v1_user/delete.py
deleted file mode 100644
index 8d79a8a8..00000000
--- a/kinde_sdk/paths/api_v1_user/delete.py
+++ /dev/null
@@ -1,363 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-IdSchema = schemas.StrSchema
-IsDeleteProfileSchema = schemas.BoolSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'id': typing.Union[IdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'is_delete_profile': typing.Union[IsDeleteProfileSchema, bool, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_id = api_client.QueryParameter(
- name="id",
- style=api_client.ParameterStyle.FORM,
- schema=IdSchema,
- required=True,
- explode=True,
-)
-request_query_is_delete_profile = api_client.QueryParameter(
- name="is_delete_profile",
- style=api_client.ParameterStyle.FORM,
- schema=IsDeleteProfileSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_user_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_user_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_user_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_id,
- request_query_is_delete_profile,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_user(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_user(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_user(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_user_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_user_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/delete.pyi b/kinde_sdk/paths/api_v1_user/delete.pyi
deleted file mode 100644
index 1a32f403..00000000
--- a/kinde_sdk/paths/api_v1_user/delete.pyi
+++ /dev/null
@@ -1,352 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-IdSchema = schemas.StrSchema
-IsDeleteProfileSchema = schemas.BoolSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'id': typing.Union[IdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'is_delete_profile': typing.Union[IsDeleteProfileSchema, bool, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_id = api_client.QueryParameter(
- name="id",
- style=api_client.ParameterStyle.FORM,
- schema=IdSchema,
- required=True,
- explode=True,
-)
-request_query_is_delete_profile = api_client.QueryParameter(
- name="is_delete_profile",
- style=api_client.ParameterStyle.FORM,
- schema=IsDeleteProfileSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_user_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_user_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_user_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_id,
- request_query_is_delete_profile,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_user(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_user(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_user(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_user_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_user_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/get.py b/kinde_sdk/paths/api_v1_user/get.py
deleted file mode 100644
index 8148904d..00000000
--- a/kinde_sdk/paths/api_v1_user/get.py
+++ /dev/null
@@ -1,382 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.user import User
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-IdSchema = schemas.StrSchema
-
-
-class ExpandSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ExpandSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'id': typing.Union[IdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'expand': typing.Union[ExpandSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_id = api_client.QueryParameter(
- name="id",
- style=api_client.ParameterStyle.FORM,
- schema=IdSchema,
- required=True,
- explode=True,
-)
-request_query_expand = api_client.QueryParameter(
- name="expand",
- style=api_client.ParameterStyle.FORM,
- schema=ExpandSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = User
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = User
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_data_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_data_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_data_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_data_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_id,
- request_query_expand,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUserData(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user_data(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user_data(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user_data(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user_data(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_data_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_data_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/get.pyi b/kinde_sdk/paths/api_v1_user/get.pyi
deleted file mode 100644
index f36fad0c..00000000
--- a/kinde_sdk/paths/api_v1_user/get.pyi
+++ /dev/null
@@ -1,371 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.user import User
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-IdSchema = schemas.StrSchema
-
-
-class ExpandSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ExpandSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'id': typing.Union[IdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'expand': typing.Union[ExpandSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_id = api_client.QueryParameter(
- name="id",
- style=api_client.ParameterStyle.FORM,
- schema=IdSchema,
- required=True,
- explode=True,
-)
-request_query_expand = api_client.QueryParameter(
- name="expand",
- style=api_client.ParameterStyle.FORM,
- schema=ExpandSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = User
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = User
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_data_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_data_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_data_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_data_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_id,
- request_query_expand,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUserData(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user_data(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user_data(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user_data(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user_data(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_data_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_data_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/patch.py b/kinde_sdk/paths/api_v1_user/patch.py
deleted file mode 100644
index b849632b..00000000
--- a/kinde_sdk/paths/api_v1_user/patch.py
+++ /dev/null
@@ -1,530 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.update_user_response import UpdateUserResponse
-
-from . import path
-
-# Query params
-IdSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'id': typing.Union[IdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_id = api_client.QueryParameter(
- name="id",
- style=api_client.ParameterStyle.FORM,
- schema=IdSchema,
- required=True,
- explode=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- given_name = schemas.StrSchema
- family_name = schemas.StrSchema
- is_suspended = schemas.BoolSchema
- is_password_reset_requested = schemas.BoolSchema
- __annotations__ = {
- "given_name": given_name,
- "family_name": family_name,
- "is_suspended": is_suspended,
- "is_password_reset_requested": is_password_reset_requested,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["given_name"]) -> MetaOapg.properties.given_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["family_name"]) -> MetaOapg.properties.family_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_suspended"]) -> MetaOapg.properties.is_suspended: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_password_reset_requested"]) -> MetaOapg.properties.is_password_reset_requested: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", "is_suspended", "is_password_reset_requested", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["given_name"]) -> typing.Union[MetaOapg.properties.given_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["family_name"]) -> typing.Union[MetaOapg.properties.family_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_suspended"]) -> typing.Union[MetaOapg.properties.is_suspended, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_password_reset_requested"]) -> typing.Union[MetaOapg.properties.is_password_reset_requested, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", "is_suspended", "is_password_reset_requested", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- given_name: typing.Union[MetaOapg.properties.given_name, str, schemas.Unset] = schemas.unset,
- family_name: typing.Union[MetaOapg.properties.family_name, str, schemas.Unset] = schemas.unset,
- is_suspended: typing.Union[MetaOapg.properties.is_suspended, bool, schemas.Unset] = schemas.unset,
- is_password_reset_requested: typing.Union[MetaOapg.properties.is_password_reset_requested, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- given_name=given_name,
- family_name=family_name,
- is_suspended=is_suspended,
- is_password_reset_requested=is_password_reset_requested,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = UpdateUserResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateUserResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_id,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_oapg(
- body=body,
- query_params=query_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_oapg(
- body=body,
- query_params=query_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/patch.pyi b/kinde_sdk/paths/api_v1_user/patch.pyi
deleted file mode 100644
index f114d93c..00000000
--- a/kinde_sdk/paths/api_v1_user/patch.pyi
+++ /dev/null
@@ -1,519 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.update_user_response import UpdateUserResponse
-
-# Query params
-IdSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'id': typing.Union[IdSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_id = api_client.QueryParameter(
- name="id",
- style=api_client.ParameterStyle.FORM,
- schema=IdSchema,
- required=True,
- explode=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- given_name = schemas.StrSchema
- family_name = schemas.StrSchema
- is_suspended = schemas.BoolSchema
- is_password_reset_requested = schemas.BoolSchema
- __annotations__ = {
- "given_name": given_name,
- "family_name": family_name,
- "is_suspended": is_suspended,
- "is_password_reset_requested": is_password_reset_requested,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["given_name"]) -> MetaOapg.properties.given_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["family_name"]) -> MetaOapg.properties.family_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_suspended"]) -> MetaOapg.properties.is_suspended: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_password_reset_requested"]) -> MetaOapg.properties.is_password_reset_requested: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", "is_suspended", "is_password_reset_requested", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["given_name"]) -> typing.Union[MetaOapg.properties.given_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["family_name"]) -> typing.Union[MetaOapg.properties.family_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_suspended"]) -> typing.Union[MetaOapg.properties.is_suspended, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_password_reset_requested"]) -> typing.Union[MetaOapg.properties.is_password_reset_requested, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", "is_suspended", "is_password_reset_requested", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- given_name: typing.Union[MetaOapg.properties.given_name, str, schemas.Unset] = schemas.unset,
- family_name: typing.Union[MetaOapg.properties.family_name, str, schemas.Unset] = schemas.unset,
- is_suspended: typing.Union[MetaOapg.properties.is_suspended, bool, schemas.Unset] = schemas.unset,
- is_password_reset_requested: typing.Union[MetaOapg.properties.is_password_reset_requested, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- given_name=given_name,
- family_name=family_name,
- is_suspended=is_suspended,
- is_password_reset_requested=is_password_reset_requested,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = UpdateUserResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateUserResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_id,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_oapg(
- body=body,
- query_params=query_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_oapg(
- body=body,
- query_params=query_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/post.py b/kinde_sdk/paths/api_v1_user/post.py
deleted file mode 100644
index ddeb8dcb..00000000
--- a/kinde_sdk/paths/api_v1_user/post.py
+++ /dev/null
@@ -1,693 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_user_response import CreateUserResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class profile(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- given_name = schemas.StrSchema
- family_name = schemas.StrSchema
- __annotations__ = {
- "given_name": given_name,
- "family_name": family_name,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["given_name"]) -> MetaOapg.properties.given_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["family_name"]) -> MetaOapg.properties.family_name: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["given_name"]) -> typing.Union[MetaOapg.properties.given_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["family_name"]) -> typing.Union[MetaOapg.properties.family_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- given_name: typing.Union[MetaOapg.properties.given_name, str, schemas.Unset] = schemas.unset,
- family_name: typing.Union[MetaOapg.properties.family_name, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'profile':
- return super().__new__(
- cls,
- *_args,
- given_name=given_name,
- family_name=family_name,
- _configuration=_configuration,
- **kwargs,
- )
- organization_code = schemas.StrSchema
-
-
- class identities(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "email": "EMAIL",
- "phone": "PHONE",
- "username": "USERNAME",
- }
-
- @schemas.classproperty
- def EMAIL(cls):
- return cls("email")
-
- @schemas.classproperty
- def PHONE(cls):
- return cls("phone")
-
- @schemas.classproperty
- def USERNAME(cls):
- return cls("username")
-
-
- class details(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- email = schemas.StrSchema
- phone = schemas.StrSchema
- username = schemas.StrSchema
- __annotations__ = {
- "email": email,
- "phone": phone,
- "username": username,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["email", "phone", "username", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["email", "phone", "username", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset,
- phone: typing.Union[MetaOapg.properties.phone, str, schemas.Unset] = schemas.unset,
- username: typing.Union[MetaOapg.properties.username, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'details':
- return super().__new__(
- cls,
- *_args,
- email=email,
- phone=phone,
- username=username,
- _configuration=_configuration,
- **kwargs,
- )
- __annotations__ = {
- "type": type,
- "details": details,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["details"]) -> MetaOapg.properties.details: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "details", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["details"]) -> typing.Union[MetaOapg.properties.details, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "details", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,
- details: typing.Union[MetaOapg.properties.details, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- type=type,
- details=details,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'identities':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "profile": profile,
- "organization_code": organization_code,
- "identities": identities,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["profile"]) -> MetaOapg.properties.profile: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["organization_code"]) -> MetaOapg.properties.organization_code: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["identities"]) -> MetaOapg.properties.identities: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["profile", "organization_code", "identities", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["profile"]) -> typing.Union[MetaOapg.properties.profile, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["organization_code"]) -> typing.Union[MetaOapg.properties.organization_code, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["identities"]) -> typing.Union[MetaOapg.properties.identities, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["profile", "organization_code", "identities", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- profile: typing.Union[MetaOapg.properties.profile, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- organization_code: typing.Union[MetaOapg.properties.organization_code, str, schemas.Unset] = schemas.unset,
- identities: typing.Union[MetaOapg.properties.identities, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- profile=profile,
- organization_code=organization_code,
- identities=identities,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = CreateUserResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = CreateUserResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_user_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_user_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_user_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_user_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_user(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_user(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_user(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_user(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_user_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_user_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_user/post.pyi b/kinde_sdk/paths/api_v1_user/post.pyi
deleted file mode 100644
index 0679b1bd..00000000
--- a/kinde_sdk/paths/api_v1_user/post.pyi
+++ /dev/null
@@ -1,674 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_user_response import CreateUserResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class profile(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- given_name = schemas.StrSchema
- family_name = schemas.StrSchema
- __annotations__ = {
- "given_name": given_name,
- "family_name": family_name,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["given_name"]) -> MetaOapg.properties.given_name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["family_name"]) -> MetaOapg.properties.family_name: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["given_name"]) -> typing.Union[MetaOapg.properties.given_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["family_name"]) -> typing.Union[MetaOapg.properties.family_name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["given_name", "family_name", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- given_name: typing.Union[MetaOapg.properties.given_name, str, schemas.Unset] = schemas.unset,
- family_name: typing.Union[MetaOapg.properties.family_name, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'profile':
- return super().__new__(
- cls,
- *_args,
- given_name=given_name,
- family_name=family_name,
- _configuration=_configuration,
- **kwargs,
- )
- organization_code = schemas.StrSchema
-
-
- class identities(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
-
-
- class items(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class type(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def EMAIL(cls):
- return cls("email")
-
- @schemas.classproperty
- def PHONE(cls):
- return cls("phone")
-
- @schemas.classproperty
- def USERNAME(cls):
- return cls("username")
-
-
- class details(
- schemas.DictSchema
- ):
-
-
- class MetaOapg:
-
- class properties:
- email = schemas.StrSchema
- phone = schemas.StrSchema
- username = schemas.StrSchema
- __annotations__ = {
- "email": email,
- "phone": phone,
- "username": username,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["email", "phone", "username", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["email", "phone", "username", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset,
- phone: typing.Union[MetaOapg.properties.phone, str, schemas.Unset] = schemas.unset,
- username: typing.Union[MetaOapg.properties.username, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'details':
- return super().__new__(
- cls,
- *_args,
- email=email,
- phone=phone,
- username=username,
- _configuration=_configuration,
- **kwargs,
- )
- __annotations__ = {
- "type": type,
- "details": details,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["details"]) -> MetaOapg.properties.details: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "details", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["details"]) -> typing.Union[MetaOapg.properties.details, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "details", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,
- details: typing.Union[MetaOapg.properties.details, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'items':
- return super().__new__(
- cls,
- *_args,
- type=type,
- details=details,
- _configuration=_configuration,
- **kwargs,
- )
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'identities':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- __annotations__ = {
- "profile": profile,
- "organization_code": organization_code,
- "identities": identities,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["profile"]) -> MetaOapg.properties.profile: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["organization_code"]) -> MetaOapg.properties.organization_code: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["identities"]) -> MetaOapg.properties.identities: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["profile", "organization_code", "identities", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["profile"]) -> typing.Union[MetaOapg.properties.profile, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["organization_code"]) -> typing.Union[MetaOapg.properties.organization_code, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["identities"]) -> typing.Union[MetaOapg.properties.identities, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["profile", "organization_code", "identities", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- profile: typing.Union[MetaOapg.properties.profile, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- organization_code: typing.Union[MetaOapg.properties.organization_code, str, schemas.Unset] = schemas.unset,
- identities: typing.Union[MetaOapg.properties.identities, list, tuple, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- profile=profile,
- organization_code=organization_code,
- identities=identities,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
-)
-SchemaFor200ResponseBodyApplicationJson = CreateUserResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = CreateUserResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_user_oapg(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_user_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_user_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_user_oapg(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create User
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_user(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_user(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_user(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_user(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_user_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/json"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/json',
- body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_user_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users/__init__.py b/kinde_sdk/paths/api_v1_users/__init__.py
deleted file mode 100644
index 87812646..00000000
--- a/kinde_sdk/paths/api_v1_users/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_users import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USERS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_users/get.py b/kinde_sdk/paths/api_v1_users/get.py
deleted file mode 100644
index 92d6d2b8..00000000
--- a/kinde_sdk/paths/api_v1_users/get.py
+++ /dev/null
@@ -1,487 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.users_response import UsersResponse
-
-from . import path
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class UserIdSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'UserIdSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EmailSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EmailSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class UsernameSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'UsernameSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class ExpandSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ExpandSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'user_id': typing.Union[UserIdSchema, None, str, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- 'email': typing.Union[EmailSchema, None, str, ],
- 'username': typing.Union[UsernameSchema, None, str, ],
- 'expand': typing.Union[ExpandSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_user_id = api_client.QueryParameter(
- name="user_id",
- style=api_client.ParameterStyle.FORM,
- schema=UserIdSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-request_query_email = api_client.QueryParameter(
- name="email",
- style=api_client.ParameterStyle.FORM,
- schema=EmailSchema,
- explode=True,
-)
-request_query_username = api_client.QueryParameter(
- name="username",
- style=api_client.ParameterStyle.FORM,
- schema=UsernameSchema,
- explode=True,
-)
-request_query_expand = api_client.QueryParameter(
- name="expand",
- style=api_client.ParameterStyle.FORM,
- schema=ExpandSchema,
- explode=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = UsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_user_id,
- request_query_next_token,
- request_query_email,
- request_query_username,
- request_query_expand,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_users_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_users_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users/get.pyi b/kinde_sdk/paths/api_v1_users/get.pyi
deleted file mode 100644
index bbff488b..00000000
--- a/kinde_sdk/paths/api_v1_users/get.pyi
+++ /dev/null
@@ -1,477 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.users_response import UsersResponse
-
-# Query params
-
-
-class PageSizeSchema(
- schemas.IntBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneDecimalMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, decimal.Decimal, int, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'PageSizeSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class UserIdSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'UserIdSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class NextTokenSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'NextTokenSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class EmailSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'EmailSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class UsernameSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'UsernameSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-
-
-class ExpandSchema(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
-):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'ExpandSchema':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- 'page_size': typing.Union[PageSizeSchema, None, decimal.Decimal, int, ],
- 'user_id': typing.Union[UserIdSchema, None, str, ],
- 'next_token': typing.Union[NextTokenSchema, None, str, ],
- 'email': typing.Union[EmailSchema, None, str, ],
- 'username': typing.Union[UsernameSchema, None, str, ],
- 'expand': typing.Union[ExpandSchema, None, str, ],
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_page_size = api_client.QueryParameter(
- name="page_size",
- style=api_client.ParameterStyle.FORM,
- schema=PageSizeSchema,
- explode=True,
-)
-request_query_user_id = api_client.QueryParameter(
- name="user_id",
- style=api_client.ParameterStyle.FORM,
- schema=UserIdSchema,
- explode=True,
-)
-request_query_next_token = api_client.QueryParameter(
- name="next_token",
- style=api_client.ParameterStyle.FORM,
- schema=NextTokenSchema,
- explode=True,
-)
-request_query_email = api_client.QueryParameter(
- name="email",
- style=api_client.ParameterStyle.FORM,
- schema=EmailSchema,
- explode=True,
-)
-request_query_username = api_client.QueryParameter(
- name="username",
- style=api_client.ParameterStyle.FORM,
- schema=UsernameSchema,
- explode=True,
-)
-request_query_expand = api_client.QueryParameter(
- name="expand",
- style=api_client.ParameterStyle.FORM,
- schema=ExpandSchema,
- explode=True,
-)
-SchemaFor200ResponseBodyApplicationJson = UsersResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UsersResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_users_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_users_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Users
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_page_size,
- request_query_user_id,
- request_query_next_token,
- request_query_email,
- request_query_username,
- request_query_expand,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUsers(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_users(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_users(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_users_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_users_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/__init__.py b/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index e0f44712..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_users_user_id_feature_flags_feature_flag_key import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USERS_USER_ID_FEATURE_FLAGS_FEATURE_FLAG_KEY
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/patch.py b/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/patch.py
deleted file mode 100644
index b83f1c2f..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/patch.py
+++ /dev/null
@@ -1,417 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-UserIdSchema = schemas.StrSchema
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update User Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUserFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/patch.pyi b/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/patch.pyi
deleted file mode 100644
index 72b387ec..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_feature_flags_feature_flag_key/patch.pyi
+++ /dev/null
@@ -1,406 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-UserIdSchema = schemas.StrSchema
-FeatureFlagKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'feature_flag_key': typing.Union[FeatureFlagKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_feature_flag_key = api_client.PathParameter(
- name="feature_flag_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=FeatureFlagKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_feature_flag_override_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_feature_flag_override_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update User Feature Flag Override
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- request_path_feature_flag_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUserFeatureFlagOverride(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user_feature_flag_override(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user_feature_flag_override(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_feature_flag_override_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_password/__init__.py b/kinde_sdk/paths/api_v1_users_user_id_password/__init__.py
deleted file mode 100644
index a3b8733b..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_password/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_users_user_id_password import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USERS_USER_ID_PASSWORD
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_users_user_id_password/put.py b/kinde_sdk/paths/api_v1_users_user_id_password/put.py
deleted file mode 100644
index 0cbd79d9..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_password/put.py
+++ /dev/null
@@ -1,594 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "hashed_password",
- }
-
- class properties:
- hashed_password = schemas.StrSchema
-
-
- class hashing_method(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "bcrypt": "BCRYPT",
- "crypt": "CRYPT",
- "md5": "MD5",
- "wordpress": "WORDPRESS",
- }
-
- @schemas.classproperty
- def BCRYPT(cls):
- return cls("bcrypt")
-
- @schemas.classproperty
- def CRYPT(cls):
- return cls("crypt")
-
- @schemas.classproperty
- def MD5(cls):
- return cls("md5")
-
- @schemas.classproperty
- def WORDPRESS(cls):
- return cls("wordpress")
- salt = schemas.StrSchema
-
-
- class salt_position(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
-
- class MetaOapg:
- enum_value_to_name = {
- "prefix": "PREFIX",
- "suffix": "SUFFIX",
- }
-
- @schemas.classproperty
- def PREFIX(cls):
- return cls("prefix")
-
- @schemas.classproperty
- def SUFFIX(cls):
- return cls("suffix")
- is_temporary_password = schemas.BoolSchema
- __annotations__ = {
- "hashed_password": hashed_password,
- "hashing_method": hashing_method,
- "salt": salt,
- "salt_position": salt_position,
- "is_temporary_password": is_temporary_password,
- }
-
- hashed_password: MetaOapg.properties.hashed_password
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["hashed_password"]) -> MetaOapg.properties.hashed_password: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["hashing_method"]) -> MetaOapg.properties.hashing_method: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["salt"]) -> MetaOapg.properties.salt: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["salt_position"]) -> MetaOapg.properties.salt_position: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_temporary_password"]) -> MetaOapg.properties.is_temporary_password: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["hashed_password", "hashing_method", "salt", "salt_position", "is_temporary_password", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["hashed_password"]) -> MetaOapg.properties.hashed_password: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["hashing_method"]) -> typing.Union[MetaOapg.properties.hashing_method, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["salt"]) -> typing.Union[MetaOapg.properties.salt, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["salt_position"]) -> typing.Union[MetaOapg.properties.salt_position, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_temporary_password"]) -> typing.Union[MetaOapg.properties.is_temporary_password, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["hashed_password", "hashing_method", "salt", "salt_position", "is_temporary_password", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- hashed_password: typing.Union[MetaOapg.properties.hashed_password, str, ],
- hashing_method: typing.Union[MetaOapg.properties.hashing_method, str, schemas.Unset] = schemas.unset,
- salt: typing.Union[MetaOapg.properties.salt, str, schemas.Unset] = schemas.unset,
- salt_position: typing.Union[MetaOapg.properties.salt_position, str, schemas.Unset] = schemas.unset,
- is_temporary_password: typing.Union[MetaOapg.properties.is_temporary_password, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- hashed_password=hashed_password,
- hashing_method=hashing_method,
- salt=salt,
- salt_position=salt_position,
- is_temporary_password=is_temporary_password,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Set User password
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class SetUserPassword(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._set_user_password_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._set_user_password_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_password/put.pyi b/kinde_sdk/paths/api_v1_users_user_id_password/put.pyi
deleted file mode 100644
index e3ca01b0..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_password/put.pyi
+++ /dev/null
@@ -1,567 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "hashed_password",
- }
-
- class properties:
- hashed_password = schemas.StrSchema
-
-
- class hashing_method(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def BCRYPT(cls):
- return cls("bcrypt")
-
- @schemas.classproperty
- def CRYPT(cls):
- return cls("crypt")
-
- @schemas.classproperty
- def MD5(cls):
- return cls("md5")
-
- @schemas.classproperty
- def WORDPRESS(cls):
- return cls("wordpress")
- salt = schemas.StrSchema
-
-
- class salt_position(
- schemas.EnumBase,
- schemas.StrSchema
- ):
-
- @schemas.classproperty
- def PREFIX(cls):
- return cls("prefix")
-
- @schemas.classproperty
- def SUFFIX(cls):
- return cls("suffix")
- is_temporary_password = schemas.BoolSchema
- __annotations__ = {
- "hashed_password": hashed_password,
- "hashing_method": hashing_method,
- "salt": salt,
- "salt_position": salt_position,
- "is_temporary_password": is_temporary_password,
- }
-
- hashed_password: MetaOapg.properties.hashed_password
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["hashed_password"]) -> MetaOapg.properties.hashed_password: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["hashing_method"]) -> MetaOapg.properties.hashing_method: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["salt"]) -> MetaOapg.properties.salt: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["salt_position"]) -> MetaOapg.properties.salt_position: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["is_temporary_password"]) -> MetaOapg.properties.is_temporary_password: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["hashed_password", "hashing_method", "salt", "salt_position", "is_temporary_password", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["hashed_password"]) -> MetaOapg.properties.hashed_password: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["hashing_method"]) -> typing.Union[MetaOapg.properties.hashing_method, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["salt"]) -> typing.Union[MetaOapg.properties.salt, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["salt_position"]) -> typing.Union[MetaOapg.properties.salt_position, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["is_temporary_password"]) -> typing.Union[MetaOapg.properties.is_temporary_password, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["hashed_password", "hashing_method", "salt", "salt_position", "is_temporary_password", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- hashed_password: typing.Union[MetaOapg.properties.hashed_password, str, ],
- hashing_method: typing.Union[MetaOapg.properties.hashing_method, str, schemas.Unset] = schemas.unset,
- salt: typing.Union[MetaOapg.properties.salt, str, schemas.Unset] = schemas.unset,
- salt_position: typing.Union[MetaOapg.properties.salt_position, str, schemas.Unset] = schemas.unset,
- is_temporary_password: typing.Union[MetaOapg.properties.is_temporary_password, bool, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- hashed_password=hashed_password,
- hashing_method=hashing_method,
- salt=salt,
- salt_position=salt_position,
- is_temporary_password=is_temporary_password,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _set_user_password_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Set User password
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class SetUserPassword(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def set_user_password(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._set_user_password_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._set_user_password_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties/__init__.py b/kinde_sdk/paths/api_v1_users_user_id_properties/__init__.py
deleted file mode 100644
index 7632e61b..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_users_user_id_properties import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USERS_USER_ID_PROPERTIES
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties/get.py b/kinde_sdk/paths/api_v1_users_user_id_properties/get.py
deleted file mode 100644
index f08ff441..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties/get.py
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_property_values_response import GetPropertyValuesResponse
-
-from . import path
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = GetPropertyValuesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPropertyValuesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_property_values_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get property values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUserPropertyValues(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user_property_values(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties/get.pyi b/kinde_sdk/paths/api_v1_users_user_id_properties/get.pyi
deleted file mode 100644
index 596874f9..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties/get.pyi
+++ /dev/null
@@ -1,342 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.get_property_values_response import GetPropertyValuesResponse
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = GetPropertyValuesResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetPropertyValuesResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_property_values_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_property_values_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get property values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUserPropertyValues(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user_property_values(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user_property_values(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_property_values_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties/patch.py b/kinde_sdk/paths/api_v1_users_user_id_properties/patch.py
deleted file mode 100644
index 3f281e5b..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties/patch.py
+++ /dev/null
@@ -1,504 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "properties",
- }
-
- class properties:
- properties = schemas.DictSchema
- __annotations__ = {
- "properties": properties,
- }
-
- properties: MetaOapg.properties.properties
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- properties: typing.Union[MetaOapg.properties.properties, dict, frozendict.frozendict, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- properties=properties,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Property values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUserProperties(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties/patch.pyi b/kinde_sdk/paths/api_v1_users_user_id_properties/patch.pyi
deleted file mode 100644
index 6c546f01..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties/patch.pyi
+++ /dev/null
@@ -1,493 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "properties",
- }
-
- class properties:
- properties = schemas.DictSchema
- __annotations__ = {
- "properties": properties,
- }
-
- properties: MetaOapg.properties.properties
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["properties"]) -> MetaOapg.properties.properties: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["properties", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- properties: typing.Union[MetaOapg.properties.properties, dict, frozendict.frozendict, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- properties=properties,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_properties_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Property values
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUserProperties(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user_properties(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_properties_oapg(
- body=body,
- path_params=path_params,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/__init__.py b/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/__init__.py
deleted file mode 100644
index a9b8003b..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_users_user_id_properties_property_key import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USERS_USER_ID_PROPERTIES_PROPERTY_KEY
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/put.py b/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/put.py
deleted file mode 100644
index 78f84f11..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/put.py
+++ /dev/null
@@ -1,417 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-UserIdSchema = schemas.StrSchema
-PropertyKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'property_key': typing.Union[PropertyKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_property_key = api_client.PathParameter(
- name="property_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyKeySchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_property_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Property value
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- request_path_property_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUserProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user_property(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/put.pyi b/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/put.pyi
deleted file mode 100644
index da22ce64..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_properties_property_key/put.pyi
+++ /dev/null
@@ -1,406 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Query params
-ValueSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- 'RequestRequiredQueryParams',
- {
- 'value': typing.Union[ValueSchema, str, ],
- }
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- 'RequestOptionalQueryParams',
- {
- },
- total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_value = api_client.QueryParameter(
- name="value",
- style=api_client.ParameterStyle.FORM,
- schema=ValueSchema,
- required=True,
- explode=True,
-)
-# Path params
-UserIdSchema = schemas.StrSchema
-PropertyKeySchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- 'property_key': typing.Union[PropertyKeySchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-request_path_property_key = api_client.PathParameter(
- name="property_key",
- style=api_client.ParameterStyle.SIMPLE,
- schema=PropertyKeySchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_user_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_user_property_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_user_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_user_property_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update Property value
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- request_path_property_key,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- prefix_separator_iterator = None
- for parameter in (
- request_query_value,
- ):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='put'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateUserProperty(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_user_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_user_property(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_user_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_user_property(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForput(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def put(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def put(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_user_property_oapg(
- query_params=query_params,
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/__init__.py b/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/__init__.py
deleted file mode 100644
index 26b1185e..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_users_user_id_refresh_claims import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_USERS_USER_ID_REFRESH_CLAIMS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/post.py b/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/post.py
deleted file mode 100644
index 03a426e2..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/post.py
+++ /dev/null
@@ -1,364 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _refresh_user_claims_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _refresh_user_claims_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _refresh_user_claims_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _refresh_user_claims_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Refresh User Claims and Invalidate Cache
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RefreshUserClaims(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def refresh_user_claims(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def refresh_user_claims(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def refresh_user_claims(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def refresh_user_claims(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._refresh_user_claims_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._refresh_user_claims_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/post.pyi b/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/post.pyi
deleted file mode 100644
index c55812dc..00000000
--- a/kinde_sdk/paths/api_v1_users_user_id_refresh_claims/post.pyi
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.success_response import SuccessResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# Path params
-UserIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'user_id': typing.Union[UserIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_user_id = api_client.PathParameter(
- name="user_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=UserIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = SuccessResponse
-SchemaFor200ResponseBodyApplicationJson = SuccessResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJson,
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _refresh_user_claims_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _refresh_user_claims_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _refresh_user_claims_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _refresh_user_claims_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Refresh User Claims and Invalidate Cache
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_user_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class RefreshUserClaims(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def refresh_user_claims(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def refresh_user_claims(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def refresh_user_claims(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def refresh_user_claims(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._refresh_user_claims_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._refresh_user_claims_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks/__init__.py b/kinde_sdk/paths/api_v1_webhooks/__init__.py
deleted file mode 100644
index 9a03b609..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_webhooks import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_WEBHOOKS
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_webhooks/get.py b/kinde_sdk/paths/api_v1_webhooks/get.py
deleted file mode 100644
index c1f64f25..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/get.py
+++ /dev/null
@@ -1,310 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_webhooks_response import GetWebhooksResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetWebhooksResponse
-SchemaFor200ResponseBodyApplicationJson = GetWebhooksResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_web_hooks_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_web_hooks_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_web_hooks_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_web_hooks_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Webhooks
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetWebHooks(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_web_hooks(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_web_hooks(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_web_hooks(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_web_hooks(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_web_hooks_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_web_hooks_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks/get.pyi b/kinde_sdk/paths/api_v1_webhooks/get.pyi
deleted file mode 100644
index 033d6e23..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/get.pyi
+++ /dev/null
@@ -1,299 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.get_webhooks_response import GetWebhooksResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = GetWebhooksResponse
-SchemaFor200ResponseBodyApplicationJson = GetWebhooksResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_web_hooks_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_web_hooks_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_web_hooks_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_web_hooks_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- List Webhooks
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetWebHooks(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_web_hooks(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_web_hooks(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_web_hooks(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_web_hooks(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_web_hooks_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_web_hooks_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks/patch.py b/kinde_sdk/paths/api_v1_webhooks/patch.py
deleted file mode 100644
index 06b6a524..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/patch.py
+++ /dev/null
@@ -1,514 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.update_webhook_response import UpdateWebhookResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class event_types(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'event_types':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- name = schemas.StrSchema
-
-
- class description(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
- ):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'description':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
- __annotations__ = {
- "event_types": event_types,
- "name": name,
- "description": description,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["event_types"]) -> MetaOapg.properties.event_types: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["event_types", "name", "description", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["event_types"]) -> typing.Union[MetaOapg.properties.event_types, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["event_types", "name", "description", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- event_types: typing.Union[MetaOapg.properties.event_types, list, tuple, schemas.Unset] = schemas.unset,
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, None, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- event_types=event_types,
- name=name,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateWebhookResponse
-SchemaFor200ResponseBodyApplicationJson = UpdateWebhookResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update a Webhook
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateWebHook(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks/patch.pyi b/kinde_sdk/paths/api_v1_webhooks/patch.pyi
deleted file mode 100644
index 33e84a93..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/patch.pyi
+++ /dev/null
@@ -1,503 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.update_webhook_response import UpdateWebhookResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
-
-
- class event_types(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'event_types':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- name = schemas.StrSchema
-
-
- class description(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
- ):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'description':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
- __annotations__ = {
- "event_types": event_types,
- "name": name,
- "description": description,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["event_types"]) -> MetaOapg.properties.event_types: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["event_types", "name", "description", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["event_types"]) -> typing.Union[MetaOapg.properties.event_types, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["event_types", "name", "description", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- event_types: typing.Union[MetaOapg.properties.event_types, list, tuple, schemas.Unset] = schemas.unset,
- name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
- description: typing.Union[MetaOapg.properties.description, None, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- event_types=event_types,
- name=name,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = UpdateWebhookResponse
-SchemaFor200ResponseBodyApplicationJson = UpdateWebhookResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _update_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Update a Webhook
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='patch'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class UpdateWebHook(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def update_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpatch(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def patch(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._update_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks/post.py b/kinde_sdk/paths/api_v1_webhooks/post.py
deleted file mode 100644
index bf74e033..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/post.py
+++ /dev/null
@@ -1,533 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_webhook_response import CreateWebhookResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "endpoint",
- "event_types",
- "name",
- }
-
- class properties:
- endpoint = schemas.StrSchema
-
-
- class event_types(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'event_types':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- name = schemas.StrSchema
-
-
- class description(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
- ):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'description':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
- __annotations__ = {
- "endpoint": endpoint,
- "event_types": event_types,
- "name": name,
- "description": description,
- }
-
- endpoint: MetaOapg.properties.endpoint
- event_types: MetaOapg.properties.event_types
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["endpoint"]) -> MetaOapg.properties.endpoint: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["event_types"]) -> MetaOapg.properties.event_types: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint", "event_types", "name", "description", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["endpoint"]) -> MetaOapg.properties.endpoint: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["event_types"]) -> MetaOapg.properties.event_types: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint", "event_types", "name", "description", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- endpoint: typing.Union[MetaOapg.properties.endpoint, str, ],
- event_types: typing.Union[MetaOapg.properties.event_types, list, tuple, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- description: typing.Union[MetaOapg.properties.description, None, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- endpoint=endpoint,
- event_types=event_types,
- name=name,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = CreateWebhookResponse
-SchemaFor200ResponseBodyApplicationJson = CreateWebhookResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create a Webhook
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateWebHook(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks/post.pyi b/kinde_sdk/paths/api_v1_webhooks/post.pyi
deleted file mode 100644
index 566d2d0b..00000000
--- a/kinde_sdk/paths/api_v1_webhooks/post.pyi
+++ /dev/null
@@ -1,522 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.create_webhook_response import CreateWebhookResponse
-from kinde_sdk.model.error_response import ErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationJson(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
- required = {
- "endpoint",
- "event_types",
- "name",
- }
-
- class properties:
- endpoint = schemas.StrSchema
-
-
- class event_types(
- schemas.ListSchema
- ):
-
-
- class MetaOapg:
- items = schemas.StrSchema
-
- def __new__(
- cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'event_types':
- return super().__new__(
- cls,
- _arg,
- _configuration=_configuration,
- )
-
- def __getitem__(self, i: int) -> MetaOapg.items:
- return super().__getitem__(i)
- name = schemas.StrSchema
-
-
- class description(
- schemas.StrBase,
- schemas.NoneBase,
- schemas.Schema,
- schemas.NoneStrMixin
- ):
-
-
- def __new__(
- cls,
- *_args: typing.Union[None, str, ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- ) -> 'description':
- return super().__new__(
- cls,
- *_args,
- _configuration=_configuration,
- )
- __annotations__ = {
- "endpoint": endpoint,
- "event_types": event_types,
- "name": name,
- "description": description,
- }
-
- endpoint: MetaOapg.properties.endpoint
- event_types: MetaOapg.properties.event_types
- name: MetaOapg.properties.name
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["endpoint"]) -> MetaOapg.properties.endpoint: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["event_types"]) -> MetaOapg.properties.event_types: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint", "event_types", "name", "description", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["endpoint"]) -> MetaOapg.properties.endpoint: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["event_types"]) -> MetaOapg.properties.event_types: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint", "event_types", "name", "description", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- endpoint: typing.Union[MetaOapg.properties.endpoint, str, ],
- event_types: typing.Union[MetaOapg.properties.event_types, list, tuple, ],
- name: typing.Union[MetaOapg.properties.name, str, ],
- description: typing.Union[MetaOapg.properties.description, None, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationJson':
- return super().__new__(
- cls,
- *_args,
- endpoint=endpoint,
- event_types=event_types,
- name=name,
- description=description,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_any_type = api_client.RequestBody(
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationJson),
- },
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = CreateWebhookResponse
-SchemaFor200ResponseBodyApplicationJson = CreateWebhookResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _create_web_hook_oapg(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Create a Webhook
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- if body is schemas.unset:
- raise exceptions.ApiValueError(
- 'The required body parameter has an invalid value of: unset. Set a valid value instead')
- _fields = None
- _body = None
- serialized_data = request_body_any_type.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class CreateWebHook(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def create_web_hook(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: typing_extensions.Literal["application/json"] = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = ...,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
- content_type: str = 'application/json',
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._create_web_hook_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks_webhook_id/__init__.py b/kinde_sdk/paths/api_v1_webhooks_webhook_id/__init__.py
deleted file mode 100644
index 520b65d0..00000000
--- a/kinde_sdk/paths/api_v1_webhooks_webhook_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.api_v1_webhooks_webhook_id import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.API_V1_WEBHOOKS_WEBHOOK_ID
\ No newline at end of file
diff --git a/kinde_sdk/paths/api_v1_webhooks_webhook_id/delete.py b/kinde_sdk/paths/api_v1_webhooks_webhook_id/delete.py
deleted file mode 100644
index 184a439e..00000000
--- a/kinde_sdk/paths/api_v1_webhooks_webhook_id/delete.py
+++ /dev/null
@@ -1,364 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.delete_webhook_response import DeleteWebhookResponse
-
-from . import path
-
-# Path params
-WebhookIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'webhook_id': typing.Union[WebhookIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_webhook_id = api_client.PathParameter(
- name="webhook_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=WebhookIdSchema,
- required=True,
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = DeleteWebhookResponse
-SchemaFor200ResponseBodyApplicationJson = DeleteWebhookResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '400': _response_for_400,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_web_hook_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_web_hook_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_web_hook_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_web_hook_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Webhook
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_webhook_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteWebHook(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_web_hook(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_web_hook(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_web_hook(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_web_hook(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_web_hook_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_web_hook_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/api_v1_webhooks_webhook_id/delete.pyi b/kinde_sdk/paths/api_v1_webhooks_webhook_id/delete.pyi
deleted file mode 100644
index 3427d694..00000000
--- a/kinde_sdk/paths/api_v1_webhooks_webhook_id/delete.pyi
+++ /dev/null
@@ -1,353 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.error_response import ErrorResponse
-from kinde_sdk.model.delete_webhook_response import DeleteWebhookResponse
-
-# Path params
-WebhookIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing_extensions.TypedDict(
- 'RequestRequiredPathParams',
- {
- 'webhook_id': typing.Union[WebhookIdSchema, str, ],
- }
-)
-RequestOptionalPathParams = typing_extensions.TypedDict(
- 'RequestOptionalPathParams',
- {
- },
- total=False
-)
-
-
-class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
- pass
-
-
-request_path_webhook_id = api_client.PathParameter(
- name="webhook_id",
- style=api_client.ParameterStyle.SIMPLE,
- schema=WebhookIdSchema,
- required=True,
-)
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = DeleteWebhookResponse
-SchemaFor200ResponseBodyApplicationJson = DeleteWebhookResponse
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-SchemaFor400ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor400ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor400(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor400ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor400ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_400 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor400,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor400ResponseBodyApplicationJson),
- },
-)
-SchemaFor403ResponseBodyApplicationJsonCharsetutf8 = ErrorResponse
-SchemaFor403ResponseBodyApplicationJson = ErrorResponse
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor403ResponseBodyApplicationJsonCharsetutf8,
- SchemaFor403ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
- content={
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJsonCharsetutf8),
- 'application/json': api_client.MediaType(
- schema=SchemaFor403ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json; charset=utf-8',
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _delete_web_hook_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _delete_web_hook_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _delete_web_hook_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _delete_web_hook_oapg(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Delete Webhook
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
- used_path = path.value
-
- _path_params = {}
- for parameter in (
- request_path_webhook_id,
- ):
- parameter_data = path_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- serialized_data = parameter.serialize(parameter_data)
- _path_params.update(serialized_data)
-
- for k, v in _path_params.items():
- used_path = used_path.replace('{%s}' % k, v)
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='delete'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class DeleteWebHook(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def delete_web_hook(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete_web_hook(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete_web_hook(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete_web_hook(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_web_hook_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiFordelete(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def delete(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def delete(
- self,
- path_params: RequestPathParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._delete_web_hook_oapg(
- path_params=path_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_introspect/__init__.py b/kinde_sdk/paths/oauth2_introspect/__init__.py
deleted file mode 100644
index cb7a18de..00000000
--- a/kinde_sdk/paths/oauth2_introspect/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.oauth2_introspect import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.OAUTH2_INTROSPECT
\ No newline at end of file
diff --git a/kinde_sdk/paths/oauth2_introspect/post.py b/kinde_sdk/paths/oauth2_introspect/post.py
deleted file mode 100644
index 6ee9012e..00000000
--- a/kinde_sdk/paths/oauth2_introspect/post.py
+++ /dev/null
@@ -1,449 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.token_error_response import TokenErrorResponse
-from kinde_sdk.model.token_introspect import TokenIntrospect
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- token = schemas.StrSchema
- token_type = schemas.StrSchema
- __annotations__ = {
- "token": token,
- "token_type": token_type,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["token_type"]) -> MetaOapg.properties.token_type: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["token", "token_type", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["token_type"]) -> typing.Union[MetaOapg.properties.token_type, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["token", "token_type", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
- token_type: typing.Union[MetaOapg.properties.token_type, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
- return super().__new__(
- cls,
- *_args,
- token=token,
- token_type=token_type,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_body = api_client.RequestBody(
- content={
- 'application/x-www-form-urlencoded': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationXWwwFormUrlencoded),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = TokenIntrospect
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = TokenIntrospect
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor401ResponseBodyApplicationJson = TokenErrorResponse
-SchemaFor401ResponseBodyApplicationJsonCharsetutf8 = TokenErrorResponse
-
-
-@dataclass
-class ApiResponseFor401(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor401ResponseBodyApplicationJson,
- SchemaFor401ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_401 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor401,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '401': _response_for_401,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _token_introspection_oapg(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _token_introspection_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _token_introspection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _token_introspection_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _token_introspection_oapg(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get token details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_body.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class TokenIntrospection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def token_introspection(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def token_introspection(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def token_introspection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def token_introspection(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def token_introspection(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_introspection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_introspection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_introspect/post.pyi b/kinde_sdk/paths/oauth2_introspect/post.pyi
deleted file mode 100644
index 4cb233eb..00000000
--- a/kinde_sdk/paths/oauth2_introspect/post.pyi
+++ /dev/null
@@ -1,438 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.token_error_response import TokenErrorResponse
-from kinde_sdk.model.token_introspect import TokenIntrospect
-
-# body param
-
-
-class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- token = schemas.StrSchema
- token_type = schemas.StrSchema
- __annotations__ = {
- "token": token,
- "token_type": token_type,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["token_type"]) -> MetaOapg.properties.token_type: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["token", "token_type", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["token_type"]) -> typing.Union[MetaOapg.properties.token_type, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["token", "token_type", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
- token_type: typing.Union[MetaOapg.properties.token_type, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
- return super().__new__(
- cls,
- *_args,
- token=token,
- token_type=token_type,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_body = api_client.RequestBody(
- content={
- 'application/x-www-form-urlencoded': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationXWwwFormUrlencoded),
- },
-)
-SchemaFor200ResponseBodyApplicationJson = TokenIntrospect
-SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = TokenIntrospect
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-SchemaFor401ResponseBodyApplicationJson = TokenErrorResponse
-SchemaFor401ResponseBodyApplicationJsonCharsetutf8 = TokenErrorResponse
-
-
-@dataclass
-class ApiResponseFor401(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor401ResponseBodyApplicationJson,
- SchemaFor401ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_401 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor401,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _token_introspection_oapg(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _token_introspection_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _token_introspection_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _token_introspection_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _token_introspection_oapg(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get token details
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_body.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class TokenIntrospection(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def token_introspection(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def token_introspection(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def token_introspection(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def token_introspection(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def token_introspection(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_introspection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_introspection_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_revoke/__init__.py b/kinde_sdk/paths/oauth2_revoke/__init__.py
deleted file mode 100644
index 9ce542b1..00000000
--- a/kinde_sdk/paths/oauth2_revoke/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.oauth2_revoke import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.OAUTH2_REVOKE
\ No newline at end of file
diff --git a/kinde_sdk/paths/oauth2_revoke/post.py b/kinde_sdk/paths/oauth2_revoke/post.py
deleted file mode 100644
index 87762cba..00000000
--- a/kinde_sdk/paths/oauth2_revoke/post.py
+++ /dev/null
@@ -1,447 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.token_error_response import TokenErrorResponse
-
-from . import path
-
-# body param
-
-
-class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- token = schemas.StrSchema
- client_id = schemas.StrSchema
- client_secret = schemas.StrSchema
- __annotations__ = {
- "token": token,
- "client_id": client_id,
- "client_secret": client_secret,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["client_id"]) -> MetaOapg.properties.client_id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["client_secret"]) -> MetaOapg.properties.client_secret: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["token", "client_id", "client_secret", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["client_id"]) -> typing.Union[MetaOapg.properties.client_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["client_secret"]) -> typing.Union[MetaOapg.properties.client_secret, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["token", "client_id", "client_secret", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
- client_id: typing.Union[MetaOapg.properties.client_id, str, schemas.Unset] = schemas.unset,
- client_secret: typing.Union[MetaOapg.properties.client_secret, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
- return super().__new__(
- cls,
- *_args,
- token=token,
- client_id=client_id,
- client_secret=client_secret,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_body = api_client.RequestBody(
- content={
- 'application/x-www-form-urlencoded': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationXWwwFormUrlencoded),
- },
-)
-_auth = [
- 'kindeBearerAuth',
-]
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor401ResponseBodyApplicationJson = TokenErrorResponse
-SchemaFor401ResponseBodyApplicationJsonCharsetutf8 = TokenErrorResponse
-
-
-@dataclass
-class ApiResponseFor401(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor401ResponseBodyApplicationJson,
- SchemaFor401ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_401 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor401,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '401': _response_for_401,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _token_revocation_oapg(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _token_revocation_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _token_revocation_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _token_revocation_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _token_revocation_oapg(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Revoke token
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_body.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class TokenRevocation(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def token_revocation(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def token_revocation(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def token_revocation(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def token_revocation(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def token_revocation(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_revocation_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_revocation_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_revoke/post.pyi b/kinde_sdk/paths/oauth2_revoke/post.pyi
deleted file mode 100644
index 64846a71..00000000
--- a/kinde_sdk/paths/oauth2_revoke/post.pyi
+++ /dev/null
@@ -1,436 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.token_error_response import TokenErrorResponse
-
-# body param
-
-
-class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
- schemas.DictSchema
-):
-
-
- class MetaOapg:
-
- class properties:
- token = schemas.StrSchema
- client_id = schemas.StrSchema
- client_secret = schemas.StrSchema
- __annotations__ = {
- "token": token,
- "client_id": client_id,
- "client_secret": client_secret,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["client_id"]) -> MetaOapg.properties.client_id: ...
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["client_secret"]) -> MetaOapg.properties.client_secret: ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["token", "client_id", "client_secret", ], str]):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["client_id"]) -> typing.Union[MetaOapg.properties.client_id, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: typing_extensions.Literal["client_secret"]) -> typing.Union[MetaOapg.properties.client_secret, schemas.Unset]: ...
-
- @typing.overload
- def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["token", "client_id", "client_secret", ], str]):
- return super().get_item_oapg(name)
-
-
- def __new__(
- cls,
- *_args: typing.Union[dict, frozendict.frozendict, ],
- token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
- client_id: typing.Union[MetaOapg.properties.client_id, str, schemas.Unset] = schemas.unset,
- client_secret: typing.Union[MetaOapg.properties.client_secret, str, schemas.Unset] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
- ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
- return super().__new__(
- cls,
- *_args,
- token=token,
- client_id=client_id,
- client_secret=client_secret,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-request_body_body = api_client.RequestBody(
- content={
- 'application/x-www-form-urlencoded': api_client.MediaType(
- schema=SchemaForRequestBodyApplicationXWwwFormUrlencoded),
- },
-)
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
-)
-SchemaFor401ResponseBodyApplicationJson = TokenErrorResponse
-SchemaFor401ResponseBodyApplicationJsonCharsetutf8 = TokenErrorResponse
-
-
-@dataclass
-class ApiResponseFor401(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor401ResponseBodyApplicationJson,
- SchemaFor401ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_401 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor401,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJson),
- 'application/json; charset=utf-8': api_client.MediaType(
- schema=SchemaFor401ResponseBodyApplicationJsonCharsetutf8),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
- 'application/json; charset=utf-8',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _token_revocation_oapg(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _token_revocation_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def _token_revocation_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _token_revocation_oapg(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _token_revocation_oapg(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Revoke token
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- _fields = None
- _body = None
- if body is not schemas.unset:
- serialized_data = request_body_body.serialize(body, content_type)
- _headers.add('Content-Type', content_type)
- if 'fields' in serialized_data:
- _fields = serialized_data['fields']
- elif 'body' in serialized_data:
- _body = serialized_data['body']
- response = self.api_client.call_api(
- resource_path=used_path,
- method='post'.upper(),
- headers=_headers,
- fields=_fields,
- body=_body,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class TokenRevocation(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def token_revocation(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def token_revocation(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def token_revocation(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def token_revocation(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def token_revocation(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_revocation_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForpost(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def post(
- self,
- content_type: typing_extensions.Literal["application/x-www-form-urlencoded"] = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
-
- @typing.overload
- def post(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def post(
- self,
- content_type: str = ...,
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def post(
- self,
- content_type: str = 'application/x-www-form-urlencoded',
- body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._token_revocation_oapg(
- body=body,
- content_type=content_type,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_user_profile/__init__.py b/kinde_sdk/paths/oauth2_user_profile/__init__.py
deleted file mode 100644
index 7fb81d00..00000000
--- a/kinde_sdk/paths/oauth2_user_profile/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.oauth2_user_profile import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.OAUTH2_USER_PROFILE
\ No newline at end of file
diff --git a/kinde_sdk/paths/oauth2_user_profile/get.py b/kinde_sdk/paths/oauth2_user_profile/get.py
deleted file mode 100644
index 0c3d8e32..00000000
--- a/kinde_sdk/paths/oauth2_user_profile/get.py
+++ /dev/null
@@ -1,256 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.user_profile import UserProfile
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = UserProfile
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
-}
-_all_accept_content_types = (
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get User Profile
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_user_profile/get.pyi b/kinde_sdk/paths/oauth2_user_profile/get.pyi
deleted file mode 100644
index c9c7d4c7..00000000
--- a/kinde_sdk/paths/oauth2_user_profile/get.pyi
+++ /dev/null
@@ -1,247 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.user_profile import UserProfile
-
-SchemaFor200ResponseBodyApplicationJson = UserProfile
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-_all_accept_content_types = (
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get User Profile
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUser(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_v2_user_profile/__init__.py b/kinde_sdk/paths/oauth2_v2_user_profile/__init__.py
deleted file mode 100644
index 0650588f..00000000
--- a/kinde_sdk/paths/oauth2_v2_user_profile/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from kinde_sdk.paths.oauth2_v2_user_profile import Api
-
-from kinde_sdk.paths import PathValues
-
-path = PathValues.OAUTH2_V2_USER_PROFILE
\ No newline at end of file
diff --git a/kinde_sdk/paths/oauth2_v2_user_profile/get.py b/kinde_sdk/paths/oauth2_v2_user_profile/get.py
deleted file mode 100644
index 7b7923af..00000000
--- a/kinde_sdk/paths/oauth2_v2_user_profile/get.py
+++ /dev/null
@@ -1,269 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.user_profile_v2 import UserProfileV2
-
-from . import path
-
-_auth = [
- 'kindeBearerAuth',
-]
-SchemaFor200ResponseBodyApplicationJson = UserProfileV2
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_status_code_to_response = {
- '200': _response_for_200,
- '403': _response_for_403,
- '429': _response_for_429,
-}
-_all_accept_content_types = (
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_profile_v2_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_profile_v2_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_profile_v2_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_profile_v2_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Returns the details of the currently logged in user
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUserProfileV2(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user_profile_v2(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user_profile_v2(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user_profile_v2(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user_profile_v2(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_profile_v2_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_profile_v2_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/kinde_sdk/paths/oauth2_v2_user_profile/get.pyi b/kinde_sdk/paths/oauth2_v2_user_profile/get.pyi
deleted file mode 100644
index caef5ab5..00000000
--- a/kinde_sdk/paths/oauth2_v2_user_profile/get.pyi
+++ /dev/null
@@ -1,259 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-from dataclasses import dataclass
-import typing_extensions
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from kinde_sdk import api_client, exceptions
-from datetime import date, datetime # noqa: F401
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import typing_extensions # noqa: F401
-import uuid # noqa: F401
-
-import frozendict # noqa: F401
-
-from kinde_sdk import schemas # noqa: F401
-
-from kinde_sdk.model.user_profile_v2 import UserProfileV2
-
-SchemaFor200ResponseBodyApplicationJson = UserProfileV2
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- 'application/json': api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson),
- },
-)
-
-
-@dataclass
-class ApiResponseFor403(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_403 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor403,
-)
-
-
-@dataclass
-class ApiResponseFor429(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: schemas.Unset = schemas.unset
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_429 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor429,
-)
-_all_accept_content_types = (
- 'application/json',
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _get_user_profile_v2_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def _get_user_profile_v2_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def _get_user_profile_v2_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def _get_user_profile_v2_oapg(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Returns the details of the currently logged in user
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- used_path = path.value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add('Accept', accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method='get'.upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(response, self.api_client.configuration)
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(response=response)
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response
- )
-
- return api_response
-
-
-class GetUserProfileV2(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def get_user_profile_v2(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get_user_profile_v2(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get_user_profile_v2(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get_user_profile_v2(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_profile_v2_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- ]: ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
-
- @typing.overload
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
-
- def get(
- self,
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._get_user_profile_v2_oapg(
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization
- )
-
-
diff --git a/test/test_paths/test_api_v1_apis/__init__.py b/kinde_sdk/py.typed
similarity index 100%
rename from test/test_paths/test_api_v1_apis/__init__.py
rename to kinde_sdk/py.typed
diff --git a/kinde_sdk/rest.py b/kinde_sdk/rest.py
index 77f9d31a..ba027b6b 100644
--- a/kinde_sdk/rest.py
+++ b/kinde_sdk/rest.py
@@ -3,35 +3,67 @@
"""
Kinde Management API
- Provides endpoints to manage your Kinde Businesses # noqa: E501
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
The version of the OpenAPI document: 1
Contact: support@kinde.com
- Generated by: https://openapi-generator.tech
-"""
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
-import logging
+import io
+import json
+import re
import ssl
-from urllib.parse import urlencode
-import typing
-import certifi
import urllib3
-from urllib3._collections import HTTPHeaderDict
from kinde_sdk.exceptions import ApiException, ApiValueError
+SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
+RESTResponseType = urllib3.HTTPResponse
+
+
+def is_socks_proxy_url(url):
+ if url is None:
+ return False
+ split_section = url.split("://")
+ if len(split_section) < 2:
+ return False
+ else:
+ return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
+
+
+class RESTResponse(io.IOBase):
+
+ def __init__(self, resp) -> None:
+ self.response = resp
+ self.status = resp.status
+ self.reason = resp.reason
+ self.data = None
+
+ def read(self):
+ if self.data is None:
+ self.data = self.response.data
+ return self.data
+
+ def getheaders(self):
+ """Returns a dictionary of the response headers."""
+ return self.response.headers
-logger = logging.getLogger(__name__)
+ def getheader(self, name, default=None):
+ """Returns a given response header."""
+ return self.response.headers.get(name, default)
-class RESTClientObject(object):
+class RESTClientObject:
- def __init__(self, configuration, pools_size=4, maxsize=None):
+ def __init__(self, configuration) -> None:
# urllib3.PoolManager will pass all kw parameters to connectionpool
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
- # maxsize is the number of requests to host that are allowed in parallel # noqa: E501
# Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
# cert_reqs
@@ -40,140 +72,168 @@ def __init__(self, configuration, pools_size=4, maxsize=None):
else:
cert_reqs = ssl.CERT_NONE
- # ca_certs
- if configuration.ssl_ca_cert:
- ca_certs = configuration.ssl_ca_cert
- else:
- # if not set certificate file, use Mozilla's root certificates.
- ca_certs = certifi.where()
-
- addition_pool_args = {}
+ pool_args = {
+ "cert_reqs": cert_reqs,
+ "ca_certs": configuration.ssl_ca_cert,
+ "cert_file": configuration.cert_file,
+ "key_file": configuration.key_file,
+ "ca_cert_data": configuration.ca_cert_data,
+ }
if configuration.assert_hostname is not None:
- addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
+ pool_args['assert_hostname'] = (
+ configuration.assert_hostname
+ )
if configuration.retries is not None:
- addition_pool_args['retries'] = configuration.retries
+ pool_args['retries'] = configuration.retries
+
+ if configuration.tls_server_name:
+ pool_args['server_hostname'] = configuration.tls_server_name
+
if configuration.socket_options is not None:
- addition_pool_args['socket_options'] = configuration.socket_options
+ pool_args['socket_options'] = configuration.socket_options
- if maxsize is None:
- if configuration.connection_pool_maxsize is not None:
- maxsize = configuration.connection_pool_maxsize
- else:
- maxsize = 4
+ if configuration.connection_pool_maxsize is not None:
+ pool_args['maxsize'] = configuration.connection_pool_maxsize
# https pool manager
+ self.pool_manager: urllib3.PoolManager
+
if configuration.proxy:
- self.pool_manager = urllib3.ProxyManager(
- num_pools=pools_size,
- maxsize=maxsize,
- cert_reqs=cert_reqs,
- ca_certs=ca_certs,
- cert_file=configuration.cert_file,
- key_file=configuration.key_file,
- proxy_url=configuration.proxy,
- proxy_headers=configuration.proxy_headers,
- **addition_pool_args
- )
+ if is_socks_proxy_url(configuration.proxy):
+ from urllib3.contrib.socks import SOCKSProxyManager
+ pool_args["proxy_url"] = configuration.proxy
+ pool_args["headers"] = configuration.proxy_headers
+ self.pool_manager = SOCKSProxyManager(**pool_args)
+ else:
+ pool_args["proxy_url"] = configuration.proxy
+ pool_args["proxy_headers"] = configuration.proxy_headers
+ self.pool_manager = urllib3.ProxyManager(**pool_args)
else:
- self.pool_manager = urllib3.PoolManager(
- num_pools=pools_size,
- maxsize=maxsize,
- cert_reqs=cert_reqs,
- ca_certs=ca_certs,
- cert_file=configuration.cert_file,
- key_file=configuration.key_file,
- **addition_pool_args
- )
+ self.pool_manager = urllib3.PoolManager(**pool_args)
def request(
self,
- method: str,
- url: str,
- headers: typing.Optional[HTTPHeaderDict] = None,
- fields: typing.Optional[typing.Tuple[typing.Tuple[str, typing.Any], ...]] = None,
- body: typing.Optional[typing.Union[str, bytes]] = None,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> urllib3.HTTPResponse:
+ method,
+ url,
+ headers=None,
+ body=None,
+ post_params=None,
+ _request_timeout=None
+ ):
"""Perform requests.
:param method: http request method
:param url: http request url
:param headers: http request headers
- :param body: request body, for other types
- :param fields: request parameters for
- `application/x-www-form-urlencoded`
- or `multipart/form-data`
- :param stream: if True, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is False.
- :param timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
+ :param body: request json body, for `application/json`
+ :param post_params: request post parameters,
+ `application/x-www-form-urlencoded`
+ and `multipart/form-data`
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
"""
method = method.upper()
- assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
- 'PATCH', 'OPTIONS']
-
- if fields and body:
+ assert method in [
+ 'GET',
+ 'HEAD',
+ 'DELETE',
+ 'POST',
+ 'PUT',
+ 'PATCH',
+ 'OPTIONS'
+ ]
+
+ if post_params and body:
raise ApiValueError(
- "body parameter cannot be used with fields parameter."
+ "body parameter cannot be used with post_params parameter."
)
- fields = fields or {}
+ post_params = post_params or {}
headers = headers or {}
- if timeout:
- if isinstance(timeout, (int, float)): # noqa: E501,F821
- timeout = urllib3.Timeout(total=timeout)
- elif (isinstance(timeout, tuple) and
- len(timeout) == 2):
- timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1])
+ timeout = None
+ if _request_timeout:
+ if isinstance(_request_timeout, (int, float)):
+ timeout = urllib3.Timeout(total=_request_timeout)
+ elif (
+ isinstance(_request_timeout, tuple)
+ and len(_request_timeout) == 2
+ ):
+ timeout = urllib3.Timeout(
+ connect=_request_timeout[0],
+ read=_request_timeout[1]
+ )
try:
# For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
- if 'Content-Type' not in headers and body is None:
+
+ # no content type provided or payload is json
+ content_type = headers.get('Content-Type')
+ if (
+ not content_type
+ or re.search('json', content_type, re.IGNORECASE)
+ ):
+ request_body = None
+ if body is not None:
+ request_body = json.dumps(body)
r = self.pool_manager.request(
method,
url,
- preload_content=not stream,
+ body=request_body,
timeout=timeout,
- headers=headers
+ headers=headers,
+ preload_content=False
)
- elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
+ elif content_type == 'application/x-www-form-urlencoded':
r = self.pool_manager.request(
- method, url,
- body=body,
- fields=fields,
+ method,
+ url,
+ fields=post_params,
encode_multipart=False,
- preload_content=not stream,
timeout=timeout,
- headers=headers)
- elif headers['Content-Type'] == 'multipart/form-data':
+ headers=headers,
+ preload_content=False
+ )
+ elif content_type == 'multipart/form-data':
# must del headers['Content-Type'], or the correct
# Content-Type which generated by urllib3 will be
# overwritten.
del headers['Content-Type']
+ # Ensures that dict objects are serialized
+ post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
r = self.pool_manager.request(
- method, url,
- fields=fields,
+ method,
+ url,
+ fields=post_params,
encode_multipart=True,
- preload_content=not stream,
timeout=timeout,
- headers=headers)
+ headers=headers,
+ preload_content=False
+ )
# Pass a `string` parameter directly in the body to support
- # other content types than Json when `body` argument is
- # provided in serialized form
+ # other content types than JSON when `body` argument is
+ # provided in serialized form.
elif isinstance(body, str) or isinstance(body, bytes):
- request_body = body
r = self.pool_manager.request(
- method, url,
+ method,
+ url,
+ body=body,
+ timeout=timeout,
+ headers=headers,
+ preload_content=False
+ )
+ elif headers['Content-Type'].startswith('text/') and isinstance(body, bool):
+ request_body = "true" if body else "false"
+ r = self.pool_manager.request(
+ method,
+ url,
body=request_body,
- preload_content=not stream,
+ preload_content=False,
timeout=timeout,
headers=headers)
else:
@@ -184,72 +244,16 @@ def request(
raise ApiException(status=0, reason=msg)
# For `GET`, `HEAD`
else:
- r = self.pool_manager.request(method, url,
- preload_content=not stream,
- timeout=timeout,
- headers=headers)
+ r = self.pool_manager.request(
+ method,
+ url,
+ fields={},
+ timeout=timeout,
+ headers=headers,
+ preload_content=False
+ )
except urllib3.exceptions.SSLError as e:
- msg = "{0}\n{1}".format(type(e).__name__, str(e))
+ msg = "\n".join([type(e).__name__, str(e)])
raise ApiException(status=0, reason=msg)
- if not stream:
- # log response body
- logger.debug("response body: %s", r.data)
-
- return r
-
- def GET(self, url, headers=None, stream=False,
- timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("GET", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- fields=fields)
-
- def HEAD(self, url, headers=None, stream=False,
- timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("HEAD", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- fields=fields)
-
- def OPTIONS(self, url, headers=None,
- body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("OPTIONS", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- body=body, fields=fields)
-
- def DELETE(self, url, headers=None, body=None,
- stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("DELETE", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- body=body, fields=fields)
-
- def POST(self, url, headers=None,
- body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("POST", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- body=body, fields=fields)
-
- def PUT(self, url, headers=None,
- body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("PUT", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- body=body, fields=fields)
-
- def PATCH(self, url, headers=None,
- body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:
- return self.request("PATCH", url,
- headers=headers,
- stream=stream,
- timeout=timeout,
- body=body, fields=fields)
+ return RESTResponse(r)
diff --git a/pyproject.toml b/pyproject.toml
index 2e576d9e..5a27a931 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,33 +1,91 @@
-[project]
-name = "kinde-python-sdk"
-version = "1.2.9"
-authors = [
- { name = "Kinde Engineering", email = "engineering@kinde.com" },
-]
-description = "Connect your app to the Kinde platform"
+[tool.poetry]
+name = "kinde_sdk"
+version = "1.0.0"
+description = "Kinde Management API"
+authors = ["Kinde Support Team "]
+license = "NoLicense"
readme = "README.md"
-requires-python = ">=3.8"
-classifiers = [
- "Development Status :: 5 - Production/Stable",
- "License :: OSI Approved :: MIT License",
- "Natural Language :: English",
- "Operating System :: OS Independent",
- "Programming Language :: Python",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
-]
-dependencies = [
- "urllib3",
- "python-dateutil",
- "Authlib",
- "pyjwt",
- "requests",
- "typing-extensions >=4.11.0",
- "frozendict >=2.4.3",
- "certifi >=2024.7.4",
-]
-[project.urls]
-"Homepage" = "https://github.com/kinde-oss/kinde-python-sdk"
+repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
+keywords = ["OpenAPI", "OpenAPI-Generator", "Kinde Management API"]
+include = ["kinde_sdk/py.typed"]
+
+[tool.poetry.dependencies]
+python = "^3.9"
+
+urllib3 = ">= 2.1.0, < 3.0.0"
+python-dateutil = ">= 2.8.2"
+pydantic = ">= 2"
+typing-extensions = ">= 4.7.1"
+frozendict = "^2.4.0"
+jwt = "^1.3.1"
+
+[tool.poetry.dev-dependencies]
+pytest = ">= 7.2.1"
+pytest-cov = ">= 2.8.1"
+tox = ">= 3.9.0"
+flake8 = ">= 4.0.0"
+types-python-dateutil = ">= 2.8.19.14"
+mypy = ">= 1.5"
+
+
[build-system]
-requires = ["setuptools >= 61.0"]
+requires = ["setuptools"]
build-backend = "setuptools.build_meta"
+
+[tool.pylint.'MESSAGES CONTROL']
+extension-pkg-whitelist = "pydantic"
+
+[tool.mypy]
+files = [
+ "kinde_sdk",
+ #"test", # auto-generated tests
+ "tests", # hand-written tests
+]
+# TODO: enable "strict" once all these individual checks are passing
+# strict = true
+
+# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
+warn_unused_configs = true
+warn_redundant_casts = true
+warn_unused_ignores = true
+
+## Getting these passing should be easy
+strict_equality = true
+extra_checks = true
+
+## Strongly recommend enabling this one as soon as you can
+check_untyped_defs = true
+
+## These shouldn't be too much additional work, but may be tricky to
+## get passing if you use a lot of untyped libraries
+disallow_subclassing_any = true
+disallow_untyped_decorators = true
+disallow_any_generics = true
+
+### These next few are various gradations of forcing use of type annotations
+#disallow_untyped_calls = true
+#disallow_incomplete_defs = true
+#disallow_untyped_defs = true
+#
+### This one isn't too hard to get passing, but return on investment is lower
+#no_implicit_reexport = true
+#
+### This one can be tricky to get passing if you use a lot of untyped libraries
+#warn_return_any = true
+
+[[tool.mypy.overrides]]
+module = [
+ "kinde_sdk.configuration",
+]
+warn_unused_ignores = true
+strict_equality = true
+extra_checks = true
+check_untyped_defs = true
+disallow_subclassing_any = true
+disallow_untyped_decorators = true
+disallow_any_generics = true
+disallow_untyped_calls = true
+disallow_incomplete_defs = true
+disallow_untyped_defs = true
+no_implicit_reexport = true
+warn_return_any = true
diff --git a/requirements.txt b/requirements.txt
index 05f975e4..bb6beaed 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,8 +1,6 @@
-urllib3>=2.2.2 # https://github.com/urllib3/urllib3
-python-dateutil>=2.9.0 # https://github.com/dateutil/dateutil
-Authlib>=1.3.1 # https://github.com/lepture/authlib
-pyjwt>=2.8.0 # https://github.com/jpadilla/pyjwt
-requests>=2.32.0 # https://github.com/psf/requests
-typing-extensions>=4.11 # https://github.com/python/typing_extensions
-frozendict>=2.4 # https://github.com/Marco-Sulla/python-frozendict
-certifi>=2024.12.14 # https://github.com/certifi/python-certifi
\ No newline at end of file
+urllib3 >= 2.1.0, < 3.0.0
+python_dateutil >= 2.8.2
+pydantic >= 2
+typing-extensions >= 4.7.1
+frozendict
+jwt
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 00000000..11433ee8
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,2 @@
+[flake8]
+max-line-length=99
diff --git a/setup.py b/setup.py
new file mode 100644
index 00000000..0d4460f9
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,50 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from setuptools import setup, find_packages # noqa: H301
+
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+NAME = "kinde-python-sdk"
+VERSION = "1.0.0"
+PYTHON_REQUIRES = ">= 3.9"
+REQUIRES = [
+ "urllib3 >= 2.1.0, < 3.0.0",
+ "python-dateutil >= 2.8.2",
+ "pydantic >= 2",
+ "typing-extensions >= 4.7.1",
+]
+
+setup(
+ name=NAME,
+ version=VERSION,
+ description="Kinde Management API",
+ author="Kinde Support Team",
+ author_email="support@kinde.com",
+ url="",
+ keywords=["OpenAPI", "OpenAPI-Generator", "Kinde Management API"],
+ install_requires=REQUIRES,
+ packages=find_packages(exclude=["test", "tests"]),
+ include_package_data=True,
+ long_description_content_type='text/markdown',
+ long_description="""\
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+ """, # noqa: E501
+ package_data={"kinde_sdk": ["py.typed"]},
+)
\ No newline at end of file
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 00000000..e98555c1
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1,6 @@
+pytest >= 7.2.1
+pytest-cov >= 2.8.1
+tox >= 3.9.0
+flake8 >= 4.0.0
+types-python-dateutil >= 2.8.19.14
+mypy >= 1.5
diff --git a/test/test_paths/test_api_v1_apis_api_id/__init__.py b/test/__init__.py
similarity index 100%
rename from test/test_paths/test_api_v1_apis_api_id/__init__.py
rename to test/__init__.py
diff --git a/test/test_add_api_scope_request.py b/test/test_add_api_scope_request.py
new file mode 100644
index 00000000..1206c7b7
--- /dev/null
+++ b/test/test_add_api_scope_request.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_api_scope_request import AddAPIScopeRequest
+
+class TestAddAPIScopeRequest(unittest.TestCase):
+ """AddAPIScopeRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddAPIScopeRequest:
+ """Test AddAPIScopeRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddAPIScopeRequest`
+ """
+ model = AddAPIScopeRequest()
+ if include_optional:
+ return AddAPIScopeRequest(
+ key = 'read:logs',
+ description = 'Scope for reading logs.'
+ )
+ else:
+ return AddAPIScopeRequest(
+ key = 'read:logs',
+ )
+ """
+
+ def testAddAPIScopeRequest(self):
+ """Test AddAPIScopeRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_add_apis_request.py b/test/test_add_apis_request.py
new file mode 100644
index 00000000..ca28a901
--- /dev/null
+++ b/test/test_add_apis_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_apis_request import AddAPIsRequest
+
+class TestAddAPIsRequest(unittest.TestCase):
+ """AddAPIsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddAPIsRequest:
+ """Test AddAPIsRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddAPIsRequest`
+ """
+ model = AddAPIsRequest()
+ if include_optional:
+ return AddAPIsRequest(
+ name = 'Example API',
+ audience = 'https://api.example.com'
+ )
+ else:
+ return AddAPIsRequest(
+ name = 'Example API',
+ audience = 'https://api.example.com',
+ )
+ """
+
+ def testAddAPIsRequest(self):
+ """Test AddAPIsRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_add_organization_users_request.py b/test/test_add_organization_users_request.py
new file mode 100644
index 00000000..19db9568
--- /dev/null
+++ b/test/test_add_organization_users_request.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_organization_users_request import AddOrganizationUsersRequest
+
+class TestAddOrganizationUsersRequest(unittest.TestCase):
+ """AddOrganizationUsersRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddOrganizationUsersRequest:
+ """Test AddOrganizationUsersRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddOrganizationUsersRequest`
+ """
+ model = AddOrganizationUsersRequest()
+ if include_optional:
+ return AddOrganizationUsersRequest(
+ users = [
+ kinde_sdk.models.add_organization_users_request_users_inner.AddOrganizationUsers_request_users_inner(
+ id = 'kp_057ee6debc624c70947b6ba512908c35',
+ roles = [
+ 'manager'
+ ],
+ permissions = [
+ 'admin'
+ ], )
+ ]
+ )
+ else:
+ return AddOrganizationUsersRequest(
+ )
+ """
+
+ def testAddOrganizationUsersRequest(self):
+ """Test AddOrganizationUsersRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_add_organization_users_request_users_inner.py b/test/test_add_organization_users_request_users_inner.py
new file mode 100644
index 00000000..7b4ecab4
--- /dev/null
+++ b/test/test_add_organization_users_request_users_inner.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_organization_users_request_users_inner import AddOrganizationUsersRequestUsersInner
+
+class TestAddOrganizationUsersRequestUsersInner(unittest.TestCase):
+ """AddOrganizationUsersRequestUsersInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddOrganizationUsersRequestUsersInner:
+ """Test AddOrganizationUsersRequestUsersInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddOrganizationUsersRequestUsersInner`
+ """
+ model = AddOrganizationUsersRequestUsersInner()
+ if include_optional:
+ return AddOrganizationUsersRequestUsersInner(
+ id = 'kp_057ee6debc624c70947b6ba512908c35',
+ roles = [
+ 'manager'
+ ],
+ permissions = [
+ 'admin'
+ ]
+ )
+ else:
+ return AddOrganizationUsersRequestUsersInner(
+ )
+ """
+
+ def testAddOrganizationUsersRequestUsersInner(self):
+ """Test AddOrganizationUsersRequestUsersInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_add_organization_users_response.py b/test/test_add_organization_users_response.py
new file mode 100644
index 00000000..a56dd5f1
--- /dev/null
+++ b/test/test_add_organization_users_response.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_organization_users_response import AddOrganizationUsersResponse
+
+class TestAddOrganizationUsersResponse(unittest.TestCase):
+ """AddOrganizationUsersResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddOrganizationUsersResponse:
+ """Test AddOrganizationUsersResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddOrganizationUsersResponse`
+ """
+ model = AddOrganizationUsersResponse()
+ if include_optional:
+ return AddOrganizationUsersResponse(
+ code = '',
+ message = '',
+ users_added = [
+ ''
+ ]
+ )
+ else:
+ return AddOrganizationUsersResponse(
+ )
+ """
+
+ def testAddOrganizationUsersResponse(self):
+ """Test AddOrganizationUsersResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_add_role_scope_request.py b/test/test_add_role_scope_request.py
new file mode 100644
index 00000000..39e36e25
--- /dev/null
+++ b/test/test_add_role_scope_request.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_role_scope_request import AddRoleScopeRequest
+
+class TestAddRoleScopeRequest(unittest.TestCase):
+ """AddRoleScopeRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddRoleScopeRequest:
+ """Test AddRoleScopeRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddRoleScopeRequest`
+ """
+ model = AddRoleScopeRequest()
+ if include_optional:
+ return AddRoleScopeRequest(
+ scope_id = ''
+ )
+ else:
+ return AddRoleScopeRequest(
+ scope_id = '',
+ )
+ """
+
+ def testAddRoleScopeRequest(self):
+ """Test AddRoleScopeRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_add_role_scope_response.py b/test/test_add_role_scope_response.py
new file mode 100644
index 00000000..216956b4
--- /dev/null
+++ b/test/test_add_role_scope_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.add_role_scope_response import AddRoleScopeResponse
+
+class TestAddRoleScopeResponse(unittest.TestCase):
+ """AddRoleScopeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AddRoleScopeResponse:
+ """Test AddRoleScopeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AddRoleScopeResponse`
+ """
+ model = AddRoleScopeResponse()
+ if include_optional:
+ return AddRoleScopeResponse(
+ code = 'ROLE_SCOPE_ADDED',
+ message = 'Scope added to role'
+ )
+ else:
+ return AddRoleScopeResponse(
+ )
+ """
+
+ def testAddRoleScopeResponse(self):
+ """Test AddRoleScopeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_api_result.py b/test/test_api_result.py
new file mode 100644
index 00000000..89f5d55a
--- /dev/null
+++ b/test/test_api_result.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.api_result import ApiResult
+
+class TestApiResult(unittest.TestCase):
+ """ApiResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ApiResult:
+ """Test ApiResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ApiResult`
+ """
+ model = ApiResult()
+ if include_optional:
+ return ApiResult(
+ result = ''
+ )
+ else:
+ return ApiResult(
+ )
+ """
+
+ def testApiResult(self):
+ """Test ApiResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_apis_api.py b/test/test_apis_api.py
new file mode 100644
index 00000000..75ea95c3
--- /dev/null
+++ b/test/test_apis_api.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.apis_api import APIsApi
+
+
+class TestAPIsApi(unittest.TestCase):
+ """APIsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = APIsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_add_api_application_scope(self) -> None:
+ """Test case for add_api_application_scope
+
+ Add scope to API application
+ """
+ pass
+
+ def test_add_api_scope(self) -> None:
+ """Test case for add_api_scope
+
+ Create API scope
+ """
+ pass
+
+ def test_add_apis(self) -> None:
+ """Test case for add_apis
+
+ Create API
+ """
+ pass
+
+ def test_delete_api(self) -> None:
+ """Test case for delete_api
+
+ Delete API
+ """
+ pass
+
+ def test_delete_api_appliation_scope(self) -> None:
+ """Test case for delete_api_appliation_scope
+
+ Delete API application scope
+ """
+ pass
+
+ def test_delete_api_scope(self) -> None:
+ """Test case for delete_api_scope
+
+ Delete API scope
+ """
+ pass
+
+ def test_get_api(self) -> None:
+ """Test case for get_api
+
+ Get API
+ """
+ pass
+
+ def test_get_api_scope(self) -> None:
+ """Test case for get_api_scope
+
+ Get API scope
+ """
+ pass
+
+ def test_get_api_scopes(self) -> None:
+ """Test case for get_api_scopes
+
+ Get API scopes
+ """
+ pass
+
+ def test_get_apis(self) -> None:
+ """Test case for get_apis
+
+ Get APIs
+ """
+ pass
+
+ def test_update_api_applications(self) -> None:
+ """Test case for update_api_applications
+
+ Authorize API applications
+ """
+ pass
+
+ def test_update_api_scope(self) -> None:
+ """Test case for update_api_scope
+
+ Update API scope
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_applications.py b/test/test_applications.py
new file mode 100644
index 00000000..ad45fd0f
--- /dev/null
+++ b/test/test_applications.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.applications import Applications
+
+class TestApplications(unittest.TestCase):
+ """Applications unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Applications:
+ """Test Applications
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Applications`
+ """
+ model = Applications()
+ if include_optional:
+ return Applications(
+ id = '',
+ name = '',
+ type = ''
+ )
+ else:
+ return Applications(
+ )
+ """
+
+ def testApplications(self):
+ """Test Applications"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_applications_api.py b/test/test_applications_api.py
new file mode 100644
index 00000000..4607d578
--- /dev/null
+++ b/test/test_applications_api.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.applications_api import ApplicationsApi
+
+
+class TestApplicationsApi(unittest.TestCase):
+ """ApplicationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ApplicationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_application(self) -> None:
+ """Test case for create_application
+
+ Create application
+ """
+ pass
+
+ def test_delete_application(self) -> None:
+ """Test case for delete_application
+
+ Delete application
+ """
+ pass
+
+ def test_enable_connection(self) -> None:
+ """Test case for enable_connection
+
+ Enable connection
+ """
+ pass
+
+ def test_get_application(self) -> None:
+ """Test case for get_application
+
+ Get application
+ """
+ pass
+
+ def test_get_application_connections(self) -> None:
+ """Test case for get_application_connections
+
+ Get connections
+ """
+ pass
+
+ def test_get_application_property_values(self) -> None:
+ """Test case for get_application_property_values
+
+ Get property values
+ """
+ pass
+
+ def test_get_applications(self) -> None:
+ """Test case for get_applications
+
+ Get applications
+ """
+ pass
+
+ def test_remove_connection(self) -> None:
+ """Test case for remove_connection
+
+ Remove connection
+ """
+ pass
+
+ def test_update_application(self) -> None:
+ """Test case for update_application
+
+ Update Application
+ """
+ pass
+
+ def test_update_application_tokens(self) -> None:
+ """Test case for update_application_tokens
+
+ Update application tokens
+ """
+ pass
+
+ def test_update_applications_property(self) -> None:
+ """Test case for update_applications_property
+
+ Update property
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_authorize_app_api_response.py b/test/test_authorize_app_api_response.py
new file mode 100644
index 00000000..c7d07af6
--- /dev/null
+++ b/test/test_authorize_app_api_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.authorize_app_api_response import AuthorizeAppApiResponse
+
+class TestAuthorizeAppApiResponse(unittest.TestCase):
+ """AuthorizeAppApiResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AuthorizeAppApiResponse:
+ """Test AuthorizeAppApiResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AuthorizeAppApiResponse`
+ """
+ model = AuthorizeAppApiResponse()
+ if include_optional:
+ return AuthorizeAppApiResponse(
+ message = 'API applications updated',
+ code = 'API_APPLICATIONS_UPDATED',
+ applications_disconnected = [
+ ''
+ ],
+ applications_connected = [
+ 'd2db282d6214242b3b145c123f0c123'
+ ]
+ )
+ else:
+ return AuthorizeAppApiResponse(
+ )
+ """
+
+ def testAuthorizeAppApiResponse(self):
+ """Test AuthorizeAppApiResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_agreements_api.py b/test/test_billing_agreements_api.py
new file mode 100644
index 00000000..626e9391
--- /dev/null
+++ b/test/test_billing_agreements_api.py
@@ -0,0 +1,46 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.billing_agreements_api import BillingAgreementsApi
+
+
+class TestBillingAgreementsApi(unittest.TestCase):
+ """BillingAgreementsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BillingAgreementsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_billing_agreement(self) -> None:
+ """Test case for create_billing_agreement
+
+ Create billing agreement
+ """
+ pass
+
+ def test_get_billing_agreements(self) -> None:
+ """Test case for get_billing_agreements
+
+ Get billing agreements
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_api.py b/test/test_billing_api.py
new file mode 100644
index 00000000..046b38c4
--- /dev/null
+++ b/test/test_billing_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.billing_api import BillingApi
+
+
+class TestBillingApi(unittest.TestCase):
+ """BillingApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BillingApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_entitlements(self) -> None:
+ """Test case for get_entitlements
+
+ Get entitlements
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_entitlements_api.py b/test/test_billing_entitlements_api.py
new file mode 100644
index 00000000..46b751f9
--- /dev/null
+++ b/test/test_billing_entitlements_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.billing_entitlements_api import BillingEntitlementsApi
+
+
+class TestBillingEntitlementsApi(unittest.TestCase):
+ """BillingEntitlementsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BillingEntitlementsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_billing_entitlements(self) -> None:
+ """Test case for get_billing_entitlements
+
+ Get billing entitlements
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_meter_usage_api.py b/test/test_billing_meter_usage_api.py
new file mode 100644
index 00000000..f4fd3bf1
--- /dev/null
+++ b/test/test_billing_meter_usage_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.billing_meter_usage_api import BillingMeterUsageApi
+
+
+class TestBillingMeterUsageApi(unittest.TestCase):
+ """BillingMeterUsageApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BillingMeterUsageApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_meter_usage_record(self) -> None:
+ """Test case for create_meter_usage_record
+
+ Create meter usage record
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_business_api.py b/test/test_business_api.py
new file mode 100644
index 00000000..3496de1c
--- /dev/null
+++ b/test/test_business_api.py
@@ -0,0 +1,46 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.business_api import BusinessApi
+
+
+class TestBusinessApi(unittest.TestCase):
+ """BusinessApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BusinessApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_business(self) -> None:
+ """Test case for get_business
+
+ Get business
+ """
+ pass
+
+ def test_update_business(self) -> None:
+ """Test case for update_business
+
+ Update business
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_callbacks_api.py b/test/test_callbacks_api.py
new file mode 100644
index 00000000..a7def3b9
--- /dev/null
+++ b/test/test_callbacks_api.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.callbacks_api import CallbacksApi
+
+
+class TestCallbacksApi(unittest.TestCase):
+ """CallbacksApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CallbacksApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_add_logout_redirect_urls(self) -> None:
+ """Test case for add_logout_redirect_urls
+
+ Add logout redirect URLs
+ """
+ pass
+
+ def test_add_redirect_callback_urls(self) -> None:
+ """Test case for add_redirect_callback_urls
+
+ Add Redirect Callback URLs
+ """
+ pass
+
+ def test_delete_callback_urls(self) -> None:
+ """Test case for delete_callback_urls
+
+ Delete Callback URLs
+ """
+ pass
+
+ def test_delete_logout_urls(self) -> None:
+ """Test case for delete_logout_urls
+
+ Delete Logout URLs
+ """
+ pass
+
+ def test_get_callback_urls(self) -> None:
+ """Test case for get_callback_urls
+
+ List Callback URLs
+ """
+ pass
+
+ def test_get_logout_urls(self) -> None:
+ """Test case for get_logout_urls
+
+ List logout URLs
+ """
+ pass
+
+ def test_replace_logout_redirect_urls(self) -> None:
+ """Test case for replace_logout_redirect_urls
+
+ Replace logout redirect URls
+ """
+ pass
+
+ def test_replace_redirect_callback_urls(self) -> None:
+ """Test case for replace_redirect_callback_urls
+
+ Replace Redirect Callback URLs
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_category.py b/test/test_category.py
new file mode 100644
index 00000000..28a09889
--- /dev/null
+++ b/test/test_category.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.category import Category
+
+class TestCategory(unittest.TestCase):
+ """Category unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Category:
+ """Test Category
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Category`
+ """
+ model = Category()
+ if include_optional:
+ return Category(
+ id = '',
+ name = ''
+ )
+ else:
+ return Category(
+ )
+ """
+
+ def testCategory(self):
+ """Test Category"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connected_apps_access_token.py b/test/test_connected_apps_access_token.py
new file mode 100644
index 00000000..bb4a63f8
--- /dev/null
+++ b/test/test_connected_apps_access_token.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.connected_apps_access_token import ConnectedAppsAccessToken
+
+class TestConnectedAppsAccessToken(unittest.TestCase):
+ """ConnectedAppsAccessToken unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ConnectedAppsAccessToken:
+ """Test ConnectedAppsAccessToken
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ConnectedAppsAccessToken`
+ """
+ model = ConnectedAppsAccessToken()
+ if include_optional:
+ return ConnectedAppsAccessToken(
+ access_token = '',
+ access_token_expiry = ''
+ )
+ else:
+ return ConnectedAppsAccessToken(
+ )
+ """
+
+ def testConnectedAppsAccessToken(self):
+ """Test ConnectedAppsAccessToken"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connected_apps_api.py b/test/test_connected_apps_api.py
new file mode 100644
index 00000000..b8938068
--- /dev/null
+++ b/test/test_connected_apps_api.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.connected_apps_api import ConnectedAppsApi
+
+
+class TestConnectedAppsApi(unittest.TestCase):
+ """ConnectedAppsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ConnectedAppsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_connected_app_auth_url(self) -> None:
+ """Test case for get_connected_app_auth_url
+
+ Get Connected App URL
+ """
+ pass
+
+ def test_get_connected_app_token(self) -> None:
+ """Test case for get_connected_app_token
+
+ Get Connected App Token
+ """
+ pass
+
+ def test_revoke_connected_app_token(self) -> None:
+ """Test case for revoke_connected_app_token
+
+ Revoke Connected App Token
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connected_apps_auth_url.py b/test/test_connected_apps_auth_url.py
new file mode 100644
index 00000000..a86cc9f3
--- /dev/null
+++ b/test/test_connected_apps_auth_url.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.connected_apps_auth_url import ConnectedAppsAuthUrl
+
+class TestConnectedAppsAuthUrl(unittest.TestCase):
+ """ConnectedAppsAuthUrl unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ConnectedAppsAuthUrl:
+ """Test ConnectedAppsAuthUrl
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ConnectedAppsAuthUrl`
+ """
+ model = ConnectedAppsAuthUrl()
+ if include_optional:
+ return ConnectedAppsAuthUrl(
+ url = '',
+ session_id = ''
+ )
+ else:
+ return ConnectedAppsAuthUrl(
+ )
+ """
+
+ def testConnectedAppsAuthUrl(self):
+ """Test ConnectedAppsAuthUrl"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connection.py b/test/test_connection.py
new file mode 100644
index 00000000..5fac73f4
--- /dev/null
+++ b/test/test_connection.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.connection import Connection
+
+class TestConnection(unittest.TestCase):
+ """Connection unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Connection:
+ """Test Connection
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Connection`
+ """
+ model = Connection()
+ if include_optional:
+ return Connection(
+ code = '',
+ message = '',
+ connection = kinde_sdk.models.connection_connection.connection_connection(
+ id = '',
+ name = '',
+ display_name = '',
+ strategy = '', )
+ )
+ else:
+ return Connection(
+ )
+ """
+
+ def testConnection(self):
+ """Test Connection"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connection_connection.py b/test/test_connection_connection.py
new file mode 100644
index 00000000..2b5d177c
--- /dev/null
+++ b/test/test_connection_connection.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.connection_connection import ConnectionConnection
+
+class TestConnectionConnection(unittest.TestCase):
+ """ConnectionConnection unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ConnectionConnection:
+ """Test ConnectionConnection
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ConnectionConnection`
+ """
+ model = ConnectionConnection()
+ if include_optional:
+ return ConnectionConnection(
+ id = '',
+ name = '',
+ display_name = '',
+ strategy = ''
+ )
+ else:
+ return ConnectionConnection(
+ )
+ """
+
+ def testConnectionConnection(self):
+ """Test ConnectionConnection"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connections_api.py b/test/test_connections_api.py
new file mode 100644
index 00000000..14d45536
--- /dev/null
+++ b/test/test_connections_api.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.connections_api import ConnectionsApi
+
+
+class TestConnectionsApi(unittest.TestCase):
+ """ConnectionsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ConnectionsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_connection(self) -> None:
+ """Test case for create_connection
+
+ Create Connection
+ """
+ pass
+
+ def test_delete_connection(self) -> None:
+ """Test case for delete_connection
+
+ Delete Connection
+ """
+ pass
+
+ def test_get_connection(self) -> None:
+ """Test case for get_connection
+
+ Get Connection
+ """
+ pass
+
+ def test_get_connections(self) -> None:
+ """Test case for get_connections
+
+ Get connections
+ """
+ pass
+
+ def test_replace_connection(self) -> None:
+ """Test case for replace_connection
+
+ Replace Connection
+ """
+ pass
+
+ def test_update_connection(self) -> None:
+ """Test case for update_connection
+
+ Update Connection
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_api_scopes_response.py b/test/test_create_api_scopes_response.py
new file mode 100644
index 00000000..5f553ea3
--- /dev/null
+++ b/test/test_create_api_scopes_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_api_scopes_response import CreateApiScopesResponse
+
+class TestCreateApiScopesResponse(unittest.TestCase):
+ """CreateApiScopesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApiScopesResponse:
+ """Test CreateApiScopesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApiScopesResponse`
+ """
+ model = CreateApiScopesResponse()
+ if include_optional:
+ return CreateApiScopesResponse(
+ message = 'Success',
+ code = 'OK',
+ scope = kinde_sdk.models.create_api_scopes_response_scope.create_api_scopes_response_scope(
+ id = 'api_scope_0193ab57965aef77b2b687d0ef673713', )
+ )
+ else:
+ return CreateApiScopesResponse(
+ )
+ """
+
+ def testCreateApiScopesResponse(self):
+ """Test CreateApiScopesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_api_scopes_response_scope.py b/test/test_create_api_scopes_response_scope.py
new file mode 100644
index 00000000..2d5a9cae
--- /dev/null
+++ b/test/test_create_api_scopes_response_scope.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_api_scopes_response_scope import CreateApiScopesResponseScope
+
+class TestCreateApiScopesResponseScope(unittest.TestCase):
+ """CreateApiScopesResponseScope unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApiScopesResponseScope:
+ """Test CreateApiScopesResponseScope
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApiScopesResponseScope`
+ """
+ model = CreateApiScopesResponseScope()
+ if include_optional:
+ return CreateApiScopesResponseScope(
+ id = 'api_scope_0193ab57965aef77b2b687d0ef673713'
+ )
+ else:
+ return CreateApiScopesResponseScope(
+ )
+ """
+
+ def testCreateApiScopesResponseScope(self):
+ """Test CreateApiScopesResponseScope"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_apis_response.py b/test/test_create_apis_response.py
new file mode 100644
index 00000000..64b1d5b3
--- /dev/null
+++ b/test/test_create_apis_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_apis_response import CreateApisResponse
+
+class TestCreateApisResponse(unittest.TestCase):
+ """CreateApisResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApisResponse:
+ """Test CreateApisResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApisResponse`
+ """
+ model = CreateApisResponse()
+ if include_optional:
+ return CreateApisResponse(
+ message = 'Success',
+ code = 'OK',
+ api = kinde_sdk.models.create_apis_response_api.create_apis_response_api(
+ id = '7ccd126599aa422a771abcb341596881', )
+ )
+ else:
+ return CreateApisResponse(
+ )
+ """
+
+ def testCreateApisResponse(self):
+ """Test CreateApisResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_apis_response_api.py b/test/test_create_apis_response_api.py
new file mode 100644
index 00000000..f7fcf4f7
--- /dev/null
+++ b/test/test_create_apis_response_api.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_apis_response_api import CreateApisResponseApi
+
+class TestCreateApisResponseApi(unittest.TestCase):
+ """CreateApisResponseApi unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApisResponseApi:
+ """Test CreateApisResponseApi
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApisResponseApi`
+ """
+ model = CreateApisResponseApi()
+ if include_optional:
+ return CreateApisResponseApi(
+ id = '7ccd126599aa422a771abcb341596881'
+ )
+ else:
+ return CreateApisResponseApi(
+ )
+ """
+
+ def testCreateApisResponseApi(self):
+ """Test CreateApisResponseApi"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_application_request.py b/test/test_create_application_request.py
new file mode 100644
index 00000000..9db13af0
--- /dev/null
+++ b/test/test_create_application_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_application_request import CreateApplicationRequest
+
+class TestCreateApplicationRequest(unittest.TestCase):
+ """CreateApplicationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApplicationRequest:
+ """Test CreateApplicationRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApplicationRequest`
+ """
+ model = CreateApplicationRequest()
+ if include_optional:
+ return CreateApplicationRequest(
+ name = 'React Native app',
+ type = 'reg'
+ )
+ else:
+ return CreateApplicationRequest(
+ name = 'React Native app',
+ type = 'reg',
+ )
+ """
+
+ def testCreateApplicationRequest(self):
+ """Test CreateApplicationRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_application_response.py b/test/test_create_application_response.py
new file mode 100644
index 00000000..18bac7bc
--- /dev/null
+++ b/test/test_create_application_response.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_application_response import CreateApplicationResponse
+
+class TestCreateApplicationResponse(unittest.TestCase):
+ """CreateApplicationResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApplicationResponse:
+ """Test CreateApplicationResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApplicationResponse`
+ """
+ model = CreateApplicationResponse()
+ if include_optional:
+ return CreateApplicationResponse(
+ code = '',
+ message = '',
+ application = kinde_sdk.models.create_application_response_application.create_application_response_application(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ client_secret = 'sUJSHI3ZQEVTJkx6hOxdOSHaLsZkCBRFLzTNOI791rX8mDjgt7LC', )
+ )
+ else:
+ return CreateApplicationResponse(
+ )
+ """
+
+ def testCreateApplicationResponse(self):
+ """Test CreateApplicationResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_application_response_application.py b/test/test_create_application_response_application.py
new file mode 100644
index 00000000..d84f5cd8
--- /dev/null
+++ b/test/test_create_application_response_application.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_application_response_application import CreateApplicationResponseApplication
+
+class TestCreateApplicationResponseApplication(unittest.TestCase):
+ """CreateApplicationResponseApplication unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateApplicationResponseApplication:
+ """Test CreateApplicationResponseApplication
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateApplicationResponseApplication`
+ """
+ model = CreateApplicationResponseApplication()
+ if include_optional:
+ return CreateApplicationResponseApplication(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ client_secret = 'sUJSHI3ZQEVTJkx6hOxdOSHaLsZkCBRFLzTNOI791rX8mDjgt7LC'
+ )
+ else:
+ return CreateApplicationResponseApplication(
+ )
+ """
+
+ def testCreateApplicationResponseApplication(self):
+ """Test CreateApplicationResponseApplication"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_billing_agreement_request.py b/test/test_create_billing_agreement_request.py
new file mode 100644
index 00000000..8ebaaa53
--- /dev/null
+++ b/test/test_create_billing_agreement_request.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_billing_agreement_request import CreateBillingAgreementRequest
+
+class TestCreateBillingAgreementRequest(unittest.TestCase):
+ """CreateBillingAgreementRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateBillingAgreementRequest:
+ """Test CreateBillingAgreementRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateBillingAgreementRequest`
+ """
+ model = CreateBillingAgreementRequest()
+ if include_optional:
+ return CreateBillingAgreementRequest(
+ customer_id = 'customer_0195ac80a14c2ca2cec97d026d864de0',
+ plan_code = 'pro',
+ is_invoice_now = True,
+ is_prorate = True
+ )
+ else:
+ return CreateBillingAgreementRequest(
+ customer_id = 'customer_0195ac80a14c2ca2cec97d026d864de0',
+ plan_code = 'pro',
+ )
+ """
+
+ def testCreateBillingAgreementRequest(self):
+ """Test CreateBillingAgreementRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_category_request.py b/test/test_create_category_request.py
new file mode 100644
index 00000000..4ce32964
--- /dev/null
+++ b/test/test_create_category_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_category_request import CreateCategoryRequest
+
+class TestCreateCategoryRequest(unittest.TestCase):
+ """CreateCategoryRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateCategoryRequest:
+ """Test CreateCategoryRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateCategoryRequest`
+ """
+ model = CreateCategoryRequest()
+ if include_optional:
+ return CreateCategoryRequest(
+ name = '',
+ context = 'org'
+ )
+ else:
+ return CreateCategoryRequest(
+ name = '',
+ context = 'org',
+ )
+ """
+
+ def testCreateCategoryRequest(self):
+ """Test CreateCategoryRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_category_response.py b/test/test_create_category_response.py
new file mode 100644
index 00000000..195d8785
--- /dev/null
+++ b/test/test_create_category_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_category_response import CreateCategoryResponse
+
+class TestCreateCategoryResponse(unittest.TestCase):
+ """CreateCategoryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateCategoryResponse:
+ """Test CreateCategoryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateCategoryResponse`
+ """
+ model = CreateCategoryResponse()
+ if include_optional:
+ return CreateCategoryResponse(
+ message = '',
+ code = '',
+ category = kinde_sdk.models.create_category_response_category.create_category_response_category(
+ id = '', )
+ )
+ else:
+ return CreateCategoryResponse(
+ )
+ """
+
+ def testCreateCategoryResponse(self):
+ """Test CreateCategoryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_category_response_category.py b/test/test_create_category_response_category.py
new file mode 100644
index 00000000..1da4b033
--- /dev/null
+++ b/test/test_create_category_response_category.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_category_response_category import CreateCategoryResponseCategory
+
+class TestCreateCategoryResponseCategory(unittest.TestCase):
+ """CreateCategoryResponseCategory unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateCategoryResponseCategory:
+ """Test CreateCategoryResponseCategory
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateCategoryResponseCategory`
+ """
+ model = CreateCategoryResponseCategory()
+ if include_optional:
+ return CreateCategoryResponseCategory(
+ id = ''
+ )
+ else:
+ return CreateCategoryResponseCategory(
+ )
+ """
+
+ def testCreateCategoryResponseCategory(self):
+ """Test CreateCategoryResponseCategory"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_request.py b/test/test_create_connection_request.py
new file mode 100644
index 00000000..7c722e70
--- /dev/null
+++ b/test/test_create_connection_request.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_request import CreateConnectionRequest
+
+class TestCreateConnectionRequest(unittest.TestCase):
+ """CreateConnectionRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionRequest:
+ """Test CreateConnectionRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionRequest`
+ """
+ model = CreateConnectionRequest()
+ if include_optional:
+ return CreateConnectionRequest(
+ name = '',
+ display_name = '',
+ strategy = 'oauth2:apple',
+ enabled_applications = [
+ ''
+ ],
+ organization_code = 'org_80581732fbe',
+ options = None
+ )
+ else:
+ return CreateConnectionRequest(
+ )
+ """
+
+ def testCreateConnectionRequest(self):
+ """Test CreateConnectionRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_request_options.py b/test/test_create_connection_request_options.py
new file mode 100644
index 00000000..c578b8b8
--- /dev/null
+++ b/test/test_create_connection_request_options.py
@@ -0,0 +1,75 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_request_options import CreateConnectionRequestOptions
+
+class TestCreateConnectionRequestOptions(unittest.TestCase):
+ """CreateConnectionRequestOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionRequestOptions:
+ """Test CreateConnectionRequestOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionRequestOptions`
+ """
+ model = CreateConnectionRequestOptions()
+ if include_optional:
+ return CreateConnectionRequestOptions(
+ client_id = 'hji7db2146af332akfldfded22',
+ client_secret = '19fkjdalg521l23fassf3039d4ae18b',
+ is_use_custom_domain = True,
+ home_realm_domains = [@kinde.com, @kinde.io],
+ entra_id_domain = 'kinde.com',
+ is_use_common_endpoint = True,
+ is_sync_user_profile_on_login = True,
+ is_retrieve_provider_user_groups = True,
+ is_extended_attributes_required = True,
+ is_auto_join_organization_enabled = True,
+ saml_entity_id = 'https://kinde.com',
+ saml_acs_url = 'https://kinde.com/saml/acs',
+ saml_idp_metadata_url = 'https://kinde.com/saml/metadata',
+ saml_sign_in_url = 'https://kinde.com/saml/signin',
+ saml_email_key_attr = 'email',
+ saml_first_name_key_attr = 'given_name',
+ saml_last_name_key_attr = 'family_name',
+ is_create_missing_user = True,
+ saml_signing_certificate = '-----BEGIN CERTIFICATE-----
+MIIDdTCCAl2gAwIBAgIEUjZoyDANBgkqhkiG9w0BAQsFADBzMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExEjAQBgNVBAcMCVNhbiBGcmFuYzEXMBUGA1UECgwOQ2xv
+-----END CERTIFICATE-----',
+ saml_signing_private_key = '-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCy5+KLjTzF6tvl
+-----END PRIVATE KEY-----'
+ )
+ else:
+ return CreateConnectionRequestOptions(
+ )
+ """
+
+ def testCreateConnectionRequestOptions(self):
+ """Test CreateConnectionRequestOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_request_options_one_of.py b/test/test_create_connection_request_options_one_of.py
new file mode 100644
index 00000000..ef3aaecf
--- /dev/null
+++ b/test/test_create_connection_request_options_one_of.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_request_options_one_of import CreateConnectionRequestOptionsOneOf
+
+class TestCreateConnectionRequestOptionsOneOf(unittest.TestCase):
+ """CreateConnectionRequestOptionsOneOf unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionRequestOptionsOneOf:
+ """Test CreateConnectionRequestOptionsOneOf
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionRequestOptionsOneOf`
+ """
+ model = CreateConnectionRequestOptionsOneOf()
+ if include_optional:
+ return CreateConnectionRequestOptionsOneOf(
+ client_id = 'hji7db2146af332akfldfded22',
+ client_secret = '19fkjdalg521l23fassf3039d4ae18b',
+ is_use_custom_domain = True
+ )
+ else:
+ return CreateConnectionRequestOptionsOneOf(
+ )
+ """
+
+ def testCreateConnectionRequestOptionsOneOf(self):
+ """Test CreateConnectionRequestOptionsOneOf"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_request_options_one_of1.py b/test/test_create_connection_request_options_one_of1.py
new file mode 100644
index 00000000..81c84081
--- /dev/null
+++ b/test/test_create_connection_request_options_one_of1.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_request_options_one_of1 import CreateConnectionRequestOptionsOneOf1
+
+class TestCreateConnectionRequestOptionsOneOf1(unittest.TestCase):
+ """CreateConnectionRequestOptionsOneOf1 unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionRequestOptionsOneOf1:
+ """Test CreateConnectionRequestOptionsOneOf1
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionRequestOptionsOneOf1`
+ """
+ model = CreateConnectionRequestOptionsOneOf1()
+ if include_optional:
+ return CreateConnectionRequestOptionsOneOf1(
+ client_id = 'hji7db2146af332akfldfded22',
+ client_secret = '19fkjdalg521l23fassf3039d4ae18b',
+ home_realm_domains = ["@kinde.com","@kinde.io"],
+ entra_id_domain = 'kinde.com',
+ is_use_common_endpoint = True,
+ is_sync_user_profile_on_login = True,
+ is_retrieve_provider_user_groups = True,
+ is_extended_attributes_required = True,
+ is_auto_join_organization_enabled = True
+ )
+ else:
+ return CreateConnectionRequestOptionsOneOf1(
+ )
+ """
+
+ def testCreateConnectionRequestOptionsOneOf1(self):
+ """Test CreateConnectionRequestOptionsOneOf1"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_request_options_one_of2.py b/test/test_create_connection_request_options_one_of2.py
new file mode 100644
index 00000000..c52ffd5f
--- /dev/null
+++ b/test/test_create_connection_request_options_one_of2.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_request_options_one_of2 import CreateConnectionRequestOptionsOneOf2
+
+class TestCreateConnectionRequestOptionsOneOf2(unittest.TestCase):
+ """CreateConnectionRequestOptionsOneOf2 unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionRequestOptionsOneOf2:
+ """Test CreateConnectionRequestOptionsOneOf2
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionRequestOptionsOneOf2`
+ """
+ model = CreateConnectionRequestOptionsOneOf2()
+ if include_optional:
+ return CreateConnectionRequestOptionsOneOf2(
+ home_realm_domains = ["@kinde.com","@kinde.io"],
+ saml_entity_id = 'https://kinde.com',
+ saml_acs_url = 'https://kinde.com/saml/acs',
+ saml_idp_metadata_url = 'https://kinde.com/saml/metadata',
+ saml_sign_in_url = 'https://kinde.com/saml/signin',
+ saml_email_key_attr = 'email',
+ saml_first_name_key_attr = 'given_name',
+ saml_last_name_key_attr = 'family_name',
+ is_create_missing_user = True,
+ saml_signing_certificate = '-----BEGIN CERTIFICATE-----
+MIIDdTCCAl2gAwIBAgIEUjZoyDANBgkqhkiG9w0BAQsFADBzMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExEjAQBgNVBAcMCVNhbiBGcmFuYzEXMBUGA1UECgwOQ2xv
+-----END CERTIFICATE-----',
+ saml_signing_private_key = '-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCy5+KLjTzF6tvl
+-----END PRIVATE KEY-----',
+ is_auto_join_organization_enabled = True
+ )
+ else:
+ return CreateConnectionRequestOptionsOneOf2(
+ )
+ """
+
+ def testCreateConnectionRequestOptionsOneOf2(self):
+ """Test CreateConnectionRequestOptionsOneOf2"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_response.py b/test/test_create_connection_response.py
new file mode 100644
index 00000000..dbc30d1b
--- /dev/null
+++ b/test/test_create_connection_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_response import CreateConnectionResponse
+
+class TestCreateConnectionResponse(unittest.TestCase):
+ """CreateConnectionResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionResponse:
+ """Test CreateConnectionResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionResponse`
+ """
+ model = CreateConnectionResponse()
+ if include_optional:
+ return CreateConnectionResponse(
+ message = '',
+ code = '',
+ connection = kinde_sdk.models.create_connection_response_connection.create_connection_response_connection(
+ id = '', )
+ )
+ else:
+ return CreateConnectionResponse(
+ )
+ """
+
+ def testCreateConnectionResponse(self):
+ """Test CreateConnectionResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_connection_response_connection.py b/test/test_create_connection_response_connection.py
new file mode 100644
index 00000000..2c3574fd
--- /dev/null
+++ b/test/test_create_connection_response_connection.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_connection_response_connection import CreateConnectionResponseConnection
+
+class TestCreateConnectionResponseConnection(unittest.TestCase):
+ """CreateConnectionResponseConnection unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateConnectionResponseConnection:
+ """Test CreateConnectionResponseConnection
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateConnectionResponseConnection`
+ """
+ model = CreateConnectionResponseConnection()
+ if include_optional:
+ return CreateConnectionResponseConnection(
+ id = ''
+ )
+ else:
+ return CreateConnectionResponseConnection(
+ )
+ """
+
+ def testCreateConnectionResponseConnection(self):
+ """Test CreateConnectionResponseConnection"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_environment_variable_request.py b/test/test_create_environment_variable_request.py
new file mode 100644
index 00000000..df2f3889
--- /dev/null
+++ b/test/test_create_environment_variable_request.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_environment_variable_request import CreateEnvironmentVariableRequest
+
+class TestCreateEnvironmentVariableRequest(unittest.TestCase):
+ """CreateEnvironmentVariableRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateEnvironmentVariableRequest:
+ """Test CreateEnvironmentVariableRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateEnvironmentVariableRequest`
+ """
+ model = CreateEnvironmentVariableRequest()
+ if include_optional:
+ return CreateEnvironmentVariableRequest(
+ key = 'MY_API_KEY',
+ value = 'some-secret-value',
+ is_secret = False
+ )
+ else:
+ return CreateEnvironmentVariableRequest(
+ key = 'MY_API_KEY',
+ value = 'some-secret-value',
+ )
+ """
+
+ def testCreateEnvironmentVariableRequest(self):
+ """Test CreateEnvironmentVariableRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_environment_variable_response.py b/test/test_create_environment_variable_response.py
new file mode 100644
index 00000000..2d279f93
--- /dev/null
+++ b/test/test_create_environment_variable_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_environment_variable_response import CreateEnvironmentVariableResponse
+
+class TestCreateEnvironmentVariableResponse(unittest.TestCase):
+ """CreateEnvironmentVariableResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateEnvironmentVariableResponse:
+ """Test CreateEnvironmentVariableResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateEnvironmentVariableResponse`
+ """
+ model = CreateEnvironmentVariableResponse()
+ if include_optional:
+ return CreateEnvironmentVariableResponse(
+ message = 'Environment variable created',
+ code = 'VARIABLE_CREATED',
+ environment_variable = kinde_sdk.models.create_environment_variable_response_environment_variable.create_environment_variable_response_environment_variable(
+ id = 'env_var_0192b194f6156fb7452fe38cfb144958', )
+ )
+ else:
+ return CreateEnvironmentVariableResponse(
+ )
+ """
+
+ def testCreateEnvironmentVariableResponse(self):
+ """Test CreateEnvironmentVariableResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_environment_variable_response_environment_variable.py b/test/test_create_environment_variable_response_environment_variable.py
new file mode 100644
index 00000000..0dee1ddc
--- /dev/null
+++ b/test/test_create_environment_variable_response_environment_variable.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_environment_variable_response_environment_variable import CreateEnvironmentVariableResponseEnvironmentVariable
+
+class TestCreateEnvironmentVariableResponseEnvironmentVariable(unittest.TestCase):
+ """CreateEnvironmentVariableResponseEnvironmentVariable unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateEnvironmentVariableResponseEnvironmentVariable:
+ """Test CreateEnvironmentVariableResponseEnvironmentVariable
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateEnvironmentVariableResponseEnvironmentVariable`
+ """
+ model = CreateEnvironmentVariableResponseEnvironmentVariable()
+ if include_optional:
+ return CreateEnvironmentVariableResponseEnvironmentVariable(
+ id = 'env_var_0192b194f6156fb7452fe38cfb144958'
+ )
+ else:
+ return CreateEnvironmentVariableResponseEnvironmentVariable(
+ )
+ """
+
+ def testCreateEnvironmentVariableResponseEnvironmentVariable(self):
+ """Test CreateEnvironmentVariableResponseEnvironmentVariable"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_feature_flag_request.py b/test/test_create_feature_flag_request.py
new file mode 100644
index 00000000..14d10637
--- /dev/null
+++ b/test/test_create_feature_flag_request.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_feature_flag_request import CreateFeatureFlagRequest
+
+class TestCreateFeatureFlagRequest(unittest.TestCase):
+ """CreateFeatureFlagRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateFeatureFlagRequest:
+ """Test CreateFeatureFlagRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateFeatureFlagRequest`
+ """
+ model = CreateFeatureFlagRequest()
+ if include_optional:
+ return CreateFeatureFlagRequest(
+ name = '',
+ description = '',
+ key = '',
+ type = 'str',
+ allow_override_level = 'env',
+ default_value = ''
+ )
+ else:
+ return CreateFeatureFlagRequest(
+ name = '',
+ key = '',
+ type = 'str',
+ default_value = '',
+ )
+ """
+
+ def testCreateFeatureFlagRequest(self):
+ """Test CreateFeatureFlagRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_identity_response.py b/test/test_create_identity_response.py
new file mode 100644
index 00000000..1d8551a6
--- /dev/null
+++ b/test/test_create_identity_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_identity_response import CreateIdentityResponse
+
+class TestCreateIdentityResponse(unittest.TestCase):
+ """CreateIdentityResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateIdentityResponse:
+ """Test CreateIdentityResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateIdentityResponse`
+ """
+ model = CreateIdentityResponse()
+ if include_optional:
+ return CreateIdentityResponse(
+ message = '',
+ code = '',
+ identity = kinde_sdk.models.create_identity_response_identity.create_identity_response_identity(
+ id = '', )
+ )
+ else:
+ return CreateIdentityResponse(
+ )
+ """
+
+ def testCreateIdentityResponse(self):
+ """Test CreateIdentityResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_identity_response_identity.py b/test/test_create_identity_response_identity.py
new file mode 100644
index 00000000..f9b14441
--- /dev/null
+++ b/test/test_create_identity_response_identity.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_identity_response_identity import CreateIdentityResponseIdentity
+
+class TestCreateIdentityResponseIdentity(unittest.TestCase):
+ """CreateIdentityResponseIdentity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateIdentityResponseIdentity:
+ """Test CreateIdentityResponseIdentity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateIdentityResponseIdentity`
+ """
+ model = CreateIdentityResponseIdentity()
+ if include_optional:
+ return CreateIdentityResponseIdentity(
+ id = ''
+ )
+ else:
+ return CreateIdentityResponseIdentity(
+ )
+ """
+
+ def testCreateIdentityResponseIdentity(self):
+ """Test CreateIdentityResponseIdentity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_meter_usage_record_request.py b/test/test_create_meter_usage_record_request.py
new file mode 100644
index 00000000..4abb2b81
--- /dev/null
+++ b/test/test_create_meter_usage_record_request.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_meter_usage_record_request import CreateMeterUsageRecordRequest
+
+class TestCreateMeterUsageRecordRequest(unittest.TestCase):
+ """CreateMeterUsageRecordRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateMeterUsageRecordRequest:
+ """Test CreateMeterUsageRecordRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateMeterUsageRecordRequest`
+ """
+ model = CreateMeterUsageRecordRequest()
+ if include_optional:
+ return CreateMeterUsageRecordRequest(
+ customer_agreement_id = 'agreement_0195ac80a14c2ca2cec97d026d864de0',
+ billing_feature_code = 'pro_gym',
+ meter_value = 'pro_gym',
+ meter_usage_timestamp = '2024-11-18T13:32:03+11:00'
+ )
+ else:
+ return CreateMeterUsageRecordRequest(
+ customer_agreement_id = 'agreement_0195ac80a14c2ca2cec97d026d864de0',
+ billing_feature_code = 'pro_gym',
+ meter_value = 'pro_gym',
+ )
+ """
+
+ def testCreateMeterUsageRecordRequest(self):
+ """Test CreateMeterUsageRecordRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_meter_usage_record_response.py b/test/test_create_meter_usage_record_response.py
new file mode 100644
index 00000000..3597c28f
--- /dev/null
+++ b/test/test_create_meter_usage_record_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_meter_usage_record_response import CreateMeterUsageRecordResponse
+
+class TestCreateMeterUsageRecordResponse(unittest.TestCase):
+ """CreateMeterUsageRecordResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateMeterUsageRecordResponse:
+ """Test CreateMeterUsageRecordResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateMeterUsageRecordResponse`
+ """
+ model = CreateMeterUsageRecordResponse()
+ if include_optional:
+ return CreateMeterUsageRecordResponse(
+ message = 'Success',
+ code = 'OK'
+ )
+ else:
+ return CreateMeterUsageRecordResponse(
+ )
+ """
+
+ def testCreateMeterUsageRecordResponse(self):
+ """Test CreateMeterUsageRecordResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_organization_request.py b/test/test_create_organization_request.py
new file mode 100644
index 00000000..5dd17644
--- /dev/null
+++ b/test/test_create_organization_request.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_organization_request import CreateOrganizationRequest
+
+class TestCreateOrganizationRequest(unittest.TestCase):
+ """CreateOrganizationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateOrganizationRequest:
+ """Test CreateOrganizationRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateOrganizationRequest`
+ """
+ model = CreateOrganizationRequest()
+ if include_optional:
+ return CreateOrganizationRequest(
+ name = 'Acme Corp',
+ feature_flags = {
+ 'str' : 'str'
+ },
+ external_id = 'some1234',
+ background_color = '',
+ button_color = '',
+ button_text_color = '',
+ link_color = '',
+ background_color_dark = '',
+ button_color_dark = '',
+ button_text_color_dark = '',
+ link_color_dark = '',
+ theme_code = '',
+ handle = 'acme_corp',
+ is_allow_registrations = True,
+ sender_name = 'Acme Corp',
+ sender_email = 'hello@acmecorp.com',
+ is_create_billing_customer = False,
+ billing_email = 'billing@acmecorp.com',
+ billing_plan_code = 'pro'
+ )
+ else:
+ return CreateOrganizationRequest(
+ name = 'Acme Corp',
+ )
+ """
+
+ def testCreateOrganizationRequest(self):
+ """Test CreateOrganizationRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_organization_response.py b/test/test_create_organization_response.py
new file mode 100644
index 00000000..f284dbaf
--- /dev/null
+++ b/test/test_create_organization_response.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_organization_response import CreateOrganizationResponse
+
+class TestCreateOrganizationResponse(unittest.TestCase):
+ """CreateOrganizationResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateOrganizationResponse:
+ """Test CreateOrganizationResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateOrganizationResponse`
+ """
+ model = CreateOrganizationResponse()
+ if include_optional:
+ return CreateOrganizationResponse(
+ message = 'Success',
+ code = 'OK',
+ organization = kinde_sdk.models.create_organization_response_organization.create_organization_response_organization(
+ code = 'org_1ccfb819462',
+ billing_customer_id = 'customer_1245adbc6789', )
+ )
+ else:
+ return CreateOrganizationResponse(
+ )
+ """
+
+ def testCreateOrganizationResponse(self):
+ """Test CreateOrganizationResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_organization_response_organization.py b/test/test_create_organization_response_organization.py
new file mode 100644
index 00000000..f1bfbe9a
--- /dev/null
+++ b/test/test_create_organization_response_organization.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_organization_response_organization import CreateOrganizationResponseOrganization
+
+class TestCreateOrganizationResponseOrganization(unittest.TestCase):
+ """CreateOrganizationResponseOrganization unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateOrganizationResponseOrganization:
+ """Test CreateOrganizationResponseOrganization
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateOrganizationResponseOrganization`
+ """
+ model = CreateOrganizationResponseOrganization()
+ if include_optional:
+ return CreateOrganizationResponseOrganization(
+ code = 'org_1ccfb819462',
+ billing_customer_id = 'customer_1245adbc6789'
+ )
+ else:
+ return CreateOrganizationResponseOrganization(
+ )
+ """
+
+ def testCreateOrganizationResponseOrganization(self):
+ """Test CreateOrganizationResponseOrganization"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_organization_user_permission_request.py b/test/test_create_organization_user_permission_request.py
new file mode 100644
index 00000000..0836878e
--- /dev/null
+++ b/test/test_create_organization_user_permission_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_organization_user_permission_request import CreateOrganizationUserPermissionRequest
+
+class TestCreateOrganizationUserPermissionRequest(unittest.TestCase):
+ """CreateOrganizationUserPermissionRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateOrganizationUserPermissionRequest:
+ """Test CreateOrganizationUserPermissionRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateOrganizationUserPermissionRequest`
+ """
+ model = CreateOrganizationUserPermissionRequest()
+ if include_optional:
+ return CreateOrganizationUserPermissionRequest(
+ permission_id = ''
+ )
+ else:
+ return CreateOrganizationUserPermissionRequest(
+ )
+ """
+
+ def testCreateOrganizationUserPermissionRequest(self):
+ """Test CreateOrganizationUserPermissionRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_organization_user_role_request.py b/test/test_create_organization_user_role_request.py
new file mode 100644
index 00000000..2fa8f5f3
--- /dev/null
+++ b/test/test_create_organization_user_role_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_organization_user_role_request import CreateOrganizationUserRoleRequest
+
+class TestCreateOrganizationUserRoleRequest(unittest.TestCase):
+ """CreateOrganizationUserRoleRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateOrganizationUserRoleRequest:
+ """Test CreateOrganizationUserRoleRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateOrganizationUserRoleRequest`
+ """
+ model = CreateOrganizationUserRoleRequest()
+ if include_optional:
+ return CreateOrganizationUserRoleRequest(
+ role_id = ''
+ )
+ else:
+ return CreateOrganizationUserRoleRequest(
+ )
+ """
+
+ def testCreateOrganizationUserRoleRequest(self):
+ """Test CreateOrganizationUserRoleRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_permission_request.py b/test/test_create_permission_request.py
new file mode 100644
index 00000000..30192fd0
--- /dev/null
+++ b/test/test_create_permission_request.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_permission_request import CreatePermissionRequest
+
+class TestCreatePermissionRequest(unittest.TestCase):
+ """CreatePermissionRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreatePermissionRequest:
+ """Test CreatePermissionRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreatePermissionRequest`
+ """
+ model = CreatePermissionRequest()
+ if include_optional:
+ return CreatePermissionRequest(
+ name = '',
+ description = '',
+ key = ''
+ )
+ else:
+ return CreatePermissionRequest(
+ )
+ """
+
+ def testCreatePermissionRequest(self):
+ """Test CreatePermissionRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_property_request.py b/test/test_create_property_request.py
new file mode 100644
index 00000000..3afd1a1f
--- /dev/null
+++ b/test/test_create_property_request.py
@@ -0,0 +1,64 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_property_request import CreatePropertyRequest
+
+class TestCreatePropertyRequest(unittest.TestCase):
+ """CreatePropertyRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreatePropertyRequest:
+ """Test CreatePropertyRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreatePropertyRequest`
+ """
+ model = CreatePropertyRequest()
+ if include_optional:
+ return CreatePropertyRequest(
+ name = '',
+ description = '',
+ key = '',
+ type = 'single_line_text',
+ context = 'org',
+ is_private = True,
+ category_id = ''
+ )
+ else:
+ return CreatePropertyRequest(
+ name = '',
+ key = '',
+ type = 'single_line_text',
+ context = 'org',
+ is_private = True,
+ category_id = '',
+ )
+ """
+
+ def testCreatePropertyRequest(self):
+ """Test CreatePropertyRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_property_response.py b/test/test_create_property_response.py
new file mode 100644
index 00000000..6e32bb43
--- /dev/null
+++ b/test/test_create_property_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_property_response import CreatePropertyResponse
+
+class TestCreatePropertyResponse(unittest.TestCase):
+ """CreatePropertyResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreatePropertyResponse:
+ """Test CreatePropertyResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreatePropertyResponse`
+ """
+ model = CreatePropertyResponse()
+ if include_optional:
+ return CreatePropertyResponse(
+ message = '',
+ code = '',
+ var_property = kinde_sdk.models.create_property_response_property.create_property_response_property(
+ id = '', )
+ )
+ else:
+ return CreatePropertyResponse(
+ )
+ """
+
+ def testCreatePropertyResponse(self):
+ """Test CreatePropertyResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_property_response_property.py b/test/test_create_property_response_property.py
new file mode 100644
index 00000000..89abc8c7
--- /dev/null
+++ b/test/test_create_property_response_property.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_property_response_property import CreatePropertyResponseProperty
+
+class TestCreatePropertyResponseProperty(unittest.TestCase):
+ """CreatePropertyResponseProperty unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreatePropertyResponseProperty:
+ """Test CreatePropertyResponseProperty
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreatePropertyResponseProperty`
+ """
+ model = CreatePropertyResponseProperty()
+ if include_optional:
+ return CreatePropertyResponseProperty(
+ id = ''
+ )
+ else:
+ return CreatePropertyResponseProperty(
+ )
+ """
+
+ def testCreatePropertyResponseProperty(self):
+ """Test CreatePropertyResponseProperty"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_role_request.py b/test/test_create_role_request.py
new file mode 100644
index 00000000..aed1a0f1
--- /dev/null
+++ b/test/test_create_role_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_role_request import CreateRoleRequest
+
+class TestCreateRoleRequest(unittest.TestCase):
+ """CreateRoleRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateRoleRequest:
+ """Test CreateRoleRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateRoleRequest`
+ """
+ model = CreateRoleRequest()
+ if include_optional:
+ return CreateRoleRequest(
+ name = '',
+ description = '',
+ key = '',
+ is_default_role = True
+ )
+ else:
+ return CreateRoleRequest(
+ )
+ """
+
+ def testCreateRoleRequest(self):
+ """Test CreateRoleRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_roles_response.py b/test/test_create_roles_response.py
new file mode 100644
index 00000000..e1ee5aa6
--- /dev/null
+++ b/test/test_create_roles_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_roles_response import CreateRolesResponse
+
+class TestCreateRolesResponse(unittest.TestCase):
+ """CreateRolesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateRolesResponse:
+ """Test CreateRolesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateRolesResponse`
+ """
+ model = CreateRolesResponse()
+ if include_optional:
+ return CreateRolesResponse(
+ code = '',
+ message = '',
+ role = kinde_sdk.models.create_roles_response_role.create_roles_response_role(
+ id = '', )
+ )
+ else:
+ return CreateRolesResponse(
+ )
+ """
+
+ def testCreateRolesResponse(self):
+ """Test CreateRolesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_roles_response_role.py b/test/test_create_roles_response_role.py
new file mode 100644
index 00000000..e524da09
--- /dev/null
+++ b/test/test_create_roles_response_role.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_roles_response_role import CreateRolesResponseRole
+
+class TestCreateRolesResponseRole(unittest.TestCase):
+ """CreateRolesResponseRole unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateRolesResponseRole:
+ """Test CreateRolesResponseRole
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateRolesResponseRole`
+ """
+ model = CreateRolesResponseRole()
+ if include_optional:
+ return CreateRolesResponseRole(
+ id = ''
+ )
+ else:
+ return CreateRolesResponseRole(
+ )
+ """
+
+ def testCreateRolesResponseRole(self):
+ """Test CreateRolesResponseRole"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_subscriber_success_response.py b/test/test_create_subscriber_success_response.py
new file mode 100644
index 00000000..e51b29b8
--- /dev/null
+++ b/test/test_create_subscriber_success_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_subscriber_success_response import CreateSubscriberSuccessResponse
+
+class TestCreateSubscriberSuccessResponse(unittest.TestCase):
+ """CreateSubscriberSuccessResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateSubscriberSuccessResponse:
+ """Test CreateSubscriberSuccessResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateSubscriberSuccessResponse`
+ """
+ model = CreateSubscriberSuccessResponse()
+ if include_optional:
+ return CreateSubscriberSuccessResponse(
+ subscriber = kinde_sdk.models.create_subscriber_success_response_subscriber.create_subscriber_success_response_subscriber(
+ subscriber_id = '', )
+ )
+ else:
+ return CreateSubscriberSuccessResponse(
+ )
+ """
+
+ def testCreateSubscriberSuccessResponse(self):
+ """Test CreateSubscriberSuccessResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_subscriber_success_response_subscriber.py b/test/test_create_subscriber_success_response_subscriber.py
new file mode 100644
index 00000000..051e04e1
--- /dev/null
+++ b/test/test_create_subscriber_success_response_subscriber.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_subscriber_success_response_subscriber import CreateSubscriberSuccessResponseSubscriber
+
+class TestCreateSubscriberSuccessResponseSubscriber(unittest.TestCase):
+ """CreateSubscriberSuccessResponseSubscriber unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateSubscriberSuccessResponseSubscriber:
+ """Test CreateSubscriberSuccessResponseSubscriber
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateSubscriberSuccessResponseSubscriber`
+ """
+ model = CreateSubscriberSuccessResponseSubscriber()
+ if include_optional:
+ return CreateSubscriberSuccessResponseSubscriber(
+ subscriber_id = ''
+ )
+ else:
+ return CreateSubscriberSuccessResponseSubscriber(
+ )
+ """
+
+ def testCreateSubscriberSuccessResponseSubscriber(self):
+ """Test CreateSubscriberSuccessResponseSubscriber"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_user_identity_request.py b/test/test_create_user_identity_request.py
new file mode 100644
index 00000000..c273b454
--- /dev/null
+++ b/test/test_create_user_identity_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_user_identity_request import CreateUserIdentityRequest
+
+class TestCreateUserIdentityRequest(unittest.TestCase):
+ """CreateUserIdentityRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateUserIdentityRequest:
+ """Test CreateUserIdentityRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateUserIdentityRequest`
+ """
+ model = CreateUserIdentityRequest()
+ if include_optional:
+ return CreateUserIdentityRequest(
+ value = 'sally@example.com',
+ type = 'email',
+ phone_country_id = 'au',
+ connection_id = 'conn_019289347f1193da6c0e4d49b97b4bd2'
+ )
+ else:
+ return CreateUserIdentityRequest(
+ )
+ """
+
+ def testCreateUserIdentityRequest(self):
+ """Test CreateUserIdentityRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_user_request.py b/test/test_create_user_request.py
new file mode 100644
index 00000000..fe38a3d4
--- /dev/null
+++ b/test/test_create_user_request.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_user_request import CreateUserRequest
+
+class TestCreateUserRequest(unittest.TestCase):
+ """CreateUserRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateUserRequest:
+ """Test CreateUserRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateUserRequest`
+ """
+ model = CreateUserRequest()
+ if include_optional:
+ return CreateUserRequest(
+ profile = kinde_sdk.models.create_user_request_profile.createUser_request_profile(
+ given_name = '',
+ family_name = '',
+ picture = '', ),
+ organization_code = '',
+ provided_id = '',
+ identities = [{"type":"email","is_verified":true,"details":{"email":"email@email.com"}},{"type":"phone","is_verified":false,"details":{"phone":"+61426148233","phone_country_id":"au"}},{"type":"username","details":{"username":"myusername"}}]
+ )
+ else:
+ return CreateUserRequest(
+ )
+ """
+
+ def testCreateUserRequest(self):
+ """Test CreateUserRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_user_request_identities_inner.py b/test/test_create_user_request_identities_inner.py
new file mode 100644
index 00000000..1335251a
--- /dev/null
+++ b/test/test_create_user_request_identities_inner.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_user_request_identities_inner import CreateUserRequestIdentitiesInner
+
+class TestCreateUserRequestIdentitiesInner(unittest.TestCase):
+ """CreateUserRequestIdentitiesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateUserRequestIdentitiesInner:
+ """Test CreateUserRequestIdentitiesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateUserRequestIdentitiesInner`
+ """
+ model = CreateUserRequestIdentitiesInner()
+ if include_optional:
+ return CreateUserRequestIdentitiesInner(
+ type = 'email',
+ is_verified = True,
+ details = kinde_sdk.models.create_user_request_identities_inner_details.createUser_request_identities_inner_details(
+ email = 'email@email.com',
+ phone = '+61426148233',
+ phone_country_id = 'au',
+ username = 'myusername', )
+ )
+ else:
+ return CreateUserRequestIdentitiesInner(
+ )
+ """
+
+ def testCreateUserRequestIdentitiesInner(self):
+ """Test CreateUserRequestIdentitiesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_user_request_identities_inner_details.py b/test/test_create_user_request_identities_inner_details.py
new file mode 100644
index 00000000..24c4d2d0
--- /dev/null
+++ b/test/test_create_user_request_identities_inner_details.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_user_request_identities_inner_details import CreateUserRequestIdentitiesInnerDetails
+
+class TestCreateUserRequestIdentitiesInnerDetails(unittest.TestCase):
+ """CreateUserRequestIdentitiesInnerDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateUserRequestIdentitiesInnerDetails:
+ """Test CreateUserRequestIdentitiesInnerDetails
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateUserRequestIdentitiesInnerDetails`
+ """
+ model = CreateUserRequestIdentitiesInnerDetails()
+ if include_optional:
+ return CreateUserRequestIdentitiesInnerDetails(
+ email = 'email@email.com',
+ phone = '+61426148233',
+ phone_country_id = 'au',
+ username = 'myusername'
+ )
+ else:
+ return CreateUserRequestIdentitiesInnerDetails(
+ )
+ """
+
+ def testCreateUserRequestIdentitiesInnerDetails(self):
+ """Test CreateUserRequestIdentitiesInnerDetails"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_user_request_profile.py b/test/test_create_user_request_profile.py
new file mode 100644
index 00000000..a425e0aa
--- /dev/null
+++ b/test/test_create_user_request_profile.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_user_request_profile import CreateUserRequestProfile
+
+class TestCreateUserRequestProfile(unittest.TestCase):
+ """CreateUserRequestProfile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateUserRequestProfile:
+ """Test CreateUserRequestProfile
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateUserRequestProfile`
+ """
+ model = CreateUserRequestProfile()
+ if include_optional:
+ return CreateUserRequestProfile(
+ given_name = '',
+ family_name = '',
+ picture = ''
+ )
+ else:
+ return CreateUserRequestProfile(
+ )
+ """
+
+ def testCreateUserRequestProfile(self):
+ """Test CreateUserRequestProfile"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_user_response.py b/test/test_create_user_response.py
new file mode 100644
index 00000000..ee64038b
--- /dev/null
+++ b/test/test_create_user_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_user_response import CreateUserResponse
+
+class TestCreateUserResponse(unittest.TestCase):
+ """CreateUserResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateUserResponse:
+ """Test CreateUserResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateUserResponse`
+ """
+ model = CreateUserResponse()
+ if include_optional:
+ return CreateUserResponse(
+ id = '',
+ created = True,
+ identities = [
+ kinde_sdk.models.user_identity.user_identity(
+ type = '',
+ result = kinde_sdk.models.user_identity_result.user_identity_result(
+ created = True, ), )
+ ]
+ )
+ else:
+ return CreateUserResponse(
+ )
+ """
+
+ def testCreateUserResponse(self):
+ """Test CreateUserResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_web_hook_request.py b/test/test_create_web_hook_request.py
new file mode 100644
index 00000000..286a6abc
--- /dev/null
+++ b/test/test_create_web_hook_request.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_web_hook_request import CreateWebHookRequest
+
+class TestCreateWebHookRequest(unittest.TestCase):
+ """CreateWebHookRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateWebHookRequest:
+ """Test CreateWebHookRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateWebHookRequest`
+ """
+ model = CreateWebHookRequest()
+ if include_optional:
+ return CreateWebHookRequest(
+ endpoint = '',
+ event_types = [
+ ''
+ ],
+ name = '',
+ description = ''
+ )
+ else:
+ return CreateWebHookRequest(
+ endpoint = '',
+ event_types = [
+ ''
+ ],
+ name = '',
+ )
+ """
+
+ def testCreateWebHookRequest(self):
+ """Test CreateWebHookRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_webhook_response.py b/test/test_create_webhook_response.py
new file mode 100644
index 00000000..42f56040
--- /dev/null
+++ b/test/test_create_webhook_response.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_webhook_response import CreateWebhookResponse
+
+class TestCreateWebhookResponse(unittest.TestCase):
+ """CreateWebhookResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateWebhookResponse:
+ """Test CreateWebhookResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateWebhookResponse`
+ """
+ model = CreateWebhookResponse()
+ if include_optional:
+ return CreateWebhookResponse(
+ code = '',
+ message = '',
+ webhook = kinde_sdk.models.create_webhook_response_webhook.create_webhook_response_webhook(
+ id = '',
+ endpoint = '', )
+ )
+ else:
+ return CreateWebhookResponse(
+ )
+ """
+
+ def testCreateWebhookResponse(self):
+ """Test CreateWebhookResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_webhook_response_webhook.py b/test/test_create_webhook_response_webhook.py
new file mode 100644
index 00000000..55d92b86
--- /dev/null
+++ b/test/test_create_webhook_response_webhook.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.create_webhook_response_webhook import CreateWebhookResponseWebhook
+
+class TestCreateWebhookResponseWebhook(unittest.TestCase):
+ """CreateWebhookResponseWebhook unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateWebhookResponseWebhook:
+ """Test CreateWebhookResponseWebhook
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateWebhookResponseWebhook`
+ """
+ model = CreateWebhookResponseWebhook()
+ if include_optional:
+ return CreateWebhookResponseWebhook(
+ id = '',
+ endpoint = ''
+ )
+ else:
+ return CreateWebhookResponseWebhook(
+ )
+ """
+
+ def testCreateWebhookResponseWebhook(self):
+ """Test CreateWebhookResponseWebhook"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_delete_api_response.py b/test/test_delete_api_response.py
new file mode 100644
index 00000000..378d29c0
--- /dev/null
+++ b/test/test_delete_api_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.delete_api_response import DeleteApiResponse
+
+class TestDeleteApiResponse(unittest.TestCase):
+ """DeleteApiResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DeleteApiResponse:
+ """Test DeleteApiResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DeleteApiResponse`
+ """
+ model = DeleteApiResponse()
+ if include_optional:
+ return DeleteApiResponse(
+ message = 'API successfully deleted',
+ code = 'API_DELETED'
+ )
+ else:
+ return DeleteApiResponse(
+ )
+ """
+
+ def testDeleteApiResponse(self):
+ """Test DeleteApiResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_delete_environment_variable_response.py b/test/test_delete_environment_variable_response.py
new file mode 100644
index 00000000..03b8cc2b
--- /dev/null
+++ b/test/test_delete_environment_variable_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.delete_environment_variable_response import DeleteEnvironmentVariableResponse
+
+class TestDeleteEnvironmentVariableResponse(unittest.TestCase):
+ """DeleteEnvironmentVariableResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DeleteEnvironmentVariableResponse:
+ """Test DeleteEnvironmentVariableResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DeleteEnvironmentVariableResponse`
+ """
+ model = DeleteEnvironmentVariableResponse()
+ if include_optional:
+ return DeleteEnvironmentVariableResponse(
+ message = 'Environment variable deleted',
+ code = 'ENVIRONMENT_VARIABLE_DELETED'
+ )
+ else:
+ return DeleteEnvironmentVariableResponse(
+ )
+ """
+
+ def testDeleteEnvironmentVariableResponse(self):
+ """Test DeleteEnvironmentVariableResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_delete_role_scope_response.py b/test/test_delete_role_scope_response.py
new file mode 100644
index 00000000..86b77b27
--- /dev/null
+++ b/test/test_delete_role_scope_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.delete_role_scope_response import DeleteRoleScopeResponse
+
+class TestDeleteRoleScopeResponse(unittest.TestCase):
+ """DeleteRoleScopeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DeleteRoleScopeResponse:
+ """Test DeleteRoleScopeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DeleteRoleScopeResponse`
+ """
+ model = DeleteRoleScopeResponse()
+ if include_optional:
+ return DeleteRoleScopeResponse(
+ code = 'SCOPE_DELETED',
+ message = 'Scope deleted from role'
+ )
+ else:
+ return DeleteRoleScopeResponse(
+ )
+ """
+
+ def testDeleteRoleScopeResponse(self):
+ """Test DeleteRoleScopeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_delete_webhook_response.py b/test/test_delete_webhook_response.py
new file mode 100644
index 00000000..c2dd24ec
--- /dev/null
+++ b/test/test_delete_webhook_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.delete_webhook_response import DeleteWebhookResponse
+
+class TestDeleteWebhookResponse(unittest.TestCase):
+ """DeleteWebhookResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DeleteWebhookResponse:
+ """Test DeleteWebhookResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DeleteWebhookResponse`
+ """
+ model = DeleteWebhookResponse()
+ if include_optional:
+ return DeleteWebhookResponse(
+ code = '',
+ message = ''
+ )
+ else:
+ return DeleteWebhookResponse(
+ )
+ """
+
+ def testDeleteWebhookResponse(self):
+ """Test DeleteWebhookResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_environment_variable.py b/test/test_environment_variable.py
new file mode 100644
index 00000000..8be6264d
--- /dev/null
+++ b/test/test_environment_variable.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.environment_variable import EnvironmentVariable
+
+class TestEnvironmentVariable(unittest.TestCase):
+ """EnvironmentVariable unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EnvironmentVariable:
+ """Test EnvironmentVariable
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EnvironmentVariable`
+ """
+ model = EnvironmentVariable()
+ if include_optional:
+ return EnvironmentVariable(
+ id = 'env_var_0192b1941f125645fa15bf28a662a0b3',
+ key = 'MY_API_KEY',
+ value = 'some-secret',
+ is_secret = False,
+ created_on = '2021-01-01T00:00:00Z'
+ )
+ else:
+ return EnvironmentVariable(
+ )
+ """
+
+ def testEnvironmentVariable(self):
+ """Test EnvironmentVariable"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_environment_variables_api.py b/test/test_environment_variables_api.py
new file mode 100644
index 00000000..36232014
--- /dev/null
+++ b/test/test_environment_variables_api.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.environment_variables_api import EnvironmentVariablesApi
+
+
+class TestEnvironmentVariablesApi(unittest.TestCase):
+ """EnvironmentVariablesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = EnvironmentVariablesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_environment_variable(self) -> None:
+ """Test case for create_environment_variable
+
+ Create environment variable
+ """
+ pass
+
+ def test_delete_environment_variable(self) -> None:
+ """Test case for delete_environment_variable
+
+ Delete environment variable
+ """
+ pass
+
+ def test_get_environment_variable(self) -> None:
+ """Test case for get_environment_variable
+
+ Get environment variable
+ """
+ pass
+
+ def test_get_environment_variables(self) -> None:
+ """Test case for get_environment_variables
+
+ Get environment variables
+ """
+ pass
+
+ def test_update_environment_variable(self) -> None:
+ """Test case for update_environment_variable
+
+ Update environment variable
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_environments_api.py b/test/test_environments_api.py
new file mode 100644
index 00000000..4a305693
--- /dev/null
+++ b/test/test_environments_api.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.environments_api import EnvironmentsApi
+
+
+class TestEnvironmentsApi(unittest.TestCase):
+ """EnvironmentsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = EnvironmentsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_add_logo(self) -> None:
+ """Test case for add_logo
+
+ Add logo
+ """
+ pass
+
+ def test_delete_environement_feature_flag_override(self) -> None:
+ """Test case for delete_environement_feature_flag_override
+
+ Delete Environment Feature Flag Override
+ """
+ pass
+
+ def test_delete_environement_feature_flag_overrides(self) -> None:
+ """Test case for delete_environement_feature_flag_overrides
+
+ Delete Environment Feature Flag Overrides
+ """
+ pass
+
+ def test_delete_logo(self) -> None:
+ """Test case for delete_logo
+
+ Delete logo
+ """
+ pass
+
+ def test_get_environement_feature_flags(self) -> None:
+ """Test case for get_environement_feature_flags
+
+ List Environment Feature Flags
+ """
+ pass
+
+ def test_get_environment(self) -> None:
+ """Test case for get_environment
+
+ Get environment
+ """
+ pass
+
+ def test_read_logo(self) -> None:
+ """Test case for read_logo
+
+ Read logo details
+ """
+ pass
+
+ def test_update_environement_feature_flag_override(self) -> None:
+ """Test case for update_environement_feature_flag_override
+
+ Update Environment Feature Flag Override
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_error.py b/test/test_error.py
new file mode 100644
index 00000000..62d3577f
--- /dev/null
+++ b/test/test_error.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.error import Error
+
+class TestError(unittest.TestCase):
+ """Error unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Error:
+ """Test Error
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Error`
+ """
+ model = Error()
+ if include_optional:
+ return Error(
+ code = '',
+ message = ''
+ )
+ else:
+ return Error(
+ )
+ """
+
+ def testError(self):
+ """Test Error"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_error_response.py b/test/test_error_response.py
new file mode 100644
index 00000000..d742d56a
--- /dev/null
+++ b/test/test_error_response.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.error_response import ErrorResponse
+
+class TestErrorResponse(unittest.TestCase):
+ """ErrorResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ErrorResponse:
+ """Test ErrorResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ErrorResponse`
+ """
+ model = ErrorResponse()
+ if include_optional:
+ return ErrorResponse(
+ errors = [
+ kinde_sdk.models.error.error(
+ code = '',
+ message = '', )
+ ]
+ )
+ else:
+ return ErrorResponse(
+ )
+ """
+
+ def testErrorResponse(self):
+ """Test ErrorResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_event_type.py b/test/test_event_type.py
new file mode 100644
index 00000000..f9f043bb
--- /dev/null
+++ b/test/test_event_type.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.event_type import EventType
+
+class TestEventType(unittest.TestCase):
+ """EventType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventType:
+ """Test EventType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventType`
+ """
+ model = EventType()
+ if include_optional:
+ return EventType(
+ id = '',
+ code = '',
+ name = '',
+ origin = '',
+ var_schema = kinde_sdk.models.schema.schema()
+ )
+ else:
+ return EventType(
+ )
+ """
+
+ def testEventType(self):
+ """Test EventType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_feature_flags0_api.py b/test/test_feature_flags0_api.py
new file mode 100644
index 00000000..ae1bd959
--- /dev/null
+++ b/test/test_feature_flags0_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.feature_flags_api import FeatureFlagsApi
+
+
+class TestFeatureFlagsApi(unittest.TestCase):
+ """FeatureFlagsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = FeatureFlagsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_feature_flags(self) -> None:
+ """Test case for get_feature_flags
+
+ Get feature flags
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_feature_flags_api.py b/test/test_feature_flags_api.py
new file mode 100644
index 00000000..744504f7
--- /dev/null
+++ b/test/test_feature_flags_api.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.feature_flags_api import FeatureFlagsApi
+
+
+class TestFeatureFlagsApi(unittest.TestCase):
+ """FeatureFlagsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = FeatureFlagsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_feature_flag(self) -> None:
+ """Test case for create_feature_flag
+
+ Create Feature Flag
+ """
+ pass
+
+ def test_delete_feature_flag(self) -> None:
+ """Test case for delete_feature_flag
+
+ Delete Feature Flag
+ """
+ pass
+
+ def test_update_feature_flag(self) -> None:
+ """Test case for update_feature_flag
+
+ Replace Feature Flag
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_response.py b/test/test_get_api_response.py
new file mode 100644
index 00000000..81949ee2
--- /dev/null
+++ b/test/test_get_api_response.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_response import GetApiResponse
+
+class TestGetApiResponse(unittest.TestCase):
+ """GetApiResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiResponse:
+ """Test GetApiResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiResponse`
+ """
+ model = GetApiResponse()
+ if include_optional:
+ return GetApiResponse(
+ code = 'OK',
+ message = 'success_response',
+ api = kinde_sdk.models.get_api_response_api.get_api_response_api(
+ id = '7ccd126599aa422a771abcb341596881',
+ name = 'Example API',
+ audience = 'https://api.example.com',
+ is_management_api = False,
+ scopes = [
+ kinde_sdk.models.get_api_response_api_scopes_inner.get_api_response_api_scopes_inner(
+ id = 'api_scope_01939222ef24200668b9f5829af001ce',
+ key = 'read:logs', )
+ ],
+ applications = [
+ kinde_sdk.models.get_api_response_api_applications_inner.get_api_response_api_applications_inner(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ name = 'My M2M app',
+ type = 'Machine to machine (M2M)',
+ is_active = True, )
+ ], )
+ )
+ else:
+ return GetApiResponse(
+ )
+ """
+
+ def testGetApiResponse(self):
+ """Test GetApiResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_response_api.py b/test/test_get_api_response_api.py
new file mode 100644
index 00000000..9291c65d
--- /dev/null
+++ b/test/test_get_api_response_api.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_response_api import GetApiResponseApi
+
+class TestGetApiResponseApi(unittest.TestCase):
+ """GetApiResponseApi unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiResponseApi:
+ """Test GetApiResponseApi
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiResponseApi`
+ """
+ model = GetApiResponseApi()
+ if include_optional:
+ return GetApiResponseApi(
+ id = '7ccd126599aa422a771abcb341596881',
+ name = 'Example API',
+ audience = 'https://api.example.com',
+ is_management_api = False,
+ scopes = [
+ kinde_sdk.models.get_api_response_api_scopes_inner.get_api_response_api_scopes_inner(
+ id = 'api_scope_01939222ef24200668b9f5829af001ce',
+ key = 'read:logs', )
+ ],
+ applications = [
+ kinde_sdk.models.get_api_response_api_applications_inner.get_api_response_api_applications_inner(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ name = 'My M2M app',
+ type = 'Machine to machine (M2M)',
+ is_active = True, )
+ ]
+ )
+ else:
+ return GetApiResponseApi(
+ )
+ """
+
+ def testGetApiResponseApi(self):
+ """Test GetApiResponseApi"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_response_api_applications_inner.py b/test/test_get_api_response_api_applications_inner.py
new file mode 100644
index 00000000..0ad152cc
--- /dev/null
+++ b/test/test_get_api_response_api_applications_inner.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_response_api_applications_inner import GetApiResponseApiApplicationsInner
+
+class TestGetApiResponseApiApplicationsInner(unittest.TestCase):
+ """GetApiResponseApiApplicationsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiResponseApiApplicationsInner:
+ """Test GetApiResponseApiApplicationsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiResponseApiApplicationsInner`
+ """
+ model = GetApiResponseApiApplicationsInner()
+ if include_optional:
+ return GetApiResponseApiApplicationsInner(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ name = 'My M2M app',
+ type = 'Machine to machine (M2M)',
+ is_active = True
+ )
+ else:
+ return GetApiResponseApiApplicationsInner(
+ )
+ """
+
+ def testGetApiResponseApiApplicationsInner(self):
+ """Test GetApiResponseApiApplicationsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_response_api_scopes_inner.py b/test/test_get_api_response_api_scopes_inner.py
new file mode 100644
index 00000000..5865e4e9
--- /dev/null
+++ b/test/test_get_api_response_api_scopes_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_response_api_scopes_inner import GetApiResponseApiScopesInner
+
+class TestGetApiResponseApiScopesInner(unittest.TestCase):
+ """GetApiResponseApiScopesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiResponseApiScopesInner:
+ """Test GetApiResponseApiScopesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiResponseApiScopesInner`
+ """
+ model = GetApiResponseApiScopesInner()
+ if include_optional:
+ return GetApiResponseApiScopesInner(
+ id = 'api_scope_01939222ef24200668b9f5829af001ce',
+ key = 'read:logs'
+ )
+ else:
+ return GetApiResponseApiScopesInner(
+ )
+ """
+
+ def testGetApiResponseApiScopesInner(self):
+ """Test GetApiResponseApiScopesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_scope_response.py b/test/test_get_api_scope_response.py
new file mode 100644
index 00000000..d9b67833
--- /dev/null
+++ b/test/test_get_api_scope_response.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_scope_response import GetApiScopeResponse
+
+class TestGetApiScopeResponse(unittest.TestCase):
+ """GetApiScopeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiScopeResponse:
+ """Test GetApiScopeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiScopeResponse`
+ """
+ model = GetApiScopeResponse()
+ if include_optional:
+ return GetApiScopeResponse(
+ code = 'OK',
+ message = 'success_response',
+ scope = kinde_sdk.models.get_api_scopes_response_scopes_inner.get_api_scopes_response_scopes_inner(
+ id = 'api_scope_01939128c3d7193ae87c4755213c07c6',
+ key = 'read:logs',
+ description = 'Read logs scope', )
+ )
+ else:
+ return GetApiScopeResponse(
+ )
+ """
+
+ def testGetApiScopeResponse(self):
+ """Test GetApiScopeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_scopes_response.py b/test/test_get_api_scopes_response.py
new file mode 100644
index 00000000..6c0888b0
--- /dev/null
+++ b/test/test_get_api_scopes_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_scopes_response import GetApiScopesResponse
+
+class TestGetApiScopesResponse(unittest.TestCase):
+ """GetApiScopesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiScopesResponse:
+ """Test GetApiScopesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiScopesResponse`
+ """
+ model = GetApiScopesResponse()
+ if include_optional:
+ return GetApiScopesResponse(
+ code = 'OK',
+ message = 'success_response',
+ scopes = [
+ kinde_sdk.models.get_api_scopes_response_scopes_inner.get_api_scopes_response_scopes_inner(
+ id = 'api_scope_01939128c3d7193ae87c4755213c07c6',
+ key = 'read:logs',
+ description = 'Read logs scope', )
+ ]
+ )
+ else:
+ return GetApiScopesResponse(
+ )
+ """
+
+ def testGetApiScopesResponse(self):
+ """Test GetApiScopesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_api_scopes_response_scopes_inner.py b/test/test_get_api_scopes_response_scopes_inner.py
new file mode 100644
index 00000000..cf014b94
--- /dev/null
+++ b/test/test_get_api_scopes_response_scopes_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_api_scopes_response_scopes_inner import GetApiScopesResponseScopesInner
+
+class TestGetApiScopesResponseScopesInner(unittest.TestCase):
+ """GetApiScopesResponseScopesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApiScopesResponseScopesInner:
+ """Test GetApiScopesResponseScopesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApiScopesResponseScopesInner`
+ """
+ model = GetApiScopesResponseScopesInner()
+ if include_optional:
+ return GetApiScopesResponseScopesInner(
+ id = 'api_scope_01939128c3d7193ae87c4755213c07c6',
+ key = 'read:logs',
+ description = 'Read logs scope'
+ )
+ else:
+ return GetApiScopesResponseScopesInner(
+ )
+ """
+
+ def testGetApiScopesResponseScopesInner(self):
+ """Test GetApiScopesResponseScopesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_apis_response.py b/test/test_get_apis_response.py
new file mode 100644
index 00000000..74fe0029
--- /dev/null
+++ b/test/test_get_apis_response.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_apis_response import GetApisResponse
+
+class TestGetApisResponse(unittest.TestCase):
+ """GetApisResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApisResponse:
+ """Test GetApisResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApisResponse`
+ """
+ model = GetApisResponse()
+ if include_optional:
+ return GetApisResponse(
+ code = 'OK',
+ message = 'Success',
+ next_token = 'Njo5Om1hvWVfYXNj',
+ apis = [
+ kinde_sdk.models.get_apis_response_apis_inner.get_apis_response_apis_inner(
+ id = '7ccd126599aa422a771abcb341596881',
+ name = 'Example API',
+ audience = 'https://api.example.com',
+ is_management_api = False,
+ scopes = [
+ kinde_sdk.models.get_apis_response_apis_inner_scopes_inner.get_apis_response_apis_inner_scopes_inner(
+ id = 'api_scope_01939128c3d7193ae87c4755213c07c6',
+ key = 'create:apis', )
+ ], )
+ ]
+ )
+ else:
+ return GetApisResponse(
+ )
+ """
+
+ def testGetApisResponse(self):
+ """Test GetApisResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_apis_response_apis_inner.py b/test/test_get_apis_response_apis_inner.py
new file mode 100644
index 00000000..39cd05b5
--- /dev/null
+++ b/test/test_get_apis_response_apis_inner.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_apis_response_apis_inner import GetApisResponseApisInner
+
+class TestGetApisResponseApisInner(unittest.TestCase):
+ """GetApisResponseApisInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApisResponseApisInner:
+ """Test GetApisResponseApisInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApisResponseApisInner`
+ """
+ model = GetApisResponseApisInner()
+ if include_optional:
+ return GetApisResponseApisInner(
+ id = '7ccd126599aa422a771abcb341596881',
+ name = 'Example API',
+ audience = 'https://api.example.com',
+ is_management_api = False,
+ scopes = [
+ kinde_sdk.models.get_apis_response_apis_inner_scopes_inner.get_apis_response_apis_inner_scopes_inner(
+ id = 'api_scope_01939128c3d7193ae87c4755213c07c6',
+ key = 'create:apis', )
+ ]
+ )
+ else:
+ return GetApisResponseApisInner(
+ )
+ """
+
+ def testGetApisResponseApisInner(self):
+ """Test GetApisResponseApisInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_apis_response_apis_inner_scopes_inner.py b/test/test_get_apis_response_apis_inner_scopes_inner.py
new file mode 100644
index 00000000..ed8470ad
--- /dev/null
+++ b/test/test_get_apis_response_apis_inner_scopes_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_apis_response_apis_inner_scopes_inner import GetApisResponseApisInnerScopesInner
+
+class TestGetApisResponseApisInnerScopesInner(unittest.TestCase):
+ """GetApisResponseApisInnerScopesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApisResponseApisInnerScopesInner:
+ """Test GetApisResponseApisInnerScopesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApisResponseApisInnerScopesInner`
+ """
+ model = GetApisResponseApisInnerScopesInner()
+ if include_optional:
+ return GetApisResponseApisInnerScopesInner(
+ id = 'api_scope_01939128c3d7193ae87c4755213c07c6',
+ key = 'create:apis'
+ )
+ else:
+ return GetApisResponseApisInnerScopesInner(
+ )
+ """
+
+ def testGetApisResponseApisInnerScopesInner(self):
+ """Test GetApisResponseApisInnerScopesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_application_response.py b/test/test_get_application_response.py
new file mode 100644
index 00000000..5186c0fb
--- /dev/null
+++ b/test/test_get_application_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_application_response import GetApplicationResponse
+
+class TestGetApplicationResponse(unittest.TestCase):
+ """GetApplicationResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApplicationResponse:
+ """Test GetApplicationResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApplicationResponse`
+ """
+ model = GetApplicationResponse()
+ if include_optional:
+ return GetApplicationResponse(
+ code = '',
+ message = '',
+ application = kinde_sdk.models.get_application_response_application.get_application_response_application(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ name = 'My React app',
+ type = 'm2m',
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ client_secret = 'sUJSHI3ZQEVTJkx6hOxdOSHaLsZkCBRFLzTNOI791rX8mDjgt7LC',
+ login_uri = 'https://yourapp.com/api/auth/login',
+ homepage_uri = 'https://yourapp.com',
+ has_cancel_button = False, )
+ )
+ else:
+ return GetApplicationResponse(
+ )
+ """
+
+ def testGetApplicationResponse(self):
+ """Test GetApplicationResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_application_response_application.py b/test/test_get_application_response_application.py
new file mode 100644
index 00000000..e3740890
--- /dev/null
+++ b/test/test_get_application_response_application.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_application_response_application import GetApplicationResponseApplication
+
+class TestGetApplicationResponseApplication(unittest.TestCase):
+ """GetApplicationResponseApplication unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApplicationResponseApplication:
+ """Test GetApplicationResponseApplication
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApplicationResponseApplication`
+ """
+ model = GetApplicationResponseApplication()
+ if include_optional:
+ return GetApplicationResponseApplication(
+ id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ name = 'My React app',
+ type = 'm2m',
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ client_secret = 'sUJSHI3ZQEVTJkx6hOxdOSHaLsZkCBRFLzTNOI791rX8mDjgt7LC',
+ login_uri = 'https://yourapp.com/api/auth/login',
+ homepage_uri = 'https://yourapp.com',
+ has_cancel_button = False
+ )
+ else:
+ return GetApplicationResponseApplication(
+ )
+ """
+
+ def testGetApplicationResponseApplication(self):
+ """Test GetApplicationResponseApplication"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_applications_response.py b/test/test_get_applications_response.py
new file mode 100644
index 00000000..228dd227
--- /dev/null
+++ b/test/test_get_applications_response.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_applications_response import GetApplicationsResponse
+
+class TestGetApplicationsResponse(unittest.TestCase):
+ """GetApplicationsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetApplicationsResponse:
+ """Test GetApplicationsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetApplicationsResponse`
+ """
+ model = GetApplicationsResponse()
+ if include_optional:
+ return GetApplicationsResponse(
+ code = '',
+ message = '',
+ applications = [
+ kinde_sdk.models.applications.applications(
+ id = '',
+ name = '',
+ type = '', )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetApplicationsResponse(
+ )
+ """
+
+ def testGetApplicationsResponse(self):
+ """Test GetApplicationsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_billing_agreements_response.py b/test/test_get_billing_agreements_response.py
new file mode 100644
index 00000000..a52ce525
--- /dev/null
+++ b/test/test_get_billing_agreements_response.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_billing_agreements_response import GetBillingAgreementsResponse
+
+class TestGetBillingAgreementsResponse(unittest.TestCase):
+ """GetBillingAgreementsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBillingAgreementsResponse:
+ """Test GetBillingAgreementsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBillingAgreementsResponse`
+ """
+ model = GetBillingAgreementsResponse()
+ if include_optional:
+ return GetBillingAgreementsResponse(
+ code = 'OK',
+ message = 'Success',
+ has_more = True,
+ agreements = [
+ kinde_sdk.models.get_billing_agreements_response_agreements_inner.get_billing_agreements_response_agreements_inner(
+ id = 'agreement_0195ac80a14c2ca2cec97d026d864de0',
+ plan_code = '',
+ expires_on = '2024-11-18T13:32:03+11:00',
+ billing_group_id = 'sbg_0195abf6773fdae18d5da72281a3fde2',
+ entitlements = [
+ kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner.get_billing_agreements_response_agreements_inner_entitlements_inner(
+ feature_code = 'CcdkvEXpbg6UY',
+ entitlement_id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad', )
+ ], )
+ ]
+ )
+ else:
+ return GetBillingAgreementsResponse(
+ )
+ """
+
+ def testGetBillingAgreementsResponse(self):
+ """Test GetBillingAgreementsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_billing_agreements_response_agreements_inner.py b/test/test_get_billing_agreements_response_agreements_inner.py
new file mode 100644
index 00000000..8e8fd5b1
--- /dev/null
+++ b/test/test_get_billing_agreements_response_agreements_inner.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner import GetBillingAgreementsResponseAgreementsInner
+
+class TestGetBillingAgreementsResponseAgreementsInner(unittest.TestCase):
+ """GetBillingAgreementsResponseAgreementsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBillingAgreementsResponseAgreementsInner:
+ """Test GetBillingAgreementsResponseAgreementsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBillingAgreementsResponseAgreementsInner`
+ """
+ model = GetBillingAgreementsResponseAgreementsInner()
+ if include_optional:
+ return GetBillingAgreementsResponseAgreementsInner(
+ id = 'agreement_0195ac80a14c2ca2cec97d026d864de0',
+ plan_code = '',
+ expires_on = '2024-11-18T13:32:03+11:00',
+ billing_group_id = 'sbg_0195abf6773fdae18d5da72281a3fde2',
+ entitlements = [
+ kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner.get_billing_agreements_response_agreements_inner_entitlements_inner(
+ feature_code = 'CcdkvEXpbg6UY',
+ entitlement_id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad', )
+ ]
+ )
+ else:
+ return GetBillingAgreementsResponseAgreementsInner(
+ )
+ """
+
+ def testGetBillingAgreementsResponseAgreementsInner(self):
+ """Test GetBillingAgreementsResponseAgreementsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_billing_agreements_response_agreements_inner_entitlements_inner.py b/test/test_get_billing_agreements_response_agreements_inner_entitlements_inner.py
new file mode 100644
index 00000000..71baf8b1
--- /dev/null
+++ b/test/test_get_billing_agreements_response_agreements_inner_entitlements_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_billing_agreements_response_agreements_inner_entitlements_inner import GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+
+class TestGetBillingAgreementsResponseAgreementsInnerEntitlementsInner(unittest.TestCase):
+ """GetBillingAgreementsResponseAgreementsInnerEntitlementsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBillingAgreementsResponseAgreementsInnerEntitlementsInner:
+ """Test GetBillingAgreementsResponseAgreementsInnerEntitlementsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBillingAgreementsResponseAgreementsInnerEntitlementsInner`
+ """
+ model = GetBillingAgreementsResponseAgreementsInnerEntitlementsInner()
+ if include_optional:
+ return GetBillingAgreementsResponseAgreementsInnerEntitlementsInner(
+ feature_code = 'CcdkvEXpbg6UY',
+ entitlement_id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad'
+ )
+ else:
+ return GetBillingAgreementsResponseAgreementsInnerEntitlementsInner(
+ )
+ """
+
+ def testGetBillingAgreementsResponseAgreementsInnerEntitlementsInner(self):
+ """Test GetBillingAgreementsResponseAgreementsInnerEntitlementsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_billing_entitlements_response.py b/test/test_get_billing_entitlements_response.py
new file mode 100644
index 00000000..d815602c
--- /dev/null
+++ b/test/test_get_billing_entitlements_response.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_billing_entitlements_response import GetBillingEntitlementsResponse
+
+class TestGetBillingEntitlementsResponse(unittest.TestCase):
+ """GetBillingEntitlementsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBillingEntitlementsResponse:
+ """Test GetBillingEntitlementsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBillingEntitlementsResponse`
+ """
+ model = GetBillingEntitlementsResponse()
+ if include_optional:
+ return GetBillingEntitlementsResponse(
+ code = 'OK',
+ message = 'Success',
+ has_more = True,
+ entitlements = [
+ kinde_sdk.models.get_billing_entitlements_response_entitlements_inner.get_billing_entitlements_response_entitlements_inner(
+ id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad',
+ fixed_charge = 35,
+ price_name = 'Pro gym',
+ unit_amount = 56,
+ feature_code = 'CcdkvEXpbg6UY',
+ feature_name = 'Pro Gym',
+ entitlement_limit_max = 56,
+ entitlement_limit_min = 56, )
+ ],
+ plans = [
+ kinde_sdk.models.get_billing_entitlements_response_plans_inner.get_billing_entitlements_response_plans_inner(
+ code = '',
+ subscribed_on = '2024-11-18T13:32:03+11:00', )
+ ]
+ )
+ else:
+ return GetBillingEntitlementsResponse(
+ )
+ """
+
+ def testGetBillingEntitlementsResponse(self):
+ """Test GetBillingEntitlementsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_billing_entitlements_response_entitlements_inner.py b/test/test_get_billing_entitlements_response_entitlements_inner.py
new file mode 100644
index 00000000..5e05536b
--- /dev/null
+++ b/test/test_get_billing_entitlements_response_entitlements_inner.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_billing_entitlements_response_entitlements_inner import GetBillingEntitlementsResponseEntitlementsInner
+
+class TestGetBillingEntitlementsResponseEntitlementsInner(unittest.TestCase):
+ """GetBillingEntitlementsResponseEntitlementsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBillingEntitlementsResponseEntitlementsInner:
+ """Test GetBillingEntitlementsResponseEntitlementsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBillingEntitlementsResponseEntitlementsInner`
+ """
+ model = GetBillingEntitlementsResponseEntitlementsInner()
+ if include_optional:
+ return GetBillingEntitlementsResponseEntitlementsInner(
+ id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad',
+ fixed_charge = 35,
+ price_name = 'Pro gym',
+ unit_amount = 56,
+ feature_code = 'CcdkvEXpbg6UY',
+ feature_name = 'Pro Gym',
+ entitlement_limit_max = 56,
+ entitlement_limit_min = 56
+ )
+ else:
+ return GetBillingEntitlementsResponseEntitlementsInner(
+ )
+ """
+
+ def testGetBillingEntitlementsResponseEntitlementsInner(self):
+ """Test GetBillingEntitlementsResponseEntitlementsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_billing_entitlements_response_plans_inner.py b/test/test_get_billing_entitlements_response_plans_inner.py
new file mode 100644
index 00000000..696ab0fa
--- /dev/null
+++ b/test/test_get_billing_entitlements_response_plans_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_billing_entitlements_response_plans_inner import GetBillingEntitlementsResponsePlansInner
+
+class TestGetBillingEntitlementsResponsePlansInner(unittest.TestCase):
+ """GetBillingEntitlementsResponsePlansInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBillingEntitlementsResponsePlansInner:
+ """Test GetBillingEntitlementsResponsePlansInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBillingEntitlementsResponsePlansInner`
+ """
+ model = GetBillingEntitlementsResponsePlansInner()
+ if include_optional:
+ return GetBillingEntitlementsResponsePlansInner(
+ code = '',
+ subscribed_on = '2024-11-18T13:32:03+11:00'
+ )
+ else:
+ return GetBillingEntitlementsResponsePlansInner(
+ )
+ """
+
+ def testGetBillingEntitlementsResponsePlansInner(self):
+ """Test GetBillingEntitlementsResponsePlansInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_business_response.py b/test/test_get_business_response.py
new file mode 100644
index 00000000..2fca6eae
--- /dev/null
+++ b/test/test_get_business_response.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_business_response import GetBusinessResponse
+
+class TestGetBusinessResponse(unittest.TestCase):
+ """GetBusinessResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBusinessResponse:
+ """Test GetBusinessResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBusinessResponse`
+ """
+ model = GetBusinessResponse()
+ if include_optional:
+ return GetBusinessResponse(
+ code = 'OK',
+ message = 'Success',
+ business = kinde_sdk.models.get_business_response_business.get_business_response_business(
+ code = 'bus_c69fb73b091',
+ name = 'Tailsforce Ltd',
+ phone = '555-555-5555',
+ email = 'sally@example.com',
+ industry = 'Healthcare & Medical',
+ timezone = 'Los Angeles (Pacific Standard Time)',
+ privacy_url = 'https://example.com/privacy',
+ terms_url = 'https://example.com/terms',
+ has_clickwrap = False,
+ has_kinde_branding = True,
+ created_on = '2021-01-01T00:00:00Z', )
+ )
+ else:
+ return GetBusinessResponse(
+ )
+ """
+
+ def testGetBusinessResponse(self):
+ """Test GetBusinessResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_business_response_business.py b/test/test_get_business_response_business.py
new file mode 100644
index 00000000..19716820
--- /dev/null
+++ b/test/test_get_business_response_business.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_business_response_business import GetBusinessResponseBusiness
+
+class TestGetBusinessResponseBusiness(unittest.TestCase):
+ """GetBusinessResponseBusiness unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetBusinessResponseBusiness:
+ """Test GetBusinessResponseBusiness
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetBusinessResponseBusiness`
+ """
+ model = GetBusinessResponseBusiness()
+ if include_optional:
+ return GetBusinessResponseBusiness(
+ code = 'bus_c69fb73b091',
+ name = 'Tailsforce Ltd',
+ phone = '555-555-5555',
+ email = 'sally@example.com',
+ industry = 'Healthcare & Medical',
+ timezone = 'Los Angeles (Pacific Standard Time)',
+ privacy_url = 'https://example.com/privacy',
+ terms_url = 'https://example.com/terms',
+ has_clickwrap = False,
+ has_kinde_branding = True,
+ created_on = '2021-01-01T00:00:00Z'
+ )
+ else:
+ return GetBusinessResponseBusiness(
+ )
+ """
+
+ def testGetBusinessResponseBusiness(self):
+ """Test GetBusinessResponseBusiness"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_categories_response.py b/test/test_get_categories_response.py
new file mode 100644
index 00000000..6c6a2707
--- /dev/null
+++ b/test/test_get_categories_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_categories_response import GetCategoriesResponse
+
+class TestGetCategoriesResponse(unittest.TestCase):
+ """GetCategoriesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetCategoriesResponse:
+ """Test GetCategoriesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetCategoriesResponse`
+ """
+ model = GetCategoriesResponse()
+ if include_optional:
+ return GetCategoriesResponse(
+ code = '',
+ message = '',
+ categories = [
+ kinde_sdk.models.category.category(
+ id = '',
+ name = '', )
+ ],
+ has_more = True
+ )
+ else:
+ return GetCategoriesResponse(
+ )
+ """
+
+ def testGetCategoriesResponse(self):
+ """Test GetCategoriesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_connections_response.py b/test/test_get_connections_response.py
new file mode 100644
index 00000000..25a3db35
--- /dev/null
+++ b/test/test_get_connections_response.py
@@ -0,0 +1,64 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_connections_response import GetConnectionsResponse
+
+class TestGetConnectionsResponse(unittest.TestCase):
+ """GetConnectionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetConnectionsResponse:
+ """Test GetConnectionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetConnectionsResponse`
+ """
+ model = GetConnectionsResponse()
+ if include_optional:
+ return GetConnectionsResponse(
+ code = '',
+ message = '',
+ connections = [
+ kinde_sdk.models.connection.connection(
+ code = '',
+ message = '',
+ connection = kinde_sdk.models.connection_connection.connection_connection(
+ id = '',
+ name = '',
+ display_name = '',
+ strategy = '', ), )
+ ],
+ has_more = True
+ )
+ else:
+ return GetConnectionsResponse(
+ )
+ """
+
+ def testGetConnectionsResponse(self):
+ """Test GetConnectionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_entitlements_response.py b/test/test_get_entitlements_response.py
new file mode 100644
index 00000000..f18f4973
--- /dev/null
+++ b/test/test_get_entitlements_response.py
@@ -0,0 +1,72 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_entitlements_response import GetEntitlementsResponse
+
+class TestGetEntitlementsResponse(unittest.TestCase):
+ """GetEntitlementsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEntitlementsResponse:
+ """Test GetEntitlementsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEntitlementsResponse`
+ """
+ model = GetEntitlementsResponse()
+ if include_optional:
+ return GetEntitlementsResponse(
+ data = kinde_sdk.models.get_entitlements_response_data.get_entitlements_response_data(
+ org_code = 'org_0195ac80a14e',
+ plans = [
+ kinde_sdk.models.get_entitlements_response_data_plans_inner.get_entitlements_response_data_plans_inner(
+ key = 'pro_plan',
+ subscribed_on = '2025-06-01T12:00Z', )
+ ],
+ entitlements = [
+ kinde_sdk.models.get_entitlements_response_data_entitlements_inner.get_entitlements_response_data_entitlements_inner(
+ id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad',
+ fixed_charge = 35,
+ price_name = 'Pro gym',
+ unit_amount = 56,
+ feature_code = 'base_price',
+ feature_name = 'Pro Gym',
+ entitlement_limit_max = 56,
+ entitlement_limit_min = 56, )
+ ], ),
+ metadata = kinde_sdk.models.get_entitlements_response_metadata.get_entitlements_response_metadata(
+ has_more = False,
+ next_page_starting_after = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad', )
+ )
+ else:
+ return GetEntitlementsResponse(
+ )
+ """
+
+ def testGetEntitlementsResponse(self):
+ """Test GetEntitlementsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_entitlements_response_data.py b/test/test_get_entitlements_response_data.py
new file mode 100644
index 00000000..68c14df1
--- /dev/null
+++ b/test/test_get_entitlements_response_data.py
@@ -0,0 +1,68 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_entitlements_response_data import GetEntitlementsResponseData
+
+class TestGetEntitlementsResponseData(unittest.TestCase):
+ """GetEntitlementsResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEntitlementsResponseData:
+ """Test GetEntitlementsResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEntitlementsResponseData`
+ """
+ model = GetEntitlementsResponseData()
+ if include_optional:
+ return GetEntitlementsResponseData(
+ org_code = 'org_0195ac80a14e',
+ plans = [
+ kinde_sdk.models.get_entitlements_response_data_plans_inner.get_entitlements_response_data_plans_inner(
+ key = 'pro_plan',
+ subscribed_on = '2025-06-01T12:00Z', )
+ ],
+ entitlements = [
+ kinde_sdk.models.get_entitlements_response_data_entitlements_inner.get_entitlements_response_data_entitlements_inner(
+ id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad',
+ fixed_charge = 35,
+ price_name = 'Pro gym',
+ unit_amount = 56,
+ feature_code = 'base_price',
+ feature_name = 'Pro Gym',
+ entitlement_limit_max = 56,
+ entitlement_limit_min = 56, )
+ ]
+ )
+ else:
+ return GetEntitlementsResponseData(
+ )
+ """
+
+ def testGetEntitlementsResponseData(self):
+ """Test GetEntitlementsResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_entitlements_response_data_entitlements_inner.py b/test/test_get_entitlements_response_data_entitlements_inner.py
new file mode 100644
index 00000000..1b2c4953
--- /dev/null
+++ b/test/test_get_entitlements_response_data_entitlements_inner.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_entitlements_response_data_entitlements_inner import GetEntitlementsResponseDataEntitlementsInner
+
+class TestGetEntitlementsResponseDataEntitlementsInner(unittest.TestCase):
+ """GetEntitlementsResponseDataEntitlementsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEntitlementsResponseDataEntitlementsInner:
+ """Test GetEntitlementsResponseDataEntitlementsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEntitlementsResponseDataEntitlementsInner`
+ """
+ model = GetEntitlementsResponseDataEntitlementsInner()
+ if include_optional:
+ return GetEntitlementsResponseDataEntitlementsInner(
+ id = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad',
+ fixed_charge = 35,
+ price_name = 'Pro gym',
+ unit_amount = 56,
+ feature_code = 'base_price',
+ feature_name = 'Pro Gym',
+ entitlement_limit_max = 56,
+ entitlement_limit_min = 56
+ )
+ else:
+ return GetEntitlementsResponseDataEntitlementsInner(
+ )
+ """
+
+ def testGetEntitlementsResponseDataEntitlementsInner(self):
+ """Test GetEntitlementsResponseDataEntitlementsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_entitlements_response_data_plans_inner.py b/test/test_get_entitlements_response_data_plans_inner.py
new file mode 100644
index 00000000..577ec448
--- /dev/null
+++ b/test/test_get_entitlements_response_data_plans_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_entitlements_response_data_plans_inner import GetEntitlementsResponseDataPlansInner
+
+class TestGetEntitlementsResponseDataPlansInner(unittest.TestCase):
+ """GetEntitlementsResponseDataPlansInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEntitlementsResponseDataPlansInner:
+ """Test GetEntitlementsResponseDataPlansInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEntitlementsResponseDataPlansInner`
+ """
+ model = GetEntitlementsResponseDataPlansInner()
+ if include_optional:
+ return GetEntitlementsResponseDataPlansInner(
+ key = 'pro_plan',
+ subscribed_on = '2025-06-01T12:00Z'
+ )
+ else:
+ return GetEntitlementsResponseDataPlansInner(
+ )
+ """
+
+ def testGetEntitlementsResponseDataPlansInner(self):
+ """Test GetEntitlementsResponseDataPlansInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_entitlements_response_metadata.py b/test/test_get_entitlements_response_metadata.py
new file mode 100644
index 00000000..3016b182
--- /dev/null
+++ b/test/test_get_entitlements_response_metadata.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_entitlements_response_metadata import GetEntitlementsResponseMetadata
+
+class TestGetEntitlementsResponseMetadata(unittest.TestCase):
+ """GetEntitlementsResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEntitlementsResponseMetadata:
+ """Test GetEntitlementsResponseMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEntitlementsResponseMetadata`
+ """
+ model = GetEntitlementsResponseMetadata()
+ if include_optional:
+ return GetEntitlementsResponseMetadata(
+ has_more = False,
+ next_page_starting_after = 'entitlement_0195ac80a14e8d71f42b98e75d3c61ad'
+ )
+ else:
+ return GetEntitlementsResponseMetadata(
+ )
+ """
+
+ def testGetEntitlementsResponseMetadata(self):
+ """Test GetEntitlementsResponseMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_feature_flags_response.py b/test/test_get_environment_feature_flags_response.py
new file mode 100644
index 00000000..4394cae3
--- /dev/null
+++ b/test/test_get_environment_feature_flags_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_feature_flags_response import GetEnvironmentFeatureFlagsResponse
+
+class TestGetEnvironmentFeatureFlagsResponse(unittest.TestCase):
+ """GetEnvironmentFeatureFlagsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentFeatureFlagsResponse:
+ """Test GetEnvironmentFeatureFlagsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentFeatureFlagsResponse`
+ """
+ model = GetEnvironmentFeatureFlagsResponse()
+ if include_optional:
+ return GetEnvironmentFeatureFlagsResponse(
+ code = '',
+ message = '',
+ feature_flags = {
+ 'key' : kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value.get_organization_feature_flags_response_feature_flags_value(
+ type = 'str',
+ value = '', )
+ },
+ next_token = ''
+ )
+ else:
+ return GetEnvironmentFeatureFlagsResponse(
+ )
+ """
+
+ def testGetEnvironmentFeatureFlagsResponse(self):
+ """Test GetEnvironmentFeatureFlagsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_response.py b/test/test_get_environment_response.py
new file mode 100644
index 00000000..c727e7a5
--- /dev/null
+++ b/test/test_get_environment_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_response import GetEnvironmentResponse
+
+class TestGetEnvironmentResponse(unittest.TestCase):
+ """GetEnvironmentResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentResponse:
+ """Test GetEnvironmentResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentResponse`
+ """
+ model = GetEnvironmentResponse()
+ if include_optional:
+ return GetEnvironmentResponse(
+ code = 'OK',
+ message = 'success_response',
+ environment = kinde_sdk.models.get_environment_response_environment.get_environment_response_environment(
+ code = 'production',
+ name = 'Production',
+ hotjar_site_id = '404009',
+ google_analytics_tag = 'G-1234567',
+ is_default = True,
+ is_live = True,
+ kinde_domain = 'example.kinde.com',
+ custom_domain = 'app.example.com',
+ logo = 'https://yoursubdomain.kinde.com/logo?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ logo_dark = 'https://yoursubdomain.kinde.com/logo_dark?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ favicon_svg = 'https://yoursubdomain.kinde.com/favicon_svg?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ favicon_fallback = 'https://yoursubdomain.kinde.com/favicon_fallback?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ link_color = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ background_color = kinde_sdk.models.get_environment_response_environment_background_color.get_environment_response_environment_background_color(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)', ),
+ button_color = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_text_color = kinde_sdk.models.get_environment_response_environment_background_color.get_environment_response_environment_background_color(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)', ),
+ link_color_dark = ,
+ background_color_dark = ,
+ button_text_color_dark = ,
+ button_color_dark = ,
+ button_border_radius = 8,
+ card_border_radius = 16,
+ input_border_radius = 4,
+ theme_code = 'light',
+ color_scheme = 'light',
+ created_on = '2021-01-01T00:00:00Z', )
+ )
+ else:
+ return GetEnvironmentResponse(
+ )
+ """
+
+ def testGetEnvironmentResponse(self):
+ """Test GetEnvironmentResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_response_environment.py b/test/test_get_environment_response_environment.py
new file mode 100644
index 00000000..5e3678a6
--- /dev/null
+++ b/test/test_get_environment_response_environment.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_response_environment import GetEnvironmentResponseEnvironment
+
+class TestGetEnvironmentResponseEnvironment(unittest.TestCase):
+ """GetEnvironmentResponseEnvironment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentResponseEnvironment:
+ """Test GetEnvironmentResponseEnvironment
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentResponseEnvironment`
+ """
+ model = GetEnvironmentResponseEnvironment()
+ if include_optional:
+ return GetEnvironmentResponseEnvironment(
+ code = 'production',
+ name = 'Production',
+ hotjar_site_id = '404009',
+ google_analytics_tag = 'G-1234567',
+ is_default = True,
+ is_live = True,
+ kinde_domain = 'example.kinde.com',
+ custom_domain = 'app.example.com',
+ logo = 'https://yoursubdomain.kinde.com/logo?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ logo_dark = 'https://yoursubdomain.kinde.com/logo_dark?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ favicon_svg = 'https://yoursubdomain.kinde.com/favicon_svg?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ favicon_fallback = 'https://yoursubdomain.kinde.com/favicon_fallback?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ link_color = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ background_color = kinde_sdk.models.get_environment_response_environment_background_color.get_environment_response_environment_background_color(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)', ),
+ button_color = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_text_color = kinde_sdk.models.get_environment_response_environment_background_color.get_environment_response_environment_background_color(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)', ),
+ link_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ background_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_text_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_border_radius = 8,
+ card_border_radius = 16,
+ input_border_radius = 4,
+ theme_code = 'light',
+ color_scheme = 'light',
+ created_on = '2021-01-01T00:00:00Z'
+ )
+ else:
+ return GetEnvironmentResponseEnvironment(
+ )
+ """
+
+ def testGetEnvironmentResponseEnvironment(self):
+ """Test GetEnvironmentResponseEnvironment"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_response_environment_background_color.py b/test/test_get_environment_response_environment_background_color.py
new file mode 100644
index 00000000..4ad438cf
--- /dev/null
+++ b/test/test_get_environment_response_environment_background_color.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_response_environment_background_color import GetEnvironmentResponseEnvironmentBackgroundColor
+
+class TestGetEnvironmentResponseEnvironmentBackgroundColor(unittest.TestCase):
+ """GetEnvironmentResponseEnvironmentBackgroundColor unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentResponseEnvironmentBackgroundColor:
+ """Test GetEnvironmentResponseEnvironmentBackgroundColor
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentResponseEnvironmentBackgroundColor`
+ """
+ model = GetEnvironmentResponseEnvironmentBackgroundColor()
+ if include_optional:
+ return GetEnvironmentResponseEnvironmentBackgroundColor(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)'
+ )
+ else:
+ return GetEnvironmentResponseEnvironmentBackgroundColor(
+ )
+ """
+
+ def testGetEnvironmentResponseEnvironmentBackgroundColor(self):
+ """Test GetEnvironmentResponseEnvironmentBackgroundColor"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_response_environment_link_color.py b/test/test_get_environment_response_environment_link_color.py
new file mode 100644
index 00000000..71d46ea0
--- /dev/null
+++ b/test/test_get_environment_response_environment_link_color.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_response_environment_link_color import GetEnvironmentResponseEnvironmentLinkColor
+
+class TestGetEnvironmentResponseEnvironmentLinkColor(unittest.TestCase):
+ """GetEnvironmentResponseEnvironmentLinkColor unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentResponseEnvironmentLinkColor:
+ """Test GetEnvironmentResponseEnvironmentLinkColor
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentResponseEnvironmentLinkColor`
+ """
+ model = GetEnvironmentResponseEnvironmentLinkColor()
+ if include_optional:
+ return GetEnvironmentResponseEnvironmentLinkColor(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)'
+ )
+ else:
+ return GetEnvironmentResponseEnvironmentLinkColor(
+ )
+ """
+
+ def testGetEnvironmentResponseEnvironmentLinkColor(self):
+ """Test GetEnvironmentResponseEnvironmentLinkColor"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_variable_response.py b/test/test_get_environment_variable_response.py
new file mode 100644
index 00000000..34fb324e
--- /dev/null
+++ b/test/test_get_environment_variable_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_variable_response import GetEnvironmentVariableResponse
+
+class TestGetEnvironmentVariableResponse(unittest.TestCase):
+ """GetEnvironmentVariableResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentVariableResponse:
+ """Test GetEnvironmentVariableResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentVariableResponse`
+ """
+ model = GetEnvironmentVariableResponse()
+ if include_optional:
+ return GetEnvironmentVariableResponse(
+ code = 'OK',
+ message = 'Success',
+ environment_variable = kinde_sdk.models.environment_variable.environment_variable(
+ id = 'env_var_0192b1941f125645fa15bf28a662a0b3',
+ key = 'MY_API_KEY',
+ value = 'some-secret',
+ is_secret = False,
+ created_on = '2021-01-01T00:00:00Z', )
+ )
+ else:
+ return GetEnvironmentVariableResponse(
+ )
+ """
+
+ def testGetEnvironmentVariableResponse(self):
+ """Test GetEnvironmentVariableResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_environment_variables_response.py b/test/test_get_environment_variables_response.py
new file mode 100644
index 00000000..3efd68c2
--- /dev/null
+++ b/test/test_get_environment_variables_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_environment_variables_response import GetEnvironmentVariablesResponse
+
+class TestGetEnvironmentVariablesResponse(unittest.TestCase):
+ """GetEnvironmentVariablesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEnvironmentVariablesResponse:
+ """Test GetEnvironmentVariablesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEnvironmentVariablesResponse`
+ """
+ model = GetEnvironmentVariablesResponse()
+ if include_optional:
+ return GetEnvironmentVariablesResponse(
+ code = 'OK',
+ message = 'Success',
+ has_more = True,
+ environment_variables = [
+ kinde_sdk.models.environment_variable.environment_variable(
+ id = 'env_var_0192b1941f125645fa15bf28a662a0b3',
+ key = 'MY_API_KEY',
+ value = 'some-secret',
+ is_secret = False,
+ created_on = '2021-01-01T00:00:00Z', )
+ ]
+ )
+ else:
+ return GetEnvironmentVariablesResponse(
+ )
+ """
+
+ def testGetEnvironmentVariablesResponse(self):
+ """Test GetEnvironmentVariablesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_event_response.py b/test/test_get_event_response.py
new file mode 100644
index 00000000..625b7424
--- /dev/null
+++ b/test/test_get_event_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_event_response import GetEventResponse
+
+class TestGetEventResponse(unittest.TestCase):
+ """GetEventResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEventResponse:
+ """Test GetEventResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEventResponse`
+ """
+ model = GetEventResponse()
+ if include_optional:
+ return GetEventResponse(
+ code = '',
+ message = '',
+ event = kinde_sdk.models.get_event_response_event.get_event_response_event(
+ type = '',
+ source = '',
+ event_id = '',
+ timestamp = 56,
+ data = kinde_sdk.models.data.data(), )
+ )
+ else:
+ return GetEventResponse(
+ )
+ """
+
+ def testGetEventResponse(self):
+ """Test GetEventResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_event_response_event.py b/test/test_get_event_response_event.py
new file mode 100644
index 00000000..28cf3ad2
--- /dev/null
+++ b/test/test_get_event_response_event.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_event_response_event import GetEventResponseEvent
+
+class TestGetEventResponseEvent(unittest.TestCase):
+ """GetEventResponseEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEventResponseEvent:
+ """Test GetEventResponseEvent
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEventResponseEvent`
+ """
+ model = GetEventResponseEvent()
+ if include_optional:
+ return GetEventResponseEvent(
+ type = '',
+ source = '',
+ event_id = '',
+ timestamp = 56,
+ data = kinde_sdk.models.data.data()
+ )
+ else:
+ return GetEventResponseEvent(
+ )
+ """
+
+ def testGetEventResponseEvent(self):
+ """Test GetEventResponseEvent"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_event_types_response.py b/test/test_get_event_types_response.py
new file mode 100644
index 00000000..90064469
--- /dev/null
+++ b/test/test_get_event_types_response.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_event_types_response import GetEventTypesResponse
+
+class TestGetEventTypesResponse(unittest.TestCase):
+ """GetEventTypesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetEventTypesResponse:
+ """Test GetEventTypesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetEventTypesResponse`
+ """
+ model = GetEventTypesResponse()
+ if include_optional:
+ return GetEventTypesResponse(
+ code = '',
+ message = '',
+ event_types = [
+ kinde_sdk.models.event_type.event_type(
+ id = '',
+ code = '',
+ name = '',
+ origin = '',
+ schema = kinde_sdk.models.schema.schema(), )
+ ]
+ )
+ else:
+ return GetEventTypesResponse(
+ )
+ """
+
+ def testGetEventTypesResponse(self):
+ """Test GetEventTypesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_feature_flags_response.py b/test/test_get_feature_flags_response.py
new file mode 100644
index 00000000..919f8bcf
--- /dev/null
+++ b/test/test_get_feature_flags_response.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_feature_flags_response import GetFeatureFlagsResponse
+
+class TestGetFeatureFlagsResponse(unittest.TestCase):
+ """GetFeatureFlagsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetFeatureFlagsResponse:
+ """Test GetFeatureFlagsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetFeatureFlagsResponse`
+ """
+ model = GetFeatureFlagsResponse()
+ if include_optional:
+ return GetFeatureFlagsResponse(
+ data = kinde_sdk.models.get_feature_flags_response_data.get_feature_flags_response_data(
+ feature_flags = [
+ kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner.get_feature_flags_response_data_feature_flags_inner(
+ id = 'flag_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'new_feature',
+ key = 'new_feature_key',
+ type = 'boolean',
+ value = true, )
+ ], )
+ )
+ else:
+ return GetFeatureFlagsResponse(
+ )
+ """
+
+ def testGetFeatureFlagsResponse(self):
+ """Test GetFeatureFlagsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_feature_flags_response_data.py b/test/test_get_feature_flags_response_data.py
new file mode 100644
index 00000000..fa30eacf
--- /dev/null
+++ b/test/test_get_feature_flags_response_data.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_feature_flags_response_data import GetFeatureFlagsResponseData
+
+class TestGetFeatureFlagsResponseData(unittest.TestCase):
+ """GetFeatureFlagsResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetFeatureFlagsResponseData:
+ """Test GetFeatureFlagsResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetFeatureFlagsResponseData`
+ """
+ model = GetFeatureFlagsResponseData()
+ if include_optional:
+ return GetFeatureFlagsResponseData(
+ feature_flags = [
+ kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner.get_feature_flags_response_data_feature_flags_inner(
+ id = 'flag_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'new_feature',
+ key = 'new_feature_key',
+ type = 'boolean',
+ value = true, )
+ ]
+ )
+ else:
+ return GetFeatureFlagsResponseData(
+ )
+ """
+
+ def testGetFeatureFlagsResponseData(self):
+ """Test GetFeatureFlagsResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_feature_flags_response_data_feature_flags_inner.py b/test/test_get_feature_flags_response_data_feature_flags_inner.py
new file mode 100644
index 00000000..dac1e7fe
--- /dev/null
+++ b/test/test_get_feature_flags_response_data_feature_flags_inner.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_feature_flags_response_data_feature_flags_inner import GetFeatureFlagsResponseDataFeatureFlagsInner
+
+class TestGetFeatureFlagsResponseDataFeatureFlagsInner(unittest.TestCase):
+ """GetFeatureFlagsResponseDataFeatureFlagsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetFeatureFlagsResponseDataFeatureFlagsInner:
+ """Test GetFeatureFlagsResponseDataFeatureFlagsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetFeatureFlagsResponseDataFeatureFlagsInner`
+ """
+ model = GetFeatureFlagsResponseDataFeatureFlagsInner()
+ if include_optional:
+ return GetFeatureFlagsResponseDataFeatureFlagsInner(
+ id = 'flag_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'new_feature',
+ key = 'new_feature_key',
+ type = 'boolean',
+ value = true
+ )
+ else:
+ return GetFeatureFlagsResponseDataFeatureFlagsInner(
+ )
+ """
+
+ def testGetFeatureFlagsResponseDataFeatureFlagsInner(self):
+ """Test GetFeatureFlagsResponseDataFeatureFlagsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_identities_response.py b/test/test_get_identities_response.py
new file mode 100644
index 00000000..f0afdab5
--- /dev/null
+++ b/test/test_get_identities_response.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_identities_response import GetIdentitiesResponse
+
+class TestGetIdentitiesResponse(unittest.TestCase):
+ """GetIdentitiesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetIdentitiesResponse:
+ """Test GetIdentitiesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetIdentitiesResponse`
+ """
+ model = GetIdentitiesResponse()
+ if include_optional:
+ return GetIdentitiesResponse(
+ code = '',
+ message = '',
+ identities = [
+ kinde_sdk.models.identity.identity(
+ id = 'identity_019617f0cd72460a42192cf37b41084f',
+ type = 'email',
+ is_confirmed = True,
+ created_on = '2025-01-01T00:00:00Z',
+ last_login_on = '2025-01-05T00:00:00Z',
+ total_logins = 20,
+ name = 'sally@example.com',
+ email = 'sally@example.com',
+ is_primary = True, )
+ ],
+ has_more = True
+ )
+ else:
+ return GetIdentitiesResponse(
+ )
+ """
+
+ def testGetIdentitiesResponse(self):
+ """Test GetIdentitiesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_industries_response.py b/test/test_get_industries_response.py
new file mode 100644
index 00000000..5374cc51
--- /dev/null
+++ b/test/test_get_industries_response.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_industries_response import GetIndustriesResponse
+
+class TestGetIndustriesResponse(unittest.TestCase):
+ """GetIndustriesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetIndustriesResponse:
+ """Test GetIndustriesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetIndustriesResponse`
+ """
+ model = GetIndustriesResponse()
+ if include_optional:
+ return GetIndustriesResponse(
+ code = 'OK',
+ message = 'Success',
+ industries = [
+ kinde_sdk.models.get_industries_response_industries_inner.get_industries_response_industries_inner(
+ key = 'administration_office_support',
+ name = 'Administration & Office Support', )
+ ]
+ )
+ else:
+ return GetIndustriesResponse(
+ )
+ """
+
+ def testGetIndustriesResponse(self):
+ """Test GetIndustriesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_industries_response_industries_inner.py b/test/test_get_industries_response_industries_inner.py
new file mode 100644
index 00000000..c8982b4d
--- /dev/null
+++ b/test/test_get_industries_response_industries_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_industries_response_industries_inner import GetIndustriesResponseIndustriesInner
+
+class TestGetIndustriesResponseIndustriesInner(unittest.TestCase):
+ """GetIndustriesResponseIndustriesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetIndustriesResponseIndustriesInner:
+ """Test GetIndustriesResponseIndustriesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetIndustriesResponseIndustriesInner`
+ """
+ model = GetIndustriesResponseIndustriesInner()
+ if include_optional:
+ return GetIndustriesResponseIndustriesInner(
+ key = 'administration_office_support',
+ name = 'Administration & Office Support'
+ )
+ else:
+ return GetIndustriesResponseIndustriesInner(
+ )
+ """
+
+ def testGetIndustriesResponseIndustriesInner(self):
+ """Test GetIndustriesResponseIndustriesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organization_feature_flags_response.py b/test/test_get_organization_feature_flags_response.py
new file mode 100644
index 00000000..08da97f3
--- /dev/null
+++ b/test/test_get_organization_feature_flags_response.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organization_feature_flags_response import GetOrganizationFeatureFlagsResponse
+
+class TestGetOrganizationFeatureFlagsResponse(unittest.TestCase):
+ """GetOrganizationFeatureFlagsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationFeatureFlagsResponse:
+ """Test GetOrganizationFeatureFlagsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationFeatureFlagsResponse`
+ """
+ model = GetOrganizationFeatureFlagsResponse()
+ if include_optional:
+ return GetOrganizationFeatureFlagsResponse(
+ code = '',
+ message = '',
+ feature_flags = {
+ 'key' : kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value.get_organization_feature_flags_response_feature_flags_value(
+ type = 'str',
+ value = '', )
+ }
+ )
+ else:
+ return GetOrganizationFeatureFlagsResponse(
+ )
+ """
+
+ def testGetOrganizationFeatureFlagsResponse(self):
+ """Test GetOrganizationFeatureFlagsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organization_feature_flags_response_feature_flags_value.py b/test/test_get_organization_feature_flags_response_feature_flags_value.py
new file mode 100644
index 00000000..3cdd444c
--- /dev/null
+++ b/test/test_get_organization_feature_flags_response_feature_flags_value.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organization_feature_flags_response_feature_flags_value import GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+
+class TestGetOrganizationFeatureFlagsResponseFeatureFlagsValue(unittest.TestCase):
+ """GetOrganizationFeatureFlagsResponseFeatureFlagsValue unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationFeatureFlagsResponseFeatureFlagsValue:
+ """Test GetOrganizationFeatureFlagsResponseFeatureFlagsValue
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationFeatureFlagsResponseFeatureFlagsValue`
+ """
+ model = GetOrganizationFeatureFlagsResponseFeatureFlagsValue()
+ if include_optional:
+ return GetOrganizationFeatureFlagsResponseFeatureFlagsValue(
+ type = 'str',
+ value = ''
+ )
+ else:
+ return GetOrganizationFeatureFlagsResponseFeatureFlagsValue(
+ )
+ """
+
+ def testGetOrganizationFeatureFlagsResponseFeatureFlagsValue(self):
+ """Test GetOrganizationFeatureFlagsResponseFeatureFlagsValue"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organization_response.py b/test/test_get_organization_response.py
new file mode 100644
index 00000000..4cd92f14
--- /dev/null
+++ b/test/test_get_organization_response.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organization_response import GetOrganizationResponse
+
+class TestGetOrganizationResponse(unittest.TestCase):
+ """GetOrganizationResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationResponse:
+ """Test GetOrganizationResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationResponse`
+ """
+ model = GetOrganizationResponse()
+ if include_optional:
+ return GetOrganizationResponse(
+ code = 'org_1ccfb819462',
+ name = 'Acme Corp',
+ handle = 'acme_corp',
+ is_default = False,
+ external_id = 'some1234',
+ is_auto_membership_enabled = True,
+ logo = 'https://yoursubdomain.kinde.com/logo?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ logo_dark = 'https://yoursubdomain.kinde.com/logo_dark?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ favicon_svg = 'https://yoursubdomain.kinde.com/favicon_svg?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ favicon_fallback = 'https://yoursubdomain.kinde.com/favicon_fallback?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d',
+ link_color = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ background_color = kinde_sdk.models.get_environment_response_environment_background_color.get_environment_response_environment_background_color(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)', ),
+ button_color = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_text_color = kinde_sdk.models.get_environment_response_environment_background_color.get_environment_response_environment_background_color(
+ raw = '#ffffff',
+ hex = '#ffffff',
+ hsl = 'hsl(0, 0%, 100%)', ),
+ link_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ background_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_text_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_color_dark = kinde_sdk.models.get_environment_response_environment_link_color.get_environment_response_environment_link_color(
+ raw = '#0056F1',
+ hex = '#0056F1',
+ hsl = 'hsl(220, 100%, 50%)', ),
+ button_border_radius = 8,
+ card_border_radius = 16,
+ input_border_radius = 4,
+ theme_code = 'light',
+ color_scheme = 'light',
+ created_on = '2021-01-01T00:00:00Z',
+ is_allow_registrations = True,
+ sender_name = 'Acme Corp',
+ sender_email = 'hello@acmecorp.com',
+ billing = kinde_sdk.models.get_organization_response_billing.get_organization_response_billing(
+ billing_customer_id = '',
+ agreements = [
+ kinde_sdk.models.get_organization_response_billing_agreements_inner.get_organization_response_billing_agreements_inner(
+ plan_code = 'pro',
+ agreement_id = 'agreement_a1234b', )
+ ], )
+ )
+ else:
+ return GetOrganizationResponse(
+ )
+ """
+
+ def testGetOrganizationResponse(self):
+ """Test GetOrganizationResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organization_response_billing.py b/test/test_get_organization_response_billing.py
new file mode 100644
index 00000000..2373be63
--- /dev/null
+++ b/test/test_get_organization_response_billing.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organization_response_billing import GetOrganizationResponseBilling
+
+class TestGetOrganizationResponseBilling(unittest.TestCase):
+ """GetOrganizationResponseBilling unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationResponseBilling:
+ """Test GetOrganizationResponseBilling
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationResponseBilling`
+ """
+ model = GetOrganizationResponseBilling()
+ if include_optional:
+ return GetOrganizationResponseBilling(
+ billing_customer_id = '',
+ agreements = [
+ kinde_sdk.models.get_organization_response_billing_agreements_inner.get_organization_response_billing_agreements_inner(
+ plan_code = 'pro',
+ agreement_id = 'agreement_a1234b', )
+ ]
+ )
+ else:
+ return GetOrganizationResponseBilling(
+ )
+ """
+
+ def testGetOrganizationResponseBilling(self):
+ """Test GetOrganizationResponseBilling"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organization_response_billing_agreements_inner.py b/test/test_get_organization_response_billing_agreements_inner.py
new file mode 100644
index 00000000..a89678bc
--- /dev/null
+++ b/test/test_get_organization_response_billing_agreements_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organization_response_billing_agreements_inner import GetOrganizationResponseBillingAgreementsInner
+
+class TestGetOrganizationResponseBillingAgreementsInner(unittest.TestCase):
+ """GetOrganizationResponseBillingAgreementsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationResponseBillingAgreementsInner:
+ """Test GetOrganizationResponseBillingAgreementsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationResponseBillingAgreementsInner`
+ """
+ model = GetOrganizationResponseBillingAgreementsInner()
+ if include_optional:
+ return GetOrganizationResponseBillingAgreementsInner(
+ plan_code = 'pro',
+ agreement_id = 'agreement_a1234b'
+ )
+ else:
+ return GetOrganizationResponseBillingAgreementsInner(
+ )
+ """
+
+ def testGetOrganizationResponseBillingAgreementsInner(self):
+ """Test GetOrganizationResponseBillingAgreementsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organization_users_response.py b/test/test_get_organization_users_response.py
new file mode 100644
index 00000000..6a476a5a
--- /dev/null
+++ b/test/test_get_organization_users_response.py
@@ -0,0 +1,68 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organization_users_response import GetOrganizationUsersResponse
+
+class TestGetOrganizationUsersResponse(unittest.TestCase):
+ """GetOrganizationUsersResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationUsersResponse:
+ """Test GetOrganizationUsersResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationUsersResponse`
+ """
+ model = GetOrganizationUsersResponse()
+ if include_optional:
+ return GetOrganizationUsersResponse(
+ code = 'OK',
+ message = 'Success',
+ organization_users = [
+ kinde_sdk.models.organization_user.organization_user(
+ id = 'kp:97c2ba24217d48e3b96a799b76cf2c74',
+ email = 'john.snow@example.com',
+ full_name = 'John Snow',
+ last_name = 'Snow',
+ first_name = 'John',
+ picture = 'https://example.com/john_snow.jpg',
+ joined_on = '2021-01-01T00:00:00Z',
+ last_accessed_on = '2022-01-01T00:00:00Z',
+ roles = [
+ 'admin'
+ ], )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetOrganizationUsersResponse(
+ )
+ """
+
+ def testGetOrganizationUsersResponse(self):
+ """Test GetOrganizationUsersResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organizations_response.py b/test/test_get_organizations_response.py
new file mode 100644
index 00000000..215439d7
--- /dev/null
+++ b/test/test_get_organizations_response.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organizations_response import GetOrganizationsResponse
+
+class TestGetOrganizationsResponse(unittest.TestCase):
+ """GetOrganizationsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationsResponse:
+ """Test GetOrganizationsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationsResponse`
+ """
+ model = GetOrganizationsResponse()
+ if include_optional:
+ return GetOrganizationsResponse(
+ code = 'OK',
+ message = 'Success',
+ organizations = [
+ kinde_sdk.models.organization_item_schema.organization_item_schema(
+ code = 'org_1ccfb819462',
+ name = 'Acme Corp',
+ handle = 'acme_corp',
+ is_default = False,
+ external_id = 'some1234',
+ is_auto_membership_enabled = True, )
+ ],
+ next_token = 'Mjo5Om1hbWVfYZNj'
+ )
+ else:
+ return GetOrganizationsResponse(
+ )
+ """
+
+ def testGetOrganizationsResponse(self):
+ """Test GetOrganizationsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organizations_user_permissions_response.py b/test/test_get_organizations_user_permissions_response.py
new file mode 100644
index 00000000..1ef248d9
--- /dev/null
+++ b/test/test_get_organizations_user_permissions_response.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organizations_user_permissions_response import GetOrganizationsUserPermissionsResponse
+
+class TestGetOrganizationsUserPermissionsResponse(unittest.TestCase):
+ """GetOrganizationsUserPermissionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationsUserPermissionsResponse:
+ """Test GetOrganizationsUserPermissionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationsUserPermissionsResponse`
+ """
+ model = GetOrganizationsUserPermissionsResponse()
+ if include_optional:
+ return GetOrganizationsUserPermissionsResponse(
+ code = '',
+ message = '',
+ permissions = [
+ kinde_sdk.models.organization_user_permission.organization_user_permission(
+ id = '',
+ key = '',
+ name = '',
+ description = '',
+ roles = [
+ kinde_sdk.models.organization_user_permission_roles_inner.organization_user_permission_roles_inner(
+ id = '',
+ key = '', )
+ ], )
+ ]
+ )
+ else:
+ return GetOrganizationsUserPermissionsResponse(
+ )
+ """
+
+ def testGetOrganizationsUserPermissionsResponse(self):
+ """Test GetOrganizationsUserPermissionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organizations_user_roles_response.py b/test/test_get_organizations_user_roles_response.py
new file mode 100644
index 00000000..6e081abd
--- /dev/null
+++ b/test/test_get_organizations_user_roles_response.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_organizations_user_roles_response import GetOrganizationsUserRolesResponse
+
+class TestGetOrganizationsUserRolesResponse(unittest.TestCase):
+ """GetOrganizationsUserRolesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizationsUserRolesResponse:
+ """Test GetOrganizationsUserRolesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizationsUserRolesResponse`
+ """
+ model = GetOrganizationsUserRolesResponse()
+ if include_optional:
+ return GetOrganizationsUserRolesResponse(
+ code = '',
+ message = '',
+ roles = [
+ kinde_sdk.models.organization_user_role.organization_user_role(
+ id = '',
+ key = '',
+ name = '', )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetOrganizationsUserRolesResponse(
+ )
+ """
+
+ def testGetOrganizationsUserRolesResponse(self):
+ """Test GetOrganizationsUserRolesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_permissions_response.py b/test/test_get_permissions_response.py
new file mode 100644
index 00000000..3d91dc74
--- /dev/null
+++ b/test/test_get_permissions_response.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_permissions_response import GetPermissionsResponse
+
+class TestGetPermissionsResponse(unittest.TestCase):
+ """GetPermissionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetPermissionsResponse:
+ """Test GetPermissionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetPermissionsResponse`
+ """
+ model = GetPermissionsResponse()
+ if include_optional:
+ return GetPermissionsResponse(
+ code = '',
+ message = '',
+ permissions = [
+ kinde_sdk.models.permissions.permissions(
+ id = '',
+ key = '',
+ name = '',
+ description = '', )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetPermissionsResponse(
+ )
+ """
+
+ def testGetPermissionsResponse(self):
+ """Test GetPermissionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_portal_link.py b/test/test_get_portal_link.py
new file mode 100644
index 00000000..e3ae1537
--- /dev/null
+++ b/test/test_get_portal_link.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_portal_link import GetPortalLink
+
+class TestGetPortalLink(unittest.TestCase):
+ """GetPortalLink unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetPortalLink:
+ """Test GetPortalLink
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetPortalLink`
+ """
+ model = GetPortalLink()
+ if include_optional:
+ return GetPortalLink(
+ url = 'https://.kinde.com/portal_redirect?key=c30d0407030209af82...'
+ )
+ else:
+ return GetPortalLink(
+ )
+ """
+
+ def testGetPortalLink(self):
+ """Test GetPortalLink"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_properties_response.py b/test/test_get_properties_response.py
new file mode 100644
index 00000000..72e1320d
--- /dev/null
+++ b/test/test_get_properties_response.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_properties_response import GetPropertiesResponse
+
+class TestGetPropertiesResponse(unittest.TestCase):
+ """GetPropertiesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetPropertiesResponse:
+ """Test GetPropertiesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetPropertiesResponse`
+ """
+ model = GetPropertiesResponse()
+ if include_optional:
+ return GetPropertiesResponse(
+ code = '',
+ message = '',
+ properties = [
+ kinde_sdk.models.property.property(
+ id = '',
+ key = '',
+ name = '',
+ is_private = True,
+ description = '',
+ is_kinde_property = True, )
+ ],
+ has_more = True
+ )
+ else:
+ return GetPropertiesResponse(
+ )
+ """
+
+ def testGetPropertiesResponse(self):
+ """Test GetPropertiesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_property_values_response.py b/test/test_get_property_values_response.py
new file mode 100644
index 00000000..781dff01
--- /dev/null
+++ b/test/test_get_property_values_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_property_values_response import GetPropertyValuesResponse
+
+class TestGetPropertyValuesResponse(unittest.TestCase):
+ """GetPropertyValuesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetPropertyValuesResponse:
+ """Test GetPropertyValuesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetPropertyValuesResponse`
+ """
+ model = GetPropertyValuesResponse()
+ if include_optional:
+ return GetPropertyValuesResponse(
+ code = '',
+ message = '',
+ properties = [
+ kinde_sdk.models.property_value.property_value(
+ id = 'prop_0192b7e8b4f8ca08110d2b22059662a8',
+ name = 'Town',
+ description = 'Where the entity is located',
+ key = 'kp_town',
+ value = 'West-side Staines massive', )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetPropertyValuesResponse(
+ )
+ """
+
+ def testGetPropertyValuesResponse(self):
+ """Test GetPropertyValuesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_redirect_callback_urls_response.py b/test/test_get_redirect_callback_urls_response.py
new file mode 100644
index 00000000..e7cfc75f
--- /dev/null
+++ b/test/test_get_redirect_callback_urls_response.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_redirect_callback_urls_response import GetRedirectCallbackUrlsResponse
+
+class TestGetRedirectCallbackUrlsResponse(unittest.TestCase):
+ """GetRedirectCallbackUrlsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetRedirectCallbackUrlsResponse:
+ """Test GetRedirectCallbackUrlsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetRedirectCallbackUrlsResponse`
+ """
+ model = GetRedirectCallbackUrlsResponse()
+ if include_optional:
+ return GetRedirectCallbackUrlsResponse(
+ redirect_urls = [
+ kinde_sdk.models.redirect_callback_urls.redirect_callback_urls(
+ redirect_urls = [
+ ''
+ ], )
+ ]
+ )
+ else:
+ return GetRedirectCallbackUrlsResponse(
+ )
+ """
+
+ def testGetRedirectCallbackUrlsResponse(self):
+ """Test GetRedirectCallbackUrlsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_role_response.py b/test/test_get_role_response.py
new file mode 100644
index 00000000..fc0ab1f0
--- /dev/null
+++ b/test/test_get_role_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_role_response import GetRoleResponse
+
+class TestGetRoleResponse(unittest.TestCase):
+ """GetRoleResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetRoleResponse:
+ """Test GetRoleResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetRoleResponse`
+ """
+ model = GetRoleResponse()
+ if include_optional:
+ return GetRoleResponse(
+ code = '',
+ message = '',
+ role = kinde_sdk.models.get_role_response_role.get_role_response_role(
+ id = '01929904-316d-bb2c-069f-99dfea4ac394',
+ key = 'admin',
+ name = 'Administrator',
+ description = 'Full access to all resources.',
+ is_default_role = False, )
+ )
+ else:
+ return GetRoleResponse(
+ )
+ """
+
+ def testGetRoleResponse(self):
+ """Test GetRoleResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_role_response_role.py b/test/test_get_role_response_role.py
new file mode 100644
index 00000000..fc14ef8f
--- /dev/null
+++ b/test/test_get_role_response_role.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_role_response_role import GetRoleResponseRole
+
+class TestGetRoleResponseRole(unittest.TestCase):
+ """GetRoleResponseRole unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetRoleResponseRole:
+ """Test GetRoleResponseRole
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetRoleResponseRole`
+ """
+ model = GetRoleResponseRole()
+ if include_optional:
+ return GetRoleResponseRole(
+ id = '01929904-316d-bb2c-069f-99dfea4ac394',
+ key = 'admin',
+ name = 'Administrator',
+ description = 'Full access to all resources.',
+ is_default_role = False
+ )
+ else:
+ return GetRoleResponseRole(
+ )
+ """
+
+ def testGetRoleResponseRole(self):
+ """Test GetRoleResponseRole"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_roles_response.py b/test/test_get_roles_response.py
new file mode 100644
index 00000000..b4078c85
--- /dev/null
+++ b/test/test_get_roles_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_roles_response import GetRolesResponse
+
+class TestGetRolesResponse(unittest.TestCase):
+ """GetRolesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetRolesResponse:
+ """Test GetRolesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetRolesResponse`
+ """
+ model = GetRolesResponse()
+ if include_optional:
+ return GetRolesResponse(
+ code = '',
+ message = '',
+ roles = [
+ kinde_sdk.models.roles.roles(
+ id = '',
+ key = '',
+ name = '',
+ description = '',
+ is_default_role = True, )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetRolesResponse(
+ )
+ """
+
+ def testGetRolesResponse(self):
+ """Test GetRolesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_subscriber_response.py b/test/test_get_subscriber_response.py
new file mode 100644
index 00000000..cc9c2029
--- /dev/null
+++ b/test/test_get_subscriber_response.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_subscriber_response import GetSubscriberResponse
+
+class TestGetSubscriberResponse(unittest.TestCase):
+ """GetSubscriberResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetSubscriberResponse:
+ """Test GetSubscriberResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetSubscriberResponse`
+ """
+ model = GetSubscriberResponse()
+ if include_optional:
+ return GetSubscriberResponse(
+ code = '',
+ message = '',
+ subscribers = [
+ kinde_sdk.models.subscriber.subscriber(
+ id = '',
+ preferred_email = '',
+ first_name = '',
+ last_name = '', )
+ ]
+ )
+ else:
+ return GetSubscriberResponse(
+ )
+ """
+
+ def testGetSubscriberResponse(self):
+ """Test GetSubscriberResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_subscribers_response.py b/test/test_get_subscribers_response.py
new file mode 100644
index 00000000..cffb215d
--- /dev/null
+++ b/test/test_get_subscribers_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_subscribers_response import GetSubscribersResponse
+
+class TestGetSubscribersResponse(unittest.TestCase):
+ """GetSubscribersResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetSubscribersResponse:
+ """Test GetSubscribersResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetSubscribersResponse`
+ """
+ model = GetSubscribersResponse()
+ if include_optional:
+ return GetSubscribersResponse(
+ code = '',
+ message = '',
+ subscribers = [
+ kinde_sdk.models.subscribers_subscriber.subscribers_subscriber(
+ id = '',
+ email = '',
+ full_name = '',
+ first_name = '',
+ last_name = '', )
+ ],
+ next_token = ''
+ )
+ else:
+ return GetSubscribersResponse(
+ )
+ """
+
+ def testGetSubscribersResponse(self):
+ """Test GetSubscribersResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_timezones_response.py b/test/test_get_timezones_response.py
new file mode 100644
index 00000000..5e6eece4
--- /dev/null
+++ b/test/test_get_timezones_response.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_timezones_response import GetTimezonesResponse
+
+class TestGetTimezonesResponse(unittest.TestCase):
+ """GetTimezonesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetTimezonesResponse:
+ """Test GetTimezonesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetTimezonesResponse`
+ """
+ model = GetTimezonesResponse()
+ if include_optional:
+ return GetTimezonesResponse(
+ code = 'OK',
+ message = 'Success',
+ timezones = [
+ kinde_sdk.models.get_timezones_response_timezones_inner.get_timezones_response_timezones_inner(
+ key = 'london_greenwich_mean_time',
+ name = 'London (Greenwich Mean Time) [+01:00]', )
+ ]
+ )
+ else:
+ return GetTimezonesResponse(
+ )
+ """
+
+ def testGetTimezonesResponse(self):
+ """Test GetTimezonesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_timezones_response_timezones_inner.py b/test/test_get_timezones_response_timezones_inner.py
new file mode 100644
index 00000000..22be344e
--- /dev/null
+++ b/test/test_get_timezones_response_timezones_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_timezones_response_timezones_inner import GetTimezonesResponseTimezonesInner
+
+class TestGetTimezonesResponseTimezonesInner(unittest.TestCase):
+ """GetTimezonesResponseTimezonesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetTimezonesResponseTimezonesInner:
+ """Test GetTimezonesResponseTimezonesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetTimezonesResponseTimezonesInner`
+ """
+ model = GetTimezonesResponseTimezonesInner()
+ if include_optional:
+ return GetTimezonesResponseTimezonesInner(
+ key = 'london_greenwich_mean_time',
+ name = 'London (Greenwich Mean Time) [+01:00]'
+ )
+ else:
+ return GetTimezonesResponseTimezonesInner(
+ )
+ """
+
+ def testGetTimezonesResponseTimezonesInner(self):
+ """Test GetTimezonesResponseTimezonesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_mfa_response.py b/test/test_get_user_mfa_response.py
new file mode 100644
index 00000000..3f873d78
--- /dev/null
+++ b/test/test_get_user_mfa_response.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_mfa_response import GetUserMfaResponse
+
+class TestGetUserMfaResponse(unittest.TestCase):
+ """GetUserMfaResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserMfaResponse:
+ """Test GetUserMfaResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserMfaResponse`
+ """
+ model = GetUserMfaResponse()
+ if include_optional:
+ return GetUserMfaResponse(
+ message = '',
+ code = '',
+ mfa = kinde_sdk.models.get_user_mfa_response_mfa.get_user_mfa_response_mfa(
+ id = 'mfa_01933d1ca1f093e7fad48ebcdb65a871',
+ type = 'email',
+ created_on = '2024-11-18T13:31:46.795085+11:00',
+ name = 'sally@gmail.com',
+ is_verified = True,
+ usage_count = 2,
+ last_used_on = '2024-11-18T13:32:07.225380+11:00', )
+ )
+ else:
+ return GetUserMfaResponse(
+ )
+ """
+
+ def testGetUserMfaResponse(self):
+ """Test GetUserMfaResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_mfa_response_mfa.py b/test/test_get_user_mfa_response_mfa.py
new file mode 100644
index 00000000..3b02741a
--- /dev/null
+++ b/test/test_get_user_mfa_response_mfa.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_mfa_response_mfa import GetUserMfaResponseMfa
+
+class TestGetUserMfaResponseMfa(unittest.TestCase):
+ """GetUserMfaResponseMfa unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserMfaResponseMfa:
+ """Test GetUserMfaResponseMfa
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserMfaResponseMfa`
+ """
+ model = GetUserMfaResponseMfa()
+ if include_optional:
+ return GetUserMfaResponseMfa(
+ id = 'mfa_01933d1ca1f093e7fad48ebcdb65a871',
+ type = 'email',
+ created_on = '2024-11-18T13:31:46.795085+11:00',
+ name = 'sally@gmail.com',
+ is_verified = True,
+ usage_count = 2,
+ last_used_on = '2024-11-18T13:32:07.225380+11:00'
+ )
+ else:
+ return GetUserMfaResponseMfa(
+ )
+ """
+
+ def testGetUserMfaResponseMfa(self):
+ """Test GetUserMfaResponseMfa"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_permissions_response.py b/test/test_get_user_permissions_response.py
new file mode 100644
index 00000000..4c42df0f
--- /dev/null
+++ b/test/test_get_user_permissions_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_permissions_response import GetUserPermissionsResponse
+
+class TestGetUserPermissionsResponse(unittest.TestCase):
+ """GetUserPermissionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPermissionsResponse:
+ """Test GetUserPermissionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPermissionsResponse`
+ """
+ model = GetUserPermissionsResponse()
+ if include_optional:
+ return GetUserPermissionsResponse(
+ data = kinde_sdk.models.get_user_permissions_response_data.get_user_permissions_response_data(
+ org_code = 'org_0195ac80a14e',
+ permissions = [
+ kinde_sdk.models.get_user_permissions_response_data_permissions_inner.get_user_permissions_response_data_permissions_inner(
+ id = 'perm_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'View reports',
+ key = 'view_reports', )
+ ], ),
+ metadata = kinde_sdk.models.get_user_permissions_response_metadata.get_user_permissions_response_metadata(
+ has_more = False,
+ next_page_starting_after = 'perm_0195ac80a14e8d71f42b98e75d3c61ad', )
+ )
+ else:
+ return GetUserPermissionsResponse(
+ )
+ """
+
+ def testGetUserPermissionsResponse(self):
+ """Test GetUserPermissionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_permissions_response_data.py b/test/test_get_user_permissions_response_data.py
new file mode 100644
index 00000000..3346c78b
--- /dev/null
+++ b/test/test_get_user_permissions_response_data.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_permissions_response_data import GetUserPermissionsResponseData
+
+class TestGetUserPermissionsResponseData(unittest.TestCase):
+ """GetUserPermissionsResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPermissionsResponseData:
+ """Test GetUserPermissionsResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPermissionsResponseData`
+ """
+ model = GetUserPermissionsResponseData()
+ if include_optional:
+ return GetUserPermissionsResponseData(
+ org_code = 'org_0195ac80a14e',
+ permissions = [
+ kinde_sdk.models.get_user_permissions_response_data_permissions_inner.get_user_permissions_response_data_permissions_inner(
+ id = 'perm_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'View reports',
+ key = 'view_reports', )
+ ]
+ )
+ else:
+ return GetUserPermissionsResponseData(
+ )
+ """
+
+ def testGetUserPermissionsResponseData(self):
+ """Test GetUserPermissionsResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_permissions_response_data_permissions_inner.py b/test/test_get_user_permissions_response_data_permissions_inner.py
new file mode 100644
index 00000000..2b23f758
--- /dev/null
+++ b/test/test_get_user_permissions_response_data_permissions_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_permissions_response_data_permissions_inner import GetUserPermissionsResponseDataPermissionsInner
+
+class TestGetUserPermissionsResponseDataPermissionsInner(unittest.TestCase):
+ """GetUserPermissionsResponseDataPermissionsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPermissionsResponseDataPermissionsInner:
+ """Test GetUserPermissionsResponseDataPermissionsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPermissionsResponseDataPermissionsInner`
+ """
+ model = GetUserPermissionsResponseDataPermissionsInner()
+ if include_optional:
+ return GetUserPermissionsResponseDataPermissionsInner(
+ id = 'perm_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'View reports',
+ key = 'view_reports'
+ )
+ else:
+ return GetUserPermissionsResponseDataPermissionsInner(
+ )
+ """
+
+ def testGetUserPermissionsResponseDataPermissionsInner(self):
+ """Test GetUserPermissionsResponseDataPermissionsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_permissions_response_metadata.py b/test/test_get_user_permissions_response_metadata.py
new file mode 100644
index 00000000..0155b482
--- /dev/null
+++ b/test/test_get_user_permissions_response_metadata.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_permissions_response_metadata import GetUserPermissionsResponseMetadata
+
+class TestGetUserPermissionsResponseMetadata(unittest.TestCase):
+ """GetUserPermissionsResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPermissionsResponseMetadata:
+ """Test GetUserPermissionsResponseMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPermissionsResponseMetadata`
+ """
+ model = GetUserPermissionsResponseMetadata()
+ if include_optional:
+ return GetUserPermissionsResponseMetadata(
+ has_more = False,
+ next_page_starting_after = 'perm_0195ac80a14e8d71f42b98e75d3c61ad'
+ )
+ else:
+ return GetUserPermissionsResponseMetadata(
+ )
+ """
+
+ def testGetUserPermissionsResponseMetadata(self):
+ """Test GetUserPermissionsResponseMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_properties_response.py b/test/test_get_user_properties_response.py
new file mode 100644
index 00000000..bd6ac083
--- /dev/null
+++ b/test/test_get_user_properties_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_properties_response import GetUserPropertiesResponse
+
+class TestGetUserPropertiesResponse(unittest.TestCase):
+ """GetUserPropertiesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPropertiesResponse:
+ """Test GetUserPropertiesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPropertiesResponse`
+ """
+ model = GetUserPropertiesResponse()
+ if include_optional:
+ return GetUserPropertiesResponse(
+ data = kinde_sdk.models.get_user_properties_response_data.get_user_properties_response_data(
+ properties = [
+ kinde_sdk.models.get_user_properties_response_data_properties_inner.get_user_properties_response_data_properties_inner(
+ id = 'prop_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'Company name',
+ key = 'company_name',
+ value = Acme Corp, )
+ ], ),
+ metadata = kinde_sdk.models.get_user_properties_response_metadata.get_user_properties_response_metadata(
+ has_more = False,
+ next_page_starting_after = 'prop_0195ac80a14e8d71f42b98e75d3c61ad', )
+ )
+ else:
+ return GetUserPropertiesResponse(
+ )
+ """
+
+ def testGetUserPropertiesResponse(self):
+ """Test GetUserPropertiesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_properties_response_data.py b/test/test_get_user_properties_response_data.py
new file mode 100644
index 00000000..98ec05d3
--- /dev/null
+++ b/test/test_get_user_properties_response_data.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_properties_response_data import GetUserPropertiesResponseData
+
+class TestGetUserPropertiesResponseData(unittest.TestCase):
+ """GetUserPropertiesResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPropertiesResponseData:
+ """Test GetUserPropertiesResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPropertiesResponseData`
+ """
+ model = GetUserPropertiesResponseData()
+ if include_optional:
+ return GetUserPropertiesResponseData(
+ properties = [
+ kinde_sdk.models.get_user_properties_response_data_properties_inner.get_user_properties_response_data_properties_inner(
+ id = 'prop_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'Company name',
+ key = 'company_name',
+ value = Acme Corp, )
+ ]
+ )
+ else:
+ return GetUserPropertiesResponseData(
+ )
+ """
+
+ def testGetUserPropertiesResponseData(self):
+ """Test GetUserPropertiesResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_properties_response_data_properties_inner.py b/test/test_get_user_properties_response_data_properties_inner.py
new file mode 100644
index 00000000..e98bbf0d
--- /dev/null
+++ b/test/test_get_user_properties_response_data_properties_inner.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_properties_response_data_properties_inner import GetUserPropertiesResponseDataPropertiesInner
+
+class TestGetUserPropertiesResponseDataPropertiesInner(unittest.TestCase):
+ """GetUserPropertiesResponseDataPropertiesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPropertiesResponseDataPropertiesInner:
+ """Test GetUserPropertiesResponseDataPropertiesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPropertiesResponseDataPropertiesInner`
+ """
+ model = GetUserPropertiesResponseDataPropertiesInner()
+ if include_optional:
+ return GetUserPropertiesResponseDataPropertiesInner(
+ id = 'prop_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'Company name',
+ key = 'company_name',
+ value = Acme Corp
+ )
+ else:
+ return GetUserPropertiesResponseDataPropertiesInner(
+ )
+ """
+
+ def testGetUserPropertiesResponseDataPropertiesInner(self):
+ """Test GetUserPropertiesResponseDataPropertiesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_properties_response_metadata.py b/test/test_get_user_properties_response_metadata.py
new file mode 100644
index 00000000..e0408b9a
--- /dev/null
+++ b/test/test_get_user_properties_response_metadata.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_properties_response_metadata import GetUserPropertiesResponseMetadata
+
+class TestGetUserPropertiesResponseMetadata(unittest.TestCase):
+ """GetUserPropertiesResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserPropertiesResponseMetadata:
+ """Test GetUserPropertiesResponseMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserPropertiesResponseMetadata`
+ """
+ model = GetUserPropertiesResponseMetadata()
+ if include_optional:
+ return GetUserPropertiesResponseMetadata(
+ has_more = False,
+ next_page_starting_after = 'prop_0195ac80a14e8d71f42b98e75d3c61ad'
+ )
+ else:
+ return GetUserPropertiesResponseMetadata(
+ )
+ """
+
+ def testGetUserPropertiesResponseMetadata(self):
+ """Test GetUserPropertiesResponseMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_roles_response.py b/test/test_get_user_roles_response.py
new file mode 100644
index 00000000..15a8b49a
--- /dev/null
+++ b/test/test_get_user_roles_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_roles_response import GetUserRolesResponse
+
+class TestGetUserRolesResponse(unittest.TestCase):
+ """GetUserRolesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserRolesResponse:
+ """Test GetUserRolesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserRolesResponse`
+ """
+ model = GetUserRolesResponse()
+ if include_optional:
+ return GetUserRolesResponse(
+ data = kinde_sdk.models.get_user_roles_response_data.get_user_roles_response_data(
+ org_code = 'org_0195ac80a14e',
+ roles = [
+ kinde_sdk.models.get_user_roles_response_data_roles_inner.get_user_roles_response_data_roles_inner(
+ id = 'role_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'Admin',
+ key = 'admin', )
+ ], ),
+ metadata = kinde_sdk.models.get_user_roles_response_metadata.get_user_roles_response_metadata(
+ has_more = False,
+ next_page_starting_after = 'role_0195ac80a14e8d71f42b98e75d3c61ad', )
+ )
+ else:
+ return GetUserRolesResponse(
+ )
+ """
+
+ def testGetUserRolesResponse(self):
+ """Test GetUserRolesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_roles_response_data.py b/test/test_get_user_roles_response_data.py
new file mode 100644
index 00000000..05620134
--- /dev/null
+++ b/test/test_get_user_roles_response_data.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_roles_response_data import GetUserRolesResponseData
+
+class TestGetUserRolesResponseData(unittest.TestCase):
+ """GetUserRolesResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserRolesResponseData:
+ """Test GetUserRolesResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserRolesResponseData`
+ """
+ model = GetUserRolesResponseData()
+ if include_optional:
+ return GetUserRolesResponseData(
+ org_code = 'org_0195ac80a14e',
+ roles = [
+ kinde_sdk.models.get_user_roles_response_data_roles_inner.get_user_roles_response_data_roles_inner(
+ id = 'role_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'Admin',
+ key = 'admin', )
+ ]
+ )
+ else:
+ return GetUserRolesResponseData(
+ )
+ """
+
+ def testGetUserRolesResponseData(self):
+ """Test GetUserRolesResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_roles_response_data_roles_inner.py b/test/test_get_user_roles_response_data_roles_inner.py
new file mode 100644
index 00000000..d8e790c2
--- /dev/null
+++ b/test/test_get_user_roles_response_data_roles_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_roles_response_data_roles_inner import GetUserRolesResponseDataRolesInner
+
+class TestGetUserRolesResponseDataRolesInner(unittest.TestCase):
+ """GetUserRolesResponseDataRolesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserRolesResponseDataRolesInner:
+ """Test GetUserRolesResponseDataRolesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserRolesResponseDataRolesInner`
+ """
+ model = GetUserRolesResponseDataRolesInner()
+ if include_optional:
+ return GetUserRolesResponseDataRolesInner(
+ id = 'role_0195ac80a14e8d71f42b98e75d3c61ad',
+ name = 'Admin',
+ key = 'admin'
+ )
+ else:
+ return GetUserRolesResponseDataRolesInner(
+ )
+ """
+
+ def testGetUserRolesResponseDataRolesInner(self):
+ """Test GetUserRolesResponseDataRolesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_roles_response_metadata.py b/test/test_get_user_roles_response_metadata.py
new file mode 100644
index 00000000..1f3e08c7
--- /dev/null
+++ b/test/test_get_user_roles_response_metadata.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_roles_response_metadata import GetUserRolesResponseMetadata
+
+class TestGetUserRolesResponseMetadata(unittest.TestCase):
+ """GetUserRolesResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserRolesResponseMetadata:
+ """Test GetUserRolesResponseMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserRolesResponseMetadata`
+ """
+ model = GetUserRolesResponseMetadata()
+ if include_optional:
+ return GetUserRolesResponseMetadata(
+ has_more = False,
+ next_page_starting_after = 'role_0195ac80a14e8d71f42b98e75d3c61ad'
+ )
+ else:
+ return GetUserRolesResponseMetadata(
+ )
+ """
+
+ def testGetUserRolesResponseMetadata(self):
+ """Test GetUserRolesResponseMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_sessions_response.py b/test/test_get_user_sessions_response.py
new file mode 100644
index 00000000..7772f5d1
--- /dev/null
+++ b/test/test_get_user_sessions_response.py
@@ -0,0 +1,69 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_sessions_response import GetUserSessionsResponse
+
+class TestGetUserSessionsResponse(unittest.TestCase):
+ """GetUserSessionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserSessionsResponse:
+ """Test GetUserSessionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserSessionsResponse`
+ """
+ model = GetUserSessionsResponse()
+ if include_optional:
+ return GetUserSessionsResponse(
+ code = 'OK',
+ message = 'Success',
+ has_more = False,
+ sessions = [
+ kinde_sdk.models.get_user_sessions_response_sessions_inner.get_user_sessions_response_sessions_inner(
+ user_id = 'kp_5fc30d0547734f30aca617450202169f',
+ org_code = 'org_1ccfb819462',
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ expires_on = '2025-04-02T13:04:20.315701+11:00',
+ session_id = 'session_0xc75ec12fe8434ffc9d527794f00692e5',
+ started_on = '2025-04-01T13:04:20.315701+11:00',
+ updated_on = '2025-04-01T13:04:20+11:00',
+ connection_id = 'conn_75ab8ec0faae4f73bae9fc64daf120c9',
+ last_ip_address = '192.168.65.1',
+ last_user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36',
+ initial_ip_address = '192.168.65.1',
+ initial_user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36', )
+ ]
+ )
+ else:
+ return GetUserSessionsResponse(
+ )
+ """
+
+ def testGetUserSessionsResponse(self):
+ """Test GetUserSessionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_user_sessions_response_sessions_inner.py b/test/test_get_user_sessions_response_sessions_inner.py
new file mode 100644
index 00000000..16490256
--- /dev/null
+++ b/test/test_get_user_sessions_response_sessions_inner.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_user_sessions_response_sessions_inner import GetUserSessionsResponseSessionsInner
+
+class TestGetUserSessionsResponseSessionsInner(unittest.TestCase):
+ """GetUserSessionsResponseSessionsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetUserSessionsResponseSessionsInner:
+ """Test GetUserSessionsResponseSessionsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetUserSessionsResponseSessionsInner`
+ """
+ model = GetUserSessionsResponseSessionsInner()
+ if include_optional:
+ return GetUserSessionsResponseSessionsInner(
+ user_id = 'kp_5fc30d0547734f30aca617450202169f',
+ org_code = 'org_1ccfb819462',
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ expires_on = '2025-04-02T13:04:20.315701+11:00',
+ session_id = 'session_0xc75ec12fe8434ffc9d527794f00692e5',
+ started_on = '2025-04-01T13:04:20.315701+11:00',
+ updated_on = '2025-04-01T13:04:20+11:00',
+ connection_id = 'conn_75ab8ec0faae4f73bae9fc64daf120c9',
+ last_ip_address = '192.168.65.1',
+ last_user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36',
+ initial_ip_address = '192.168.65.1',
+ initial_user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36'
+ )
+ else:
+ return GetUserSessionsResponseSessionsInner(
+ )
+ """
+
+ def testGetUserSessionsResponseSessionsInner(self):
+ """Test GetUserSessionsResponseSessionsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_webhooks_response.py b/test/test_get_webhooks_response.py
new file mode 100644
index 00000000..17b1c829
--- /dev/null
+++ b/test/test_get_webhooks_response.py
@@ -0,0 +1,64 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.get_webhooks_response import GetWebhooksResponse
+
+class TestGetWebhooksResponse(unittest.TestCase):
+ """GetWebhooksResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetWebhooksResponse:
+ """Test GetWebhooksResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetWebhooksResponse`
+ """
+ model = GetWebhooksResponse()
+ if include_optional:
+ return GetWebhooksResponse(
+ code = '',
+ message = '',
+ webhooks = [
+ kinde_sdk.models.webhook.webhook(
+ id = '',
+ name = '',
+ endpoint = '',
+ description = '',
+ event_types = [
+ ''
+ ],
+ created_on = '', )
+ ]
+ )
+ else:
+ return GetWebhooksResponse(
+ )
+ """
+
+ def testGetWebhooksResponse(self):
+ """Test GetWebhooksResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_identities_api.py b/test/test_identities_api.py
new file mode 100644
index 00000000..c40bc0db
--- /dev/null
+++ b/test/test_identities_api.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.identities_api import IdentitiesApi
+
+
+class TestIdentitiesApi(unittest.TestCase):
+ """IdentitiesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = IdentitiesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_delete_identity(self) -> None:
+ """Test case for delete_identity
+
+ Delete identity
+ """
+ pass
+
+ def test_get_identity(self) -> None:
+ """Test case for get_identity
+
+ Get identity
+ """
+ pass
+
+ def test_update_identity(self) -> None:
+ """Test case for update_identity
+
+ Update identity
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_identity.py b/test/test_identity.py
new file mode 100644
index 00000000..b2951f42
--- /dev/null
+++ b/test/test_identity.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.identity import Identity
+
+class TestIdentity(unittest.TestCase):
+ """Identity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Identity:
+ """Test Identity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Identity`
+ """
+ model = Identity()
+ if include_optional:
+ return Identity(
+ id = 'identity_019617f0cd72460a42192cf37b41084f',
+ type = 'email',
+ is_confirmed = True,
+ created_on = '2025-01-01T00:00:00Z',
+ last_login_on = '2025-01-05T00:00:00Z',
+ total_logins = 20,
+ name = 'sally@example.com',
+ email = 'sally@example.com',
+ is_primary = True
+ )
+ else:
+ return Identity(
+ )
+ """
+
+ def testIdentity(self):
+ """Test Identity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_industries_api.py b/test/test_industries_api.py
new file mode 100644
index 00000000..d082b661
--- /dev/null
+++ b/test/test_industries_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.industries_api import IndustriesApi
+
+
+class TestIndustriesApi(unittest.TestCase):
+ """IndustriesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = IndustriesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_industries(self) -> None:
+ """Test case for get_industries
+
+ Get industries
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_logout_redirect_urls.py b/test/test_logout_redirect_urls.py
new file mode 100644
index 00000000..28a3f871
--- /dev/null
+++ b/test/test_logout_redirect_urls.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.logout_redirect_urls import LogoutRedirectUrls
+
+class TestLogoutRedirectUrls(unittest.TestCase):
+ """LogoutRedirectUrls unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> LogoutRedirectUrls:
+ """Test LogoutRedirectUrls
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `LogoutRedirectUrls`
+ """
+ model = LogoutRedirectUrls()
+ if include_optional:
+ return LogoutRedirectUrls(
+ logout_urls = [
+ ''
+ ],
+ code = 'OK',
+ message = 'Success'
+ )
+ else:
+ return LogoutRedirectUrls(
+ )
+ """
+
+ def testLogoutRedirectUrls(self):
+ """Test LogoutRedirectUrls"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_mfa_api.py b/test/test_mfa_api.py
new file mode 100644
index 00000000..00740388
--- /dev/null
+++ b/test/test_mfa_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.mfa_api import MFAApi
+
+
+class TestMFAApi(unittest.TestCase):
+ """MFAApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = MFAApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_replace_mfa(self) -> None:
+ """Test case for replace_mfa
+
+ Replace MFA Configuration
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_model_property.py b/test/test_model_property.py
new file mode 100644
index 00000000..dd34b9da
--- /dev/null
+++ b/test/test_model_property.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.model_property import ModelProperty
+
+class TestModelProperty(unittest.TestCase):
+ """ModelProperty unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ModelProperty:
+ """Test ModelProperty
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ModelProperty`
+ """
+ model = ModelProperty()
+ if include_optional:
+ return ModelProperty(
+ id = '',
+ key = '',
+ name = '',
+ is_private = True,
+ description = '',
+ is_kinde_property = True
+ )
+ else:
+ return ModelProperty(
+ )
+ """
+
+ def testModelProperty(self):
+ """Test ModelProperty"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_not_found_response.py b/test/test_not_found_response.py
new file mode 100644
index 00000000..e3bb8d24
--- /dev/null
+++ b/test/test_not_found_response.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.not_found_response import NotFoundResponse
+
+class TestNotFoundResponse(unittest.TestCase):
+ """NotFoundResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> NotFoundResponse:
+ """Test NotFoundResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `NotFoundResponse`
+ """
+ model = NotFoundResponse()
+ if include_optional:
+ return NotFoundResponse(
+ errors = kinde_sdk.models.not_found_response_errors.not_found_response_errors(
+ code = 'ROUTE_NOT_FOUND',
+ message = 'The requested API route does not exist', )
+ )
+ else:
+ return NotFoundResponse(
+ )
+ """
+
+ def testNotFoundResponse(self):
+ """Test NotFoundResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_not_found_response_errors.py b/test/test_not_found_response_errors.py
new file mode 100644
index 00000000..e8bd38fa
--- /dev/null
+++ b/test/test_not_found_response_errors.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.not_found_response_errors import NotFoundResponseErrors
+
+class TestNotFoundResponseErrors(unittest.TestCase):
+ """NotFoundResponseErrors unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> NotFoundResponseErrors:
+ """Test NotFoundResponseErrors
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `NotFoundResponseErrors`
+ """
+ model = NotFoundResponseErrors()
+ if include_optional:
+ return NotFoundResponseErrors(
+ code = 'ROUTE_NOT_FOUND',
+ message = 'The requested API route does not exist'
+ )
+ else:
+ return NotFoundResponseErrors(
+ )
+ """
+
+ def testNotFoundResponseErrors(self):
+ """Test NotFoundResponseErrors"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_o_auth_api.py b/test/test_o_auth_api.py
new file mode 100644
index 00000000..34288d88
--- /dev/null
+++ b/test/test_o_auth_api.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.o_auth_api import OAuthApi
+
+
+class TestOAuthApi(unittest.TestCase):
+ """OAuthApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = OAuthApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_user_profile_v2(self) -> None:
+ """Test case for get_user_profile_v2
+
+ Get user profile
+ """
+ pass
+
+ def test_token_introspection(self) -> None:
+ """Test case for token_introspection
+
+ Introspect
+ """
+ pass
+
+ def test_token_revocation(self) -> None:
+ """Test case for token_revocation
+
+ Revoke token
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_item_schema.py b/test/test_organization_item_schema.py
new file mode 100644
index 00000000..f39bed54
--- /dev/null
+++ b/test/test_organization_item_schema.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_item_schema import OrganizationItemSchema
+
+class TestOrganizationItemSchema(unittest.TestCase):
+ """OrganizationItemSchema unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationItemSchema:
+ """Test OrganizationItemSchema
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationItemSchema`
+ """
+ model = OrganizationItemSchema()
+ if include_optional:
+ return OrganizationItemSchema(
+ code = 'org_1ccfb819462',
+ name = 'Acme Corp',
+ handle = 'acme_corp',
+ is_default = False,
+ external_id = 'some1234',
+ is_auto_membership_enabled = True
+ )
+ else:
+ return OrganizationItemSchema(
+ )
+ """
+
+ def testOrganizationItemSchema(self):
+ """Test OrganizationItemSchema"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_user.py b/test/test_organization_user.py
new file mode 100644
index 00000000..408c7c65
--- /dev/null
+++ b/test/test_organization_user.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_user import OrganizationUser
+
+class TestOrganizationUser(unittest.TestCase):
+ """OrganizationUser unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationUser:
+ """Test OrganizationUser
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationUser`
+ """
+ model = OrganizationUser()
+ if include_optional:
+ return OrganizationUser(
+ id = 'kp:97c2ba24217d48e3b96a799b76cf2c74',
+ email = 'john.snow@example.com',
+ full_name = 'John Snow',
+ last_name = 'Snow',
+ first_name = 'John',
+ picture = 'https://example.com/john_snow.jpg',
+ joined_on = '2021-01-01T00:00:00Z',
+ last_accessed_on = '2022-01-01T00:00:00Z',
+ roles = [
+ 'admin'
+ ]
+ )
+ else:
+ return OrganizationUser(
+ )
+ """
+
+ def testOrganizationUser(self):
+ """Test OrganizationUser"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_user_permission.py b/test/test_organization_user_permission.py
new file mode 100644
index 00000000..d265d50e
--- /dev/null
+++ b/test/test_organization_user_permission.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_user_permission import OrganizationUserPermission
+
+class TestOrganizationUserPermission(unittest.TestCase):
+ """OrganizationUserPermission unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationUserPermission:
+ """Test OrganizationUserPermission
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationUserPermission`
+ """
+ model = OrganizationUserPermission()
+ if include_optional:
+ return OrganizationUserPermission(
+ id = '',
+ key = '',
+ name = '',
+ description = '',
+ roles = [
+ kinde_sdk.models.organization_user_permission_roles_inner.organization_user_permission_roles_inner(
+ id = '',
+ key = '', )
+ ]
+ )
+ else:
+ return OrganizationUserPermission(
+ )
+ """
+
+ def testOrganizationUserPermission(self):
+ """Test OrganizationUserPermission"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_user_permission_roles_inner.py b/test/test_organization_user_permission_roles_inner.py
new file mode 100644
index 00000000..7914adc5
--- /dev/null
+++ b/test/test_organization_user_permission_roles_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_user_permission_roles_inner import OrganizationUserPermissionRolesInner
+
+class TestOrganizationUserPermissionRolesInner(unittest.TestCase):
+ """OrganizationUserPermissionRolesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationUserPermissionRolesInner:
+ """Test OrganizationUserPermissionRolesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationUserPermissionRolesInner`
+ """
+ model = OrganizationUserPermissionRolesInner()
+ if include_optional:
+ return OrganizationUserPermissionRolesInner(
+ id = '',
+ key = ''
+ )
+ else:
+ return OrganizationUserPermissionRolesInner(
+ )
+ """
+
+ def testOrganizationUserPermissionRolesInner(self):
+ """Test OrganizationUserPermissionRolesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_user_role.py b/test/test_organization_user_role.py
new file mode 100644
index 00000000..57234734
--- /dev/null
+++ b/test/test_organization_user_role.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_user_role import OrganizationUserRole
+
+class TestOrganizationUserRole(unittest.TestCase):
+ """OrganizationUserRole unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationUserRole:
+ """Test OrganizationUserRole
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationUserRole`
+ """
+ model = OrganizationUserRole()
+ if include_optional:
+ return OrganizationUserRole(
+ id = '',
+ key = '',
+ name = ''
+ )
+ else:
+ return OrganizationUserRole(
+ )
+ """
+
+ def testOrganizationUserRole(self):
+ """Test OrganizationUserRole"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_user_role_permissions.py b/test/test_organization_user_role_permissions.py
new file mode 100644
index 00000000..7bb9d62b
--- /dev/null
+++ b/test/test_organization_user_role_permissions.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_user_role_permissions import OrganizationUserRolePermissions
+
+class TestOrganizationUserRolePermissions(unittest.TestCase):
+ """OrganizationUserRolePermissions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationUserRolePermissions:
+ """Test OrganizationUserRolePermissions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationUserRolePermissions`
+ """
+ model = OrganizationUserRolePermissions()
+ if include_optional:
+ return OrganizationUserRolePermissions(
+ id = '',
+ role = '',
+ permissions = kinde_sdk.models.organization_user_role_permissions_permissions.organization_user_role_permissions_permissions(
+ key = '', )
+ )
+ else:
+ return OrganizationUserRolePermissions(
+ )
+ """
+
+ def testOrganizationUserRolePermissions(self):
+ """Test OrganizationUserRolePermissions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_user_role_permissions_permissions.py b/test/test_organization_user_role_permissions_permissions.py
new file mode 100644
index 00000000..69b77711
--- /dev/null
+++ b/test/test_organization_user_role_permissions_permissions.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.organization_user_role_permissions_permissions import OrganizationUserRolePermissionsPermissions
+
+class TestOrganizationUserRolePermissionsPermissions(unittest.TestCase):
+ """OrganizationUserRolePermissionsPermissions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationUserRolePermissionsPermissions:
+ """Test OrganizationUserRolePermissionsPermissions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationUserRolePermissionsPermissions`
+ """
+ model = OrganizationUserRolePermissionsPermissions()
+ if include_optional:
+ return OrganizationUserRolePermissionsPermissions(
+ key = ''
+ )
+ else:
+ return OrganizationUserRolePermissionsPermissions(
+ )
+ """
+
+ def testOrganizationUserRolePermissionsPermissions(self):
+ """Test OrganizationUserRolePermissionsPermissions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organizations_api.py b/test/test_organizations_api.py
new file mode 100644
index 00000000..2d6b2964
--- /dev/null
+++ b/test/test_organizations_api.py
@@ -0,0 +1,284 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.organizations_api import OrganizationsApi
+
+
+class TestOrganizationsApi(unittest.TestCase):
+ """OrganizationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = OrganizationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_add_organization_logo(self) -> None:
+ """Test case for add_organization_logo
+
+ Add organization logo
+ """
+ pass
+
+ def test_add_organization_user_api_scope(self) -> None:
+ """Test case for add_organization_user_api_scope
+
+ Add scope to organization user api
+ """
+ pass
+
+ def test_add_organization_users(self) -> None:
+ """Test case for add_organization_users
+
+ Add Organization Users
+ """
+ pass
+
+ def test_create_organization(self) -> None:
+ """Test case for create_organization
+
+ Create organization
+ """
+ pass
+
+ def test_create_organization_user_permission(self) -> None:
+ """Test case for create_organization_user_permission
+
+ Add Organization User Permission
+ """
+ pass
+
+ def test_create_organization_user_role(self) -> None:
+ """Test case for create_organization_user_role
+
+ Add Organization User Role
+ """
+ pass
+
+ def test_delete_organization(self) -> None:
+ """Test case for delete_organization
+
+ Delete Organization
+ """
+ pass
+
+ def test_delete_organization_feature_flag_override(self) -> None:
+ """Test case for delete_organization_feature_flag_override
+
+ Delete Organization Feature Flag Override
+ """
+ pass
+
+ def test_delete_organization_feature_flag_overrides(self) -> None:
+ """Test case for delete_organization_feature_flag_overrides
+
+ Delete Organization Feature Flag Overrides
+ """
+ pass
+
+ def test_delete_organization_handle(self) -> None:
+ """Test case for delete_organization_handle
+
+ Delete organization handle
+ """
+ pass
+
+ def test_delete_organization_logo(self) -> None:
+ """Test case for delete_organization_logo
+
+ Delete organization logo
+ """
+ pass
+
+ def test_delete_organization_user_api_scope(self) -> None:
+ """Test case for delete_organization_user_api_scope
+
+ Delete scope from organization user API
+ """
+ pass
+
+ def test_delete_organization_user_permission(self) -> None:
+ """Test case for delete_organization_user_permission
+
+ Delete Organization User Permission
+ """
+ pass
+
+ def test_delete_organization_user_role(self) -> None:
+ """Test case for delete_organization_user_role
+
+ Delete Organization User Role
+ """
+ pass
+
+ def test_enable_org_connection(self) -> None:
+ """Test case for enable_org_connection
+
+ Enable connection
+ """
+ pass
+
+ def test_get_org_user_mfa(self) -> None:
+ """Test case for get_org_user_mfa
+
+ Get an organization user's MFA configuration
+ """
+ pass
+
+ def test_get_organization(self) -> None:
+ """Test case for get_organization
+
+ Get organization
+ """
+ pass
+
+ def test_get_organization_connections(self) -> None:
+ """Test case for get_organization_connections
+
+ Get connections
+ """
+ pass
+
+ def test_get_organization_feature_flags(self) -> None:
+ """Test case for get_organization_feature_flags
+
+ List Organization Feature Flags
+ """
+ pass
+
+ def test_get_organization_property_values(self) -> None:
+ """Test case for get_organization_property_values
+
+ Get Organization Property Values
+ """
+ pass
+
+ def test_get_organization_user_permissions(self) -> None:
+ """Test case for get_organization_user_permissions
+
+ List Organization User Permissions
+ """
+ pass
+
+ def test_get_organization_user_roles(self) -> None:
+ """Test case for get_organization_user_roles
+
+ List Organization User Roles
+ """
+ pass
+
+ def test_get_organization_users(self) -> None:
+ """Test case for get_organization_users
+
+ Get organization users
+ """
+ pass
+
+ def test_get_organizations(self) -> None:
+ """Test case for get_organizations
+
+ Get organizations
+ """
+ pass
+
+ def test_read_organization_logo(self) -> None:
+ """Test case for read_organization_logo
+
+ Read organization logo details
+ """
+ pass
+
+ def test_remove_org_connection(self) -> None:
+ """Test case for remove_org_connection
+
+ Remove connection
+ """
+ pass
+
+ def test_remove_organization_user(self) -> None:
+ """Test case for remove_organization_user
+
+ Remove Organization User
+ """
+ pass
+
+ def test_replace_organization_mfa(self) -> None:
+ """Test case for replace_organization_mfa
+
+ Replace Organization MFA Configuration
+ """
+ pass
+
+ def test_reset_org_user_mfa(self) -> None:
+ """Test case for reset_org_user_mfa
+
+ Reset specific organization MFA for a user
+ """
+ pass
+
+ def test_reset_org_user_mfa_all(self) -> None:
+ """Test case for reset_org_user_mfa_all
+
+ Reset all organization MFA for a user
+ """
+ pass
+
+ def test_update_organization(self) -> None:
+ """Test case for update_organization
+
+ Update Organization
+ """
+ pass
+
+ def test_update_organization_feature_flag_override(self) -> None:
+ """Test case for update_organization_feature_flag_override
+
+ Update Organization Feature Flag Override
+ """
+ pass
+
+ def test_update_organization_properties(self) -> None:
+ """Test case for update_organization_properties
+
+ Update Organization Property values
+ """
+ pass
+
+ def test_update_organization_property(self) -> None:
+ """Test case for update_organization_property
+
+ Update Organization Property value
+ """
+ pass
+
+ def test_update_organization_sessions(self) -> None:
+ """Test case for update_organization_sessions
+
+ Update organization session configuration
+ """
+ pass
+
+ def test_update_organization_users(self) -> None:
+ """Test case for update_organization_users
+
+ Update Organization Users
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_paths/__init__.py b/test/test_paths/__init__.py
deleted file mode 100644
index 9807086e..00000000
--- a/test/test_paths/__init__.py
+++ /dev/null
@@ -1,75 +0,0 @@
-import collections
-import json
-import typing
-import unittest
-
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-ParamTestCase = collections.namedtuple('ParamTestCase', 'payload expected_serialization explode', defaults=[False])
-
-
-class ApiTestMixin(unittest.TestCase):
- json_content_type = 'application/json'
- user_agent = 'OpenAPI-Generator/1.0.0/python'
-
- @classmethod
- def assert_pool_manager_request_called_with(
- cls,
- mock_request,
- url: str,
- method: str = 'POST',
- body: typing.Optional[bytes] = None,
- content_type: typing.Optional[str] = 'application/json',
- accept_content_type: typing.Optional[str] = 'application/json',
- stream: bool = False,
- headers: typing.Optional[typing.Dict] = None
- ):
- if headers is None:
- headers = {}
- headers['User-Agent'] = cls.user_agent
- if accept_content_type:
- headers['Accept'] = accept_content_type
- if content_type:
- headers['Content-Type'] = content_type
- kwargs = dict(
- headers=HTTPHeaderDict(headers),
- preload_content=not stream,
- timeout=None,
- )
- if content_type and method != 'GET':
- kwargs['body'] = body
- mock_request.assert_called_with(
- method,
- url,
- **kwargs
- )
-
- @staticmethod
- def headers_for_content_type(content_type: str) -> typing.Dict[str, str]:
- return {'content-type': content_type}
-
- @classmethod
- def response(
- cls,
- body: typing.Union[str, bytes],
- status: int = 200,
- content_type: str = json_content_type,
- headers: typing.Optional[typing.Dict[str, str]] = None,
- preload_content: bool = True,
- reason: typing.Optional[str] = None
- ) -> urllib3.HTTPResponse:
- if headers is None:
- headers = {}
- headers.update(cls.headers_for_content_type(content_type))
- return urllib3.HTTPResponse(
- body,
- headers=headers,
- status=status,
- preload_content=preload_content,
- reason=reason
- )
-
- @staticmethod
- def json_bytes(in_data: typing.Any) -> bytes:
- return json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode('utf-8')
diff --git a/test/test_paths/test_api_v1_apis/test_get.py b/test/test_paths/test_api_v1_apis/test_get.py
deleted file mode 100644
index 8d49cd3a..00000000
--- a/test/test_paths/test_api_v1_apis/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_apis import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Apis(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Apis unit test stubs
- List APIs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_apis/test_post.py b/test/test_paths/test_api_v1_apis/test_post.py
deleted file mode 100644
index e483c17e..00000000
--- a/test/test_paths/test_api_v1_apis/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_apis import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Apis(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Apis unit test stubs
- Add APIs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_apis_api_id/test_delete.py b/test/test_paths/test_api_v1_apis_api_id/test_delete.py
deleted file mode 100644
index d7cc75c2..00000000
--- a/test/test_paths/test_api_v1_apis_api_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_apis_api_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApisApiId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApisApiId unit test stubs
- Delete API # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_apis_api_id/test_get.py b/test/test_paths/test_api_v1_apis_api_id/test_get.py
deleted file mode 100644
index c8d3502c..00000000
--- a/test/test_paths/test_api_v1_apis_api_id/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_apis_api_id import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApisApiId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApisApiId unit test stubs
- List API details # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_apis_api_id_applications/__init__.py b/test/test_paths/test_api_v1_apis_api_id_applications/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_apis_api_id_applications/test_patch.py b/test/test_paths/test_api_v1_apis_api_id_applications/test_patch.py
deleted file mode 100644
index f102b13b..00000000
--- a/test/test_paths/test_api_v1_apis_api_id_applications/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_apis_api_id_applications import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApisApiIdApplications(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApisApiIdApplications unit test stubs
- Update API Applications # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications/__init__.py b/test/test_paths/test_api_v1_applications/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_applications/test_get.py b/test/test_paths/test_api_v1_applications/test_get.py
deleted file mode 100644
index c6a8194a..00000000
--- a/test/test_paths/test_api_v1_applications/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Applications(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Applications unit test stubs
- List Applications # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications/test_post.py b/test/test_paths/test_api_v1_applications/test_post.py
deleted file mode 100644
index 4d6e67b9..00000000
--- a/test/test_paths/test_api_v1_applications/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Applications(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Applications unit test stubs
- Create Application # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/__init__.py b/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_delete.py b/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_delete.py
deleted file mode 100644
index dcd29700..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_logout_urls import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthLogoutUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthLogoutUrls unit test stubs
- Delete Logout URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_get.py b/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_get.py
deleted file mode 100644
index 98b5cc60..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_logout_urls import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthLogoutUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthLogoutUrls unit test stubs
- List Logout URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_post.py b/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_post.py
deleted file mode 100644
index 8a7882ce..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_logout_urls import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthLogoutUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthLogoutUrls unit test stubs
- Add Logout Redirect URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_put.py b/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_put.py
deleted file mode 100644
index 2cde38a6..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_logout_urls/test_put.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_logout_urls import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthLogoutUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthLogoutUrls unit test stubs
- Replace Logout Redirect URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/__init__.py b/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_delete.py b/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_delete.py
deleted file mode 100644
index 9a0ad8d4..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_redirect_urls import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthRedirectUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthRedirectUrls unit test stubs
- Delete Callback URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_get.py b/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_get.py
deleted file mode 100644
index 30ae9009..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_redirect_urls import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthRedirectUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthRedirectUrls unit test stubs
- List Callback URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_post.py b/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_post.py
deleted file mode 100644
index f67de95a..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_redirect_urls import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthRedirectUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthRedirectUrls unit test stubs
- Add Redirect Callback URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_put.py b/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_put.py
deleted file mode 100644
index 0a8598b4..00000000
--- a/test/test_paths/test_api_v1_applications_app_id_auth_redirect_urls/test_put.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_app_id_auth_redirect_urls import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsAppIdAuthRedirectUrls(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsAppIdAuthRedirectUrls unit test stubs
- Replace Redirect Callback URLs # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_application_id/__init__.py b/test/test_paths/test_api_v1_applications_application_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_applications_application_id/test_delete.py b/test/test_paths/test_api_v1_applications_application_id/test_delete.py
deleted file mode 100644
index d4a9ee15..00000000
--- a/test/test_paths/test_api_v1_applications_application_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_application_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsApplicationId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsApplicationId unit test stubs
- Delete Application # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_application_id/test_get.py b/test/test_paths/test_api_v1_applications_application_id/test_get.py
deleted file mode 100644
index 320e47c3..00000000
--- a/test/test_paths/test_api_v1_applications_application_id/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_application_id import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsApplicationId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsApplicationId unit test stubs
- Get Application # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_application_id/test_patch.py b/test/test_paths/test_api_v1_applications_application_id/test_patch.py
deleted file mode 100644
index 75cfba60..00000000
--- a/test/test_paths/test_api_v1_applications_application_id/test_patch.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_application_id import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsApplicationId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsApplicationId unit test stubs
- Update Application # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
- response_body = ''
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_application_id_connections/__init__.py b/test/test_paths/test_api_v1_applications_application_id_connections/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_applications_application_id_connections/test_get.py b/test/test_paths/test_api_v1_applications_application_id_connections/test_get.py
deleted file mode 100644
index 902e7cfa..00000000
--- a/test/test_paths/test_api_v1_applications_application_id_connections/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_application_id_connections import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsApplicationIdConnections(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsApplicationIdConnections unit test stubs
- Get connections # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/__init__.py b/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/test_delete.py b/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/test_delete.py
deleted file mode 100644
index 0abbd519..00000000
--- a/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_application_id_connections_connection_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsApplicationIdConnectionsConnectionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsApplicationIdConnectionsConnectionId unit test stubs
- Remove connection # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/test_post.py b/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/test_post.py
deleted file mode 100644
index 8b603f4f..00000000
--- a/test/test_paths/test_api_v1_applications_application_id_connections_connection_id/test_post.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_applications_application_id_connections_connection_id import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ApplicationsApplicationIdConnectionsConnectionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ApplicationsApplicationIdConnectionsConnectionId unit test stubs
- Enable connection # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
- response_body = ''
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_business/__init__.py b/test/test_paths/test_api_v1_business/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_business/test_get.py b/test/test_paths/test_api_v1_business/test_get.py
deleted file mode 100644
index 16607320..00000000
--- a/test/test_paths/test_api_v1_business/test_get.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_business import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Business(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Business unit test stubs
- List business details # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_business/test_patch.py b/test/test_paths/test_api_v1_business/test_patch.py
deleted file mode 100644
index ff2c6949..00000000
--- a/test/test_paths/test_api_v1_business/test_patch.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_business import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Business(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Business unit test stubs
- Update business details # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connected_apps_auth_url/__init__.py b/test/test_paths/test_api_v1_connected_apps_auth_url/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_connected_apps_auth_url/test_get.py b/test/test_paths/test_api_v1_connected_apps_auth_url/test_get.py
deleted file mode 100644
index 8c1d11c5..00000000
--- a/test/test_paths/test_api_v1_connected_apps_auth_url/test_get.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connected_apps_auth_url import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ConnectedAppsAuthUrl(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ConnectedAppsAuthUrl unit test stubs
- Get Connected App URL # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True, query_params={"key_code_ref": "", "user_id": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connected_apps_revoke/__init__.py b/test/test_paths/test_api_v1_connected_apps_revoke/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_connected_apps_revoke/test_post.py b/test/test_paths/test_api_v1_connected_apps_revoke/test_post.py
deleted file mode 100644
index a0d9b066..00000000
--- a/test/test_paths/test_api_v1_connected_apps_revoke/test_post.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connected_apps_revoke import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ConnectedAppsRevoke(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ConnectedAppsRevoke unit test stubs
- Revoke Connected App Token # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.post(skip_deserialization=True, query_params={"session_id": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connected_apps_token/__init__.py b/test/test_paths/test_api_v1_connected_apps_token/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_connected_apps_token/test_get.py b/test/test_paths/test_api_v1_connected_apps_token/test_get.py
deleted file mode 100644
index 1194ad6d..00000000
--- a/test/test_paths/test_api_v1_connected_apps_token/test_get.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connected_apps_token import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ConnectedAppsToken(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ConnectedAppsToken unit test stubs
- Get Connected App Token # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True, query_params={"session_id": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connections/__init__.py b/test/test_paths/test_api_v1_connections/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_connections/test_get.py b/test/test_paths/test_api_v1_connections/test_get.py
deleted file mode 100644
index 0eb2b4c1..00000000
--- a/test/test_paths/test_api_v1_connections/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connections import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Connections(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Connections unit test stubs
- List Connections # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connections/test_post.py b/test/test_paths/test_api_v1_connections/test_post.py
deleted file mode 100644
index eaef9232..00000000
--- a/test/test_paths/test_api_v1_connections/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connections import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Connections(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Connections unit test stubs
- Create Connection # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connections_connection_id/__init__.py b/test/test_paths/test_api_v1_connections_connection_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_connections_connection_id/test_delete.py b/test/test_paths/test_api_v1_connections_connection_id/test_delete.py
deleted file mode 100644
index b58b9d79..00000000
--- a/test/test_paths/test_api_v1_connections_connection_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connections_connection_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ConnectionsConnectionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ConnectionsConnectionId unit test stubs
- Delete Connection # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connections_connection_id/test_get.py b/test/test_paths/test_api_v1_connections_connection_id/test_get.py
deleted file mode 100644
index 022694ab..00000000
--- a/test/test_paths/test_api_v1_connections_connection_id/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connections_connection_id import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ConnectionsConnectionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ConnectionsConnectionId unit test stubs
- Get Connection # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_connections_connection_id/test_patch.py b/test/test_paths/test_api_v1_connections_connection_id/test_patch.py
deleted file mode 100644
index 7e5e7321..00000000
--- a/test/test_paths/test_api_v1_connections_connection_id/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_connections_connection_id import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1ConnectionsConnectionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1ConnectionsConnectionId unit test stubs
- Update Connection # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_environment_feature_flags/__init__.py b/test/test_paths/test_api_v1_environment_feature_flags/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_environment_feature_flags/test_delete.py b/test/test_paths/test_api_v1_environment_feature_flags/test_delete.py
deleted file mode 100644
index bf526542..00000000
--- a/test/test_paths/test_api_v1_environment_feature_flags/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_environment_feature_flags import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EnvironmentFeatureFlags(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EnvironmentFeatureFlags unit test stubs
- Delete Environment Feature Flag Overrides # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_environment_feature_flags/test_get.py b/test/test_paths/test_api_v1_environment_feature_flags/test_get.py
deleted file mode 100644
index 4706bc5d..00000000
--- a/test/test_paths/test_api_v1_environment_feature_flags/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_environment_feature_flags import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EnvironmentFeatureFlags(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EnvironmentFeatureFlags unit test stubs
- List Environment Feature Flags # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_environment_feature_flags_/test_delete.py b/test/test_paths/test_api_v1_environment_feature_flags_/test_delete.py
deleted file mode 100644
index 85dd06d3..00000000
--- a/test/test_paths/test_api_v1_environment_feature_flags_/test_delete.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_environment_feature_flags_ import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EnvironmentFeatureFlags(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EnvironmentFeatureFlags unit test stubs
- Delete all environment feature flag overrides # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.delete(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/__init__.py b/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_delete.py b/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_delete.py
deleted file mode 100644
index 77505502..00000000
--- a/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_delete.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_environment_feature_flags_feature_flag_key import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EnvironmentFeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EnvironmentFeatureFlagsFeatureFlagKey unit test stubs
- Delete environment feature flag override # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.delete(skip_deserialization=True, path_params={"feature_flag_key": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_patch.py b/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_patch.py
deleted file mode 100644
index 8c030aec..00000000
--- a/test/test_paths/test_api_v1_environment_feature_flags_feature_flag_key/test_patch.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_environment_feature_flags_feature_flag_key import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EnvironmentFeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EnvironmentFeatureFlagsFeatureFlagKey unit test stubs
- Update environment feature flag override # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_event_types/__init__.py b/test/test_paths/test_api_v1_event_types/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_event_types/test_get.py b/test/test_paths/test_api_v1_event_types/test_get.py
deleted file mode 100644
index 02e20d88..00000000
--- a/test/test_paths/test_api_v1_event_types/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_event_types import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EventTypes(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EventTypes unit test stubs
- List Event Types # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_events_event_id/__init__.py b/test/test_paths/test_api_v1_events_event_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_events_event_id/test_get.py b/test/test_paths/test_api_v1_events_event_id/test_get.py
deleted file mode 100644
index 4d7c04f4..00000000
--- a/test/test_paths/test_api_v1_events_event_id/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_events_event_id import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1EventsEventId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1EventsEventId unit test stubs
- Get Event # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_feature_flags/__init__.py b/test/test_paths/test_api_v1_feature_flags/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_feature_flags/test_post.py b/test/test_paths/test_api_v1_feature_flags/test_post.py
deleted file mode 100644
index 860fd9fb..00000000
--- a/test/test_paths/test_api_v1_feature_flags/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_feature_flags import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1FeatureFlags(ApiTestMixin, unittest.TestCase):
- """
- ApiV1FeatureFlags unit test stubs
- Create a new feature flag # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_feature_flags_feature_flag_key/__init__.py b/test/test_paths/test_api_v1_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_delete.py b/test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_delete.py
deleted file mode 100644
index f2eac070..00000000
--- a/test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_delete.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_feature_flags_feature_flag_key import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1FeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1FeatureFlagsFeatureFlagKey unit test stubs
- Delete a feature flag # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.delete(skip_deserialization=True, path_params={"feature_flag_key": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_put.py b/test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_put.py
deleted file mode 100644
index f0985760..00000000
--- a/test/test_paths/test_api_v1_feature_flags_feature_flag_key/test_put.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_feature_flags_feature_flag_key import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1FeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1FeatureFlagsFeatureFlagKey unit test stubs
- Update a feature flag # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_industries/__init__.py b/test/test_paths/test_api_v1_industries/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_industries/test_get.py b/test/test_paths/test_api_v1_industries/test_get.py
deleted file mode 100644
index d7631522..00000000
--- a/test/test_paths/test_api_v1_industries/test_get.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_industries import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Industries(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Industries unit test stubs
- List industries and industry keys. # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization/__init__.py b/test/test_paths/test_api_v1_organization/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organization/test_get.py b/test/test_paths/test_api_v1_organization/test_get.py
deleted file mode 100644
index 07ce1b4e..00000000
--- a/test/test_paths/test_api_v1_organization/test_get.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organization import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Organization(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Organization unit test stubs
- Get Organization # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization/test_post.py b/test/test_paths/test_api_v1_organization/test_post.py
deleted file mode 100644
index 2a06ee29..00000000
--- a/test/test_paths/test_api_v1_organization/test_post.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organization import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Organization(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Organization unit test stubs
- Create Organization # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.post(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 201
- response_body = ''
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization_org_code/__init__.py b/test/test_paths/test_api_v1_organization_org_code/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organization_org_code/test_delete.py b/test/test_paths/test_api_v1_organization_org_code/test_delete.py
deleted file mode 100644
index f554f04a..00000000
--- a/test/test_paths/test_api_v1_organization_org_code/test_delete.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organization_org_code import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationOrgCode(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationOrgCode unit test stubs
- Delete Organization # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
- response_body = ''
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization_org_code/test_patch.py b/test/test_paths/test_api_v1_organization_org_code/test_patch.py
deleted file mode 100644
index 6c7c69c7..00000000
--- a/test/test_paths/test_api_v1_organization_org_code/test_patch.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organization_org_code import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationOrgCode(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationOrgCode unit test stubs
- Update Organization # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization_org_code_handle/__init__.py b/test/test_paths/test_api_v1_organization_org_code_handle/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organization_org_code_handle/test_delete.py b/test/test_paths/test_api_v1_organization_org_code_handle/test_delete.py
deleted file mode 100644
index 08b0b665..00000000
--- a/test/test_paths/test_api_v1_organization_org_code_handle/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organization_org_code_handle import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationOrgCodeHandle(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationOrgCodeHandle unit test stubs
- Delete organization handle # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization_users/__init__.py b/test/test_paths/test_api_v1_organization_users/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organization_users/test_get.py b/test/test_paths/test_api_v1_organization_users/test_get.py
deleted file mode 100644
index 5c905cd8..00000000
--- a/test/test_paths/test_api_v1_organization_users/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationUsers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationUsers unit test stubs
- List Organization Users # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization_users/test_patch.py b/test/test_paths/test_api_v1_organization_users/test_patch.py
deleted file mode 100644
index 6e63e70d..00000000
--- a/test/test_paths/test_api_v1_organization_users/test_patch.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationUsers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationUsers unit test stubs
- Remove Users from an Organization # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organization_users/test_post.py b/test/test_paths/test_api_v1_organization_users/test_post.py
deleted file mode 100644
index d4d4965b..00000000
--- a/test/test_paths/test_api_v1_organization_users/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationUsers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationUsers unit test stubs
- Assign Users to an Organization # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations/__init__.py b/test/test_paths/test_api_v1_organizations/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations/test_get.py b/test/test_paths/test_api_v1_organizations/test_get.py
deleted file mode 100644
index 7480557e..00000000
--- a/test/test_paths/test_api_v1_organizations/test_get.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Organizations(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Organizations unit test stubs
- List Organizations # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_feature_flags/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_feature_flags/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_delete.py b/test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_delete.py
deleted file mode 100644
index 51aaa27d..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_delete.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_feature_flags import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeFeatureFlags(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeFeatureFlags unit test stubs
- Delete all organization feature flag overrides # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.delete(skip_deserialization=True, path_params={"org_code": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_get.py b/test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_get.py
deleted file mode 100644
index c5de319b..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_feature_flags/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_feature_flags import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeFeatureFlags(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeFeatureFlags unit test stubs
- List Organization Feature Flags # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_delete.py b/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_delete.py
deleted file mode 100644
index 02670190..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_delete.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_feature_flags_feature_flag_key import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeFeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeFeatureFlagsFeatureFlagKey unit test stubs
- Delete organization feature flag override # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.delete(skip_deserialization=True, path_params={"feature_flag_key": "", "org_code": ""})
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_patch.py b/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_patch.py
deleted file mode 100644
index 096d2036..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_feature_flags_feature_flag_key/test_patch.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_feature_flags_feature_flag_key import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeFeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeFeatureFlagsFeatureFlagKey unit test stubs
- Update organization feature flag override # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_properties/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_properties/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_properties/test_get.py b/test/test_paths/test_api_v1_organizations_org_code_properties/test_get.py
deleted file mode 100644
index 4e96d507..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_properties/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_properties import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeProperties(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeProperties unit test stubs
- Get Organization Property Values # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_properties/test_patch.py b/test/test_paths/test_api_v1_organizations_org_code_properties/test_patch.py
deleted file mode 100644
index 7a334421..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_properties/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_properties import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeProperties(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeProperties unit test stubs
- Update Organization Property values # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_properties_property_key/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_properties_property_key/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_properties_property_key/test_put.py b/test/test_paths/test_api_v1_organizations_org_code_properties_property_key/test_put.py
deleted file mode 100644
index b2e88e39..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_properties_property_key/test_put.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_properties_property_key import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodePropertiesPropertyKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodePropertiesPropertyKey unit test stubs
- Update Organization Property value # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_users/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users/test_get.py b/test/test_paths/test_api_v1_organizations_org_code_users/test_get.py
deleted file mode 100644
index bb9ad036..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsers unit test stubs
- List Organization Users # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users/test_patch.py b/test/test_paths/test_api_v1_organizations_org_code_users/test_patch.py
deleted file mode 100644
index 6e1b10f0..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users/test_patch.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsers unit test stubs
- Update Organization Users # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users/test_post.py b/test/test_paths/test_api_v1_organizations_org_code_users/test_post.py
deleted file mode 100644
index cc876e26..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsers unit test stubs
- Add Organization Users # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id/test_delete.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id/test_delete.py
deleted file mode 100644
index 2815aa1e..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserId unit test stubs
- Remove Organization User # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/test_get.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/test_get.py
deleted file mode 100644
index ded00f6d..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_permissions import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserIdPermissions(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserIdPermissions unit test stubs
- List Organization User Permissions # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/test_post.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/test_post.py
deleted file mode 100644
index ad72b402..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_permissions import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserIdPermissions(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserIdPermissions unit test stubs
- Add Organization User Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions_permission_id/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions_permission_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions_permission_id/test_delete.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions_permission_id/test_delete.py
deleted file mode 100644
index 8dff8a92..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_permissions_permission_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_permissions_permission_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserIdPermissionsPermissionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserIdPermissionsPermissionId unit test stubs
- Delete Organization User Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/test_get.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/test_get.py
deleted file mode 100644
index c69b1321..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_roles import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserIdRoles(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserIdRoles unit test stubs
- List Organization User Roles # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/test_post.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/test_post.py
deleted file mode 100644
index 1d37a316..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_roles import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserIdRoles(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserIdRoles unit test stubs
- Add Organization User Role # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles_role_id/__init__.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles_role_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles_role_id/test_delete.py b/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles_role_id/test_delete.py
deleted file mode 100644
index 37d02a83..00000000
--- a/test/test_paths/test_api_v1_organizations_org_code_users_user_id_roles_role_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_organizations_org_code_users_user_id_roles_role_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1OrganizationsOrgCodeUsersUserIdRolesRoleId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1OrganizationsOrgCodeUsersUserIdRolesRoleId unit test stubs
- Delete Organization User Role # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_permissions/__init__.py b/test/test_paths/test_api_v1_permissions/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_permissions/test_get.py b/test/test_paths/test_api_v1_permissions/test_get.py
deleted file mode 100644
index df294a63..00000000
--- a/test/test_paths/test_api_v1_permissions/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_permissions import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Permissions(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Permissions unit test stubs
- List Permissions # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_permissions/test_post.py b/test/test_paths/test_api_v1_permissions/test_post.py
deleted file mode 100644
index b6cf42fe..00000000
--- a/test/test_paths/test_api_v1_permissions/test_post.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_permissions import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Permissions(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Permissions unit test stubs
- Create Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_permissions_permission_id/__init__.py b/test/test_paths/test_api_v1_permissions_permission_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_permissions_permission_id/test_delete.py b/test/test_paths/test_api_v1_permissions_permission_id/test_delete.py
deleted file mode 100644
index 095c25e8..00000000
--- a/test/test_paths/test_api_v1_permissions_permission_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_permissions_permission_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PermissionsPermissionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PermissionsPermissionId unit test stubs
- Delete Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_permissions_permission_id/test_patch.py b/test/test_paths/test_api_v1_permissions_permission_id/test_patch.py
deleted file mode 100644
index db7c3417..00000000
--- a/test/test_paths/test_api_v1_permissions_permission_id/test_patch.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_permissions_permission_id import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PermissionsPermissionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PermissionsPermissionId unit test stubs
- Update Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_properties/__init__.py b/test/test_paths/test_api_v1_properties/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_properties/test_get.py b/test/test_paths/test_api_v1_properties/test_get.py
deleted file mode 100644
index e64d7958..00000000
--- a/test/test_paths/test_api_v1_properties/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_properties import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Properties(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Properties unit test stubs
- List properties # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_properties/test_post.py b/test/test_paths/test_api_v1_properties/test_post.py
deleted file mode 100644
index 78736fe9..00000000
--- a/test/test_paths/test_api_v1_properties/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_properties import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Properties(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Properties unit test stubs
- Create Property # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_properties_property_id/__init__.py b/test/test_paths/test_api_v1_properties_property_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_properties_property_id/test_delete.py b/test/test_paths/test_api_v1_properties_property_id/test_delete.py
deleted file mode 100644
index 2982c192..00000000
--- a/test/test_paths/test_api_v1_properties_property_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_properties_property_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PropertiesPropertyId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PropertiesPropertyId unit test stubs
- Delete Property # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_properties_property_id/test_put.py b/test/test_paths/test_api_v1_properties_property_id/test_put.py
deleted file mode 100644
index b6774759..00000000
--- a/test/test_paths/test_api_v1_properties_property_id/test_put.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_properties_property_id import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PropertiesPropertyId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PropertiesPropertyId unit test stubs
- Update Property # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_property_categories/__init__.py b/test/test_paths/test_api_v1_property_categories/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_property_categories/test_get.py b/test/test_paths/test_api_v1_property_categories/test_get.py
deleted file mode 100644
index 9046eafb..00000000
--- a/test/test_paths/test_api_v1_property_categories/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_property_categories import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PropertyCategories(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PropertyCategories unit test stubs
- List categories # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_property_categories/test_post.py b/test/test_paths/test_api_v1_property_categories/test_post.py
deleted file mode 100644
index 9cf10fa1..00000000
--- a/test/test_paths/test_api_v1_property_categories/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_property_categories import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PropertyCategories(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PropertyCategories unit test stubs
- Create Category # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_property_categories_category_id/__init__.py b/test/test_paths/test_api_v1_property_categories_category_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_property_categories_category_id/test_put.py b/test/test_paths/test_api_v1_property_categories_category_id/test_put.py
deleted file mode 100644
index c9fc01eb..00000000
--- a/test/test_paths/test_api_v1_property_categories_category_id/test_put.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_property_categories_category_id import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1PropertyCategoriesCategoryId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1PropertyCategoriesCategoryId unit test stubs
- Update Category # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_role/__init__.py b/test/test_paths/test_api_v1_role/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_role/test_post.py b/test/test_paths/test_api_v1_role/test_post.py
deleted file mode 100644
index 00125a41..00000000
--- a/test/test_paths/test_api_v1_role/test_post.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_role import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Role(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Role unit test stubs
- Create Role # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles/__init__.py b/test/test_paths/test_api_v1_roles/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_roles/test_get.py b/test/test_paths/test_api_v1_roles/test_get.py
deleted file mode 100644
index 10ca2f55..00000000
--- a/test/test_paths/test_api_v1_roles/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Roles(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Roles unit test stubs
- List Roles # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles/test_post.py b/test/test_paths/test_api_v1_roles/test_post.py
deleted file mode 100644
index 039c25ef..00000000
--- a/test/test_paths/test_api_v1_roles/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Roles(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Roles unit test stubs
- Create Role # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles_role_id/__init__.py b/test/test_paths/test_api_v1_roles_role_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_roles_role_id/test_delete.py b/test/test_paths/test_api_v1_roles_role_id/test_delete.py
deleted file mode 100644
index 04e8197b..00000000
--- a/test/test_paths/test_api_v1_roles_role_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles_role_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1RolesRoleId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1RolesRoleId unit test stubs
- Delete Role # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles_role_id/test_patch.py b/test/test_paths/test_api_v1_roles_role_id/test_patch.py
deleted file mode 100644
index cdb706ab..00000000
--- a/test/test_paths/test_api_v1_roles_role_id/test_patch.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles_role_id import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1RolesRoleId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1RolesRoleId unit test stubs
- Update Role # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles_role_id_permission_permission_id/__init__.py b/test/test_paths/test_api_v1_roles_role_id_permission_permission_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_roles_role_id_permission_permission_id/test_delete.py b/test/test_paths/test_api_v1_roles_role_id_permission_permission_id/test_delete.py
deleted file mode 100644
index 5d41dc29..00000000
--- a/test/test_paths/test_api_v1_roles_role_id_permission_permission_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles_role_id_permission_permission_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1RolesRoleIdPermissionPermissionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1RolesRoleIdPermissionPermissionId unit test stubs
- Remove Role Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles_role_id_permissions/__init__.py b/test/test_paths/test_api_v1_roles_role_id_permissions/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_roles_role_id_permissions/test_get.py b/test/test_paths/test_api_v1_roles_role_id_permissions/test_get.py
deleted file mode 100644
index 6a753735..00000000
--- a/test/test_paths/test_api_v1_roles_role_id_permissions/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles_role_id_permissions import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1RolesRoleIdPermissions(ApiTestMixin, unittest.TestCase):
- """
- ApiV1RolesRoleIdPermissions unit test stubs
- Get Role Permissions # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles_role_id_permissions/test_patch.py b/test/test_paths/test_api_v1_roles_role_id_permissions/test_patch.py
deleted file mode 100644
index fe8a973d..00000000
--- a/test/test_paths/test_api_v1_roles_role_id_permissions/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles_role_id_permissions import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1RolesRoleIdPermissions(ApiTestMixin, unittest.TestCase):
- """
- ApiV1RolesRoleIdPermissions unit test stubs
- Update Role Permissions # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_roles_role_id_permissions_permission_id/__init__.py b/test/test_paths/test_api_v1_roles_role_id_permissions_permission_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_roles_role_id_permissions_permission_id/test_delete.py b/test/test_paths/test_api_v1_roles_role_id_permissions_permission_id/test_delete.py
deleted file mode 100644
index 8d60f5fd..00000000
--- a/test/test_paths/test_api_v1_roles_role_id_permissions_permission_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_roles_role_id_permissions_permission_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1RolesRoleIdPermissionsPermissionId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1RolesRoleIdPermissionsPermissionId unit test stubs
- Remove Role Permission # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_subscribers/__init__.py b/test/test_paths/test_api_v1_subscribers/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_subscribers/test_get.py b/test/test_paths/test_api_v1_subscribers/test_get.py
deleted file mode 100644
index 39f01d73..00000000
--- a/test/test_paths/test_api_v1_subscribers/test_get.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_subscribers import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Subscribers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Subscribers unit test stubs
- List Subscribers # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_subscribers/test_post.py b/test/test_paths/test_api_v1_subscribers/test_post.py
deleted file mode 100644
index 7218dbc0..00000000
--- a/test/test_paths/test_api_v1_subscribers/test_post.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_subscribers import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Subscribers(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Subscribers unit test stubs
- Create Subscriber # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_subscribers_subscriber_id/__init__.py b/test/test_paths/test_api_v1_subscribers_subscriber_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_subscribers_subscriber_id/test_get.py b/test/test_paths/test_api_v1_subscribers_subscriber_id/test_get.py
deleted file mode 100644
index b89b2be3..00000000
--- a/test/test_paths/test_api_v1_subscribers_subscriber_id/test_get.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_subscribers_subscriber_id import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1SubscribersSubscriberId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1SubscribersSubscriberId unit test stubs
- Get Subscriber # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_timezones/__init__.py b/test/test_paths/test_api_v1_timezones/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_timezones/test_get.py b/test/test_paths/test_api_v1_timezones/test_get.py
deleted file mode 100644
index 1031add2..00000000
--- a/test/test_paths/test_api_v1_timezones/test_get.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_timezones import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Timezones(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Timezones unit test stubs
- List timezones and timezone IDs. # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 201
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_user/__init__.py b/test/test_paths/test_api_v1_user/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_user/test_delete.py b/test/test_paths/test_api_v1_user/test_delete.py
deleted file mode 100644
index 99adf526..00000000
--- a/test/test_paths/test_api_v1_user/test_delete.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_user import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1User(ApiTestMixin, unittest.TestCase):
- """
- ApiV1User unit test stubs
- Delete User # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.delete(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_user/test_get.py b/test/test_paths/test_api_v1_user/test_get.py
deleted file mode 100644
index 081d1c28..00000000
--- a/test/test_paths/test_api_v1_user/test_get.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_user import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1User(ApiTestMixin, unittest.TestCase):
- """
- ApiV1User unit test stubs
- Get User # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_user/test_patch.py b/test/test_paths/test_api_v1_user/test_patch.py
deleted file mode 100644
index 2f880d00..00000000
--- a/test/test_paths/test_api_v1_user/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_user import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1User(ApiTestMixin, unittest.TestCase):
- """
- ApiV1User unit test stubs
- Update User # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_user/test_post.py b/test/test_paths/test_api_v1_user/test_post.py
deleted file mode 100644
index ee5c8066..00000000
--- a/test/test_paths/test_api_v1_user/test_post.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_user import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1User(ApiTestMixin, unittest.TestCase):
- """
- ApiV1User unit test stubs
- Create User # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.post(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users/__init__.py b/test/test_paths/test_api_v1_users/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_users/test_get.py b/test/test_paths/test_api_v1_users/test_get.py
deleted file mode 100644
index 0ccbb024..00000000
--- a/test/test_paths/test_api_v1_users/test_get.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Users(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Users unit test stubs
- List Users # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True)
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users_user_id_feature_flags_feature_flag_key/__init__.py b/test/test_paths/test_api_v1_users_user_id_feature_flags_feature_flag_key/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_users_user_id_feature_flags_feature_flag_key/test_patch.py b/test/test_paths/test_api_v1_users_user_id_feature_flags_feature_flag_key/test_patch.py
deleted file mode 100644
index 7e742f57..00000000
--- a/test/test_paths/test_api_v1_users_user_id_feature_flags_feature_flag_key/test_patch.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users_user_id_feature_flags_feature_flag_key import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1UsersUserIdFeatureFlagsFeatureFlagKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1UsersUserIdFeatureFlagsFeatureFlagKey unit test stubs
- Update User Feature Flag Override # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users_user_id_password/__init__.py b/test/test_paths/test_api_v1_users_user_id_password/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_users_user_id_password/test_put.py b/test/test_paths/test_api_v1_users_user_id_password/test_put.py
deleted file mode 100644
index 563c36f5..00000000
--- a/test/test_paths/test_api_v1_users_user_id_password/test_put.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users_user_id_password import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1UsersUserIdPassword(ApiTestMixin, unittest.TestCase):
- """
- ApiV1UsersUserIdPassword unit test stubs
- Set User password # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users_user_id_properties/__init__.py b/test/test_paths/test_api_v1_users_user_id_properties/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_users_user_id_properties/test_get.py b/test/test_paths/test_api_v1_users_user_id_properties/test_get.py
deleted file mode 100644
index 321046c4..00000000
--- a/test/test_paths/test_api_v1_users_user_id_properties/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users_user_id_properties import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1UsersUserIdProperties(ApiTestMixin, unittest.TestCase):
- """
- ApiV1UsersUserIdProperties unit test stubs
- Get property values # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users_user_id_properties/test_patch.py b/test/test_paths/test_api_v1_users_user_id_properties/test_patch.py
deleted file mode 100644
index 90c9a172..00000000
--- a/test/test_paths/test_api_v1_users_user_id_properties/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users_user_id_properties import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1UsersUserIdProperties(ApiTestMixin, unittest.TestCase):
- """
- ApiV1UsersUserIdProperties unit test stubs
- Update Property values # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users_user_id_properties_property_key/__init__.py b/test/test_paths/test_api_v1_users_user_id_properties_property_key/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_users_user_id_properties_property_key/test_put.py b/test/test_paths/test_api_v1_users_user_id_properties_property_key/test_put.py
deleted file mode 100644
index 9f0772a3..00000000
--- a/test/test_paths/test_api_v1_users_user_id_properties_property_key/test_put.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users_user_id_properties_property_key import put # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1UsersUserIdPropertiesPropertyKey(ApiTestMixin, unittest.TestCase):
- """
- ApiV1UsersUserIdPropertiesPropertyKey unit test stubs
- Update Property value # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = put.ApiForput(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_users_user_id_refresh_claims/__init__.py b/test/test_paths/test_api_v1_users_user_id_refresh_claims/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_users_user_id_refresh_claims/test_post.py b/test/test_paths/test_api_v1_users_user_id_refresh_claims/test_post.py
deleted file mode 100644
index 6606e60c..00000000
--- a/test/test_paths/test_api_v1_users_user_id_refresh_claims/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_users_user_id_refresh_claims import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1UsersUserIdRefreshClaims(ApiTestMixin, unittest.TestCase):
- """
- ApiV1UsersUserIdRefreshClaims unit test stubs
- Refresh User Claims and Invalidate Cache # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_webhooks/__init__.py b/test/test_paths/test_api_v1_webhooks/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_webhooks/test_get.py b/test/test_paths/test_api_v1_webhooks/test_get.py
deleted file mode 100644
index 0613f73e..00000000
--- a/test/test_paths/test_api_v1_webhooks/test_get.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_webhooks import get # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Webhooks(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Webhooks unit test stubs
- List Webhooks # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_webhooks/test_patch.py b/test/test_paths/test_api_v1_webhooks/test_patch.py
deleted file mode 100644
index db7590ed..00000000
--- a/test/test_paths/test_api_v1_webhooks/test_patch.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_webhooks import patch # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Webhooks(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Webhooks unit test stubs
- Update a Webhook # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_webhooks/test_post.py b/test/test_paths/test_api_v1_webhooks/test_post.py
deleted file mode 100644
index 90d94e16..00000000
--- a/test/test_paths/test_api_v1_webhooks/test_post.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_webhooks import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1Webhooks(ApiTestMixin, unittest.TestCase):
- """
- ApiV1Webhooks unit test stubs
- Create a Webhook # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_api_v1_webhooks_webhook_id/__init__.py b/test/test_paths/test_api_v1_webhooks_webhook_id/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_api_v1_webhooks_webhook_id/test_delete.py b/test/test_paths/test_api_v1_webhooks_webhook_id/test_delete.py
deleted file mode 100644
index d0a875a2..00000000
--- a/test/test_paths/test_api_v1_webhooks_webhook_id/test_delete.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.api_v1_webhooks_webhook_id import delete # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestApiV1WebhooksWebhookId(ApiTestMixin, unittest.TestCase):
- """
- ApiV1WebhooksWebhookId unit test stubs
- Delete Webhook # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_oauth2_introspect/__init__.py b/test/test_paths/test_oauth2_introspect/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_oauth2_introspect/test_post.py b/test/test_paths/test_oauth2_introspect/test_post.py
deleted file mode 100644
index debb4547..00000000
--- a/test/test_paths/test_oauth2_introspect/test_post.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.oauth2_introspect import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestOauth2Introspect(ApiTestMixin, unittest.TestCase):
- """
- Oauth2Introspect unit test stubs
- Get token details # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
-
-
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_oauth2_revoke/__init__.py b/test/test_paths/test_oauth2_revoke/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_oauth2_revoke/test_post.py b/test/test_paths/test_oauth2_revoke/test_post.py
deleted file mode 100644
index f59df133..00000000
--- a/test/test_paths/test_oauth2_revoke/test_post.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.oauth2_revoke import post # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-
-from .. import ApiTestMixin
-
-
-class TestOauth2Revoke(ApiTestMixin, unittest.TestCase):
- """
- Oauth2Revoke unit test stubs
- Revoke token # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- response_status = 200
- response_body = ''
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_oauth2_user_profile/__init__.py b/test/test_paths/test_oauth2_user_profile/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_oauth2_user_profile/test_get.py b/test/test_paths/test_oauth2_user_profile/test_get.py
deleted file mode 100644
index fc3c91d8..00000000
--- a/test/test_paths/test_oauth2_user_profile/test_get.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.oauth2_user_profile import get, path # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestOauth2UserProfile(ApiTestMixin, unittest.TestCase):
- """
- Oauth2UserProfile unit test stubs
- Returns the details of the currently logged in user # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True)
-
- self.assert_pool_manager_request_called_with(
- mock_request,
- f"https://app.kinde.com{path}",
- body=None,
- method='GET',
- content_type=None,
- accept_content_type='application/json',
- headers={"Authorization": f"Bearer {self._configuration.access_token}"}
- )
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_paths/test_oauth2_v2_user_profile/__init__.py b/test/test_paths/test_oauth2_v2_user_profile/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/test/test_paths/test_oauth2_v2_user_profile/test_get.py b/test/test_paths/test_oauth2_v2_user_profile/test_get.py
deleted file mode 100644
index c3e1d2da..00000000
--- a/test/test_paths/test_oauth2_v2_user_profile/test_get.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import unittest
-from unittest.mock import patch
-
-import urllib3
-
-import kinde_sdk
-from kinde_sdk.paths.oauth2_v2_user_profile import get, path # noqa: E501
-from kinde_sdk import configuration, schemas, api_client
-from kinde_sdk.test.test_kinde_api_client import TestKindeApiClientAuthorizationCode
-
-from .. import ApiTestMixin
-
-
-class TestOauth2V2UserProfile(ApiTestMixin, unittest.TestCase):
- """
- Oauth2V2UserProfile unit test stubs
- Returns the details of the currently logged in user # noqa: E501
- """
- _configuration = configuration.Configuration()
-
- def setUp(self):
- kinde_api_client = TestKindeApiClientAuthorizationCode()
- kinde_api_client.setUp()
- self._configuration.access_token = kinde_api_client.fake_access_token
- used_api_client = api_client.ApiClient(configuration=self._configuration)
- self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
-
- def tearDown(self):
- pass
-
- @patch.object(urllib3.PoolManager, 'request')
- def test_oauth2_v2_user_profile(self, mock_request):
- mock_request.return_value = self.response(b'')
- api_response = self.api.get(skip_deserialization=True)
-
- self.assert_pool_manager_request_called_with(
- mock_request,
- f"https://app.kinde.com{path}",
- body=None,
- method='GET',
- content_type=None,
- accept_content_type='application/json',
- headers={"Authorization": f"Bearer {self._configuration.access_token}"}
- )
-
- assert isinstance(api_response.response, urllib3.HTTPResponse)
- assert isinstance(api_response.body, schemas.Unset)
- assert isinstance(api_response.headers, schemas.Unset)
- assert api_response.response.status == 200
-
- response_status = 200
-
-
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_permissions.py b/test/test_permissions.py
new file mode 100644
index 00000000..43be03d7
--- /dev/null
+++ b/test/test_permissions.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.permissions import Permissions
+
+class TestPermissions(unittest.TestCase):
+ """Permissions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Permissions:
+ """Test Permissions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Permissions`
+ """
+ model = Permissions()
+ if include_optional:
+ return Permissions(
+ id = '',
+ key = '',
+ name = '',
+ description = ''
+ )
+ else:
+ return Permissions(
+ )
+ """
+
+ def testPermissions(self):
+ """Test Permissions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_permissions_api.py b/test/test_permissions_api.py
new file mode 100644
index 00000000..ba5e0521
--- /dev/null
+++ b/test/test_permissions_api.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.permissions_api import PermissionsApi
+
+
+class TestPermissionsApi(unittest.TestCase):
+ """PermissionsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = PermissionsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_permission(self) -> None:
+ """Test case for create_permission
+
+ Create Permission
+ """
+ pass
+
+ def test_delete_permission(self) -> None:
+ """Test case for delete_permission
+
+ Delete Permission
+ """
+ pass
+
+ def test_get_permissions(self) -> None:
+ """Test case for get_permissions
+
+ List Permissions
+ """
+ pass
+
+ def test_get_user_permissions(self) -> None:
+ """Test case for get_user_permissions
+
+ Get permissions
+ """
+ pass
+
+ def test_update_permissions(self) -> None:
+ """Test case for update_permissions
+
+ Update Permission
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_properties_api.py b/test/test_properties_api.py
new file mode 100644
index 00000000..3999dc9e
--- /dev/null
+++ b/test/test_properties_api.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.properties_api import PropertiesApi
+
+
+class TestPropertiesApi(unittest.TestCase):
+ """PropertiesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = PropertiesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_property(self) -> None:
+ """Test case for create_property
+
+ Create Property
+ """
+ pass
+
+ def test_delete_property(self) -> None:
+ """Test case for delete_property
+
+ Delete Property
+ """
+ pass
+
+ def test_get_properties(self) -> None:
+ """Test case for get_properties
+
+ List properties
+ """
+ pass
+
+ def test_get_user_properties(self) -> None:
+ """Test case for get_user_properties
+
+ Get properties
+ """
+ pass
+
+ def test_update_property(self) -> None:
+ """Test case for update_property
+
+ Update Property
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_property_categories_api.py b/test/test_property_categories_api.py
new file mode 100644
index 00000000..91b345ec
--- /dev/null
+++ b/test/test_property_categories_api.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.property_categories_api import PropertyCategoriesApi
+
+
+class TestPropertyCategoriesApi(unittest.TestCase):
+ """PropertyCategoriesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = PropertyCategoriesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_category(self) -> None:
+ """Test case for create_category
+
+ Create Category
+ """
+ pass
+
+ def test_get_categories(self) -> None:
+ """Test case for get_categories
+
+ List categories
+ """
+ pass
+
+ def test_update_category(self) -> None:
+ """Test case for update_category
+
+ Update Category
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_property_value.py b/test/test_property_value.py
new file mode 100644
index 00000000..b085b2ee
--- /dev/null
+++ b/test/test_property_value.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.property_value import PropertyValue
+
+class TestPropertyValue(unittest.TestCase):
+ """PropertyValue unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PropertyValue:
+ """Test PropertyValue
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PropertyValue`
+ """
+ model = PropertyValue()
+ if include_optional:
+ return PropertyValue(
+ id = 'prop_0192b7e8b4f8ca08110d2b22059662a8',
+ name = 'Town',
+ description = 'Where the entity is located',
+ key = 'kp_town',
+ value = 'West-side Staines massive'
+ )
+ else:
+ return PropertyValue(
+ )
+ """
+
+ def testPropertyValue(self):
+ """Test PropertyValue"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_read_env_logo_response.py b/test/test_read_env_logo_response.py
new file mode 100644
index 00000000..c25ce842
--- /dev/null
+++ b/test/test_read_env_logo_response.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.read_env_logo_response import ReadEnvLogoResponse
+
+class TestReadEnvLogoResponse(unittest.TestCase):
+ """ReadEnvLogoResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReadEnvLogoResponse:
+ """Test ReadEnvLogoResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReadEnvLogoResponse`
+ """
+ model = ReadEnvLogoResponse()
+ if include_optional:
+ return ReadEnvLogoResponse(
+ code = 'OK',
+ logos = [
+ kinde_sdk.models.read_env_logo_response_logos_inner.read_env_logo_response_logos_inner(
+ type = 'light',
+ file_name = 'kinde_light.jpeg', )
+ ],
+ message = 'Success'
+ )
+ else:
+ return ReadEnvLogoResponse(
+ )
+ """
+
+ def testReadEnvLogoResponse(self):
+ """Test ReadEnvLogoResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_read_env_logo_response_logos_inner.py b/test/test_read_env_logo_response_logos_inner.py
new file mode 100644
index 00000000..c8c41be2
--- /dev/null
+++ b/test/test_read_env_logo_response_logos_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.read_env_logo_response_logos_inner import ReadEnvLogoResponseLogosInner
+
+class TestReadEnvLogoResponseLogosInner(unittest.TestCase):
+ """ReadEnvLogoResponseLogosInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReadEnvLogoResponseLogosInner:
+ """Test ReadEnvLogoResponseLogosInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReadEnvLogoResponseLogosInner`
+ """
+ model = ReadEnvLogoResponseLogosInner()
+ if include_optional:
+ return ReadEnvLogoResponseLogosInner(
+ type = 'light',
+ file_name = 'kinde_light.jpeg'
+ )
+ else:
+ return ReadEnvLogoResponseLogosInner(
+ )
+ """
+
+ def testReadEnvLogoResponseLogosInner(self):
+ """Test ReadEnvLogoResponseLogosInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_read_logo_response.py b/test/test_read_logo_response.py
new file mode 100644
index 00000000..b3ce6c5b
--- /dev/null
+++ b/test/test_read_logo_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.read_logo_response import ReadLogoResponse
+
+class TestReadLogoResponse(unittest.TestCase):
+ """ReadLogoResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReadLogoResponse:
+ """Test ReadLogoResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReadLogoResponse`
+ """
+ model = ReadLogoResponse()
+ if include_optional:
+ return ReadLogoResponse(
+ code = 'OK',
+ logos = [
+ kinde_sdk.models.read_logo_response_logos_inner.read_logo_response_logos_inner(
+ type = 'light',
+ file_name = 'kinde_light.jpeg',
+ path = '/logo?p_org_code=org_1767f11ce62', )
+ ],
+ message = 'Success'
+ )
+ else:
+ return ReadLogoResponse(
+ )
+ """
+
+ def testReadLogoResponse(self):
+ """Test ReadLogoResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_read_logo_response_logos_inner.py b/test/test_read_logo_response_logos_inner.py
new file mode 100644
index 00000000..4c4e8bae
--- /dev/null
+++ b/test/test_read_logo_response_logos_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.read_logo_response_logos_inner import ReadLogoResponseLogosInner
+
+class TestReadLogoResponseLogosInner(unittest.TestCase):
+ """ReadLogoResponseLogosInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReadLogoResponseLogosInner:
+ """Test ReadLogoResponseLogosInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReadLogoResponseLogosInner`
+ """
+ model = ReadLogoResponseLogosInner()
+ if include_optional:
+ return ReadLogoResponseLogosInner(
+ type = 'light',
+ file_name = 'kinde_light.jpeg',
+ path = '/logo?p_org_code=org_1767f11ce62'
+ )
+ else:
+ return ReadLogoResponseLogosInner(
+ )
+ """
+
+ def testReadLogoResponseLogosInner(self):
+ """Test ReadLogoResponseLogosInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_redirect_callback_urls.py b/test/test_redirect_callback_urls.py
new file mode 100644
index 00000000..6eb37afb
--- /dev/null
+++ b/test/test_redirect_callback_urls.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.redirect_callback_urls import RedirectCallbackUrls
+
+class TestRedirectCallbackUrls(unittest.TestCase):
+ """RedirectCallbackUrls unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> RedirectCallbackUrls:
+ """Test RedirectCallbackUrls
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `RedirectCallbackUrls`
+ """
+ model = RedirectCallbackUrls()
+ if include_optional:
+ return RedirectCallbackUrls(
+ redirect_urls = [
+ ''
+ ]
+ )
+ else:
+ return RedirectCallbackUrls(
+ )
+ """
+
+ def testRedirectCallbackUrls(self):
+ """Test RedirectCallbackUrls"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_connection_request.py b/test/test_replace_connection_request.py
new file mode 100644
index 00000000..872ed3e9
--- /dev/null
+++ b/test/test_replace_connection_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_connection_request import ReplaceConnectionRequest
+
+class TestReplaceConnectionRequest(unittest.TestCase):
+ """ReplaceConnectionRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceConnectionRequest:
+ """Test ReplaceConnectionRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceConnectionRequest`
+ """
+ model = ReplaceConnectionRequest()
+ if include_optional:
+ return ReplaceConnectionRequest(
+ name = 'ConnectionA',
+ display_name = 'Connection',
+ enabled_applications = ["c647dbe20f5944e28af97c9184fded22","20bbffaa4c5e492a962273039d4ae18b"],
+ options = None
+ )
+ else:
+ return ReplaceConnectionRequest(
+ )
+ """
+
+ def testReplaceConnectionRequest(self):
+ """Test ReplaceConnectionRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_connection_request_options.py b/test/test_replace_connection_request_options.py
new file mode 100644
index 00000000..5c2d505f
--- /dev/null
+++ b/test/test_replace_connection_request_options.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_connection_request_options import ReplaceConnectionRequestOptions
+
+class TestReplaceConnectionRequestOptions(unittest.TestCase):
+ """ReplaceConnectionRequestOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceConnectionRequestOptions:
+ """Test ReplaceConnectionRequestOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceConnectionRequestOptions`
+ """
+ model = ReplaceConnectionRequestOptions()
+ if include_optional:
+ return ReplaceConnectionRequestOptions(
+ client_id = 'hji7db2146af332akfldfded22',
+ client_secret = '19fkjdalg521l23fassf3039d4ae18b',
+ is_use_custom_domain = True,
+ home_realm_domains = [@kinde.com, @kinde.io],
+ entra_id_domain = 'kinde.com',
+ is_use_common_endpoint = True,
+ is_sync_user_profile_on_login = True,
+ is_retrieve_provider_user_groups = True,
+ is_extended_attributes_required = True,
+ saml_entity_id = 'https://kinde.com',
+ saml_acs_url = 'https://kinde.com/saml/acs',
+ saml_idp_metadata_url = 'https://kinde.com/saml/metadata',
+ saml_email_key_attr = 'email',
+ saml_first_name_key_attr = 'given_name',
+ saml_last_name_key_attr = 'family_name',
+ is_create_missing_user = True,
+ saml_signing_certificate = '-----BEGIN CERTIFICATE-----
+MIIDdTCCAl2gAwIBAgIEUjZoyDANBgkqhkiG9w0BAQsFADBzMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExEjAQBgNVBAcMCVNhbiBGcmFuYzEXMBUGA1UECgwOQ2xv
+-----END CERTIFICATE-----',
+ saml_signing_private_key = '-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCy5+KLjTzF6tvl
+-----END PRIVATE KEY-----'
+ )
+ else:
+ return ReplaceConnectionRequestOptions(
+ )
+ """
+
+ def testReplaceConnectionRequestOptions(self):
+ """Test ReplaceConnectionRequestOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_connection_request_options_one_of.py b/test/test_replace_connection_request_options_one_of.py
new file mode 100644
index 00000000..7f377d2e
--- /dev/null
+++ b/test/test_replace_connection_request_options_one_of.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_connection_request_options_one_of import ReplaceConnectionRequestOptionsOneOf
+
+class TestReplaceConnectionRequestOptionsOneOf(unittest.TestCase):
+ """ReplaceConnectionRequestOptionsOneOf unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceConnectionRequestOptionsOneOf:
+ """Test ReplaceConnectionRequestOptionsOneOf
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceConnectionRequestOptionsOneOf`
+ """
+ model = ReplaceConnectionRequestOptionsOneOf()
+ if include_optional:
+ return ReplaceConnectionRequestOptionsOneOf(
+ client_id = 'hji7db2146af332akfldfded22',
+ client_secret = '19fkjdalg521l23fassf3039d4ae18b',
+ home_realm_domains = ["@kinde.com","@kinde.io"],
+ entra_id_domain = 'kinde.com',
+ is_use_common_endpoint = True,
+ is_sync_user_profile_on_login = True,
+ is_retrieve_provider_user_groups = True,
+ is_extended_attributes_required = True
+ )
+ else:
+ return ReplaceConnectionRequestOptionsOneOf(
+ )
+ """
+
+ def testReplaceConnectionRequestOptionsOneOf(self):
+ """Test ReplaceConnectionRequestOptionsOneOf"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_connection_request_options_one_of1.py b/test/test_replace_connection_request_options_one_of1.py
new file mode 100644
index 00000000..4587ffd2
--- /dev/null
+++ b/test/test_replace_connection_request_options_one_of1.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_connection_request_options_one_of1 import ReplaceConnectionRequestOptionsOneOf1
+
+class TestReplaceConnectionRequestOptionsOneOf1(unittest.TestCase):
+ """ReplaceConnectionRequestOptionsOneOf1 unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceConnectionRequestOptionsOneOf1:
+ """Test ReplaceConnectionRequestOptionsOneOf1
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceConnectionRequestOptionsOneOf1`
+ """
+ model = ReplaceConnectionRequestOptionsOneOf1()
+ if include_optional:
+ return ReplaceConnectionRequestOptionsOneOf1(
+ home_realm_domains = ["@kinde.com","@kinde.io"],
+ saml_entity_id = 'https://kinde.com',
+ saml_acs_url = 'https://kinde.com/saml/acs',
+ saml_idp_metadata_url = 'https://kinde.com/saml/metadata',
+ saml_email_key_attr = 'email',
+ saml_first_name_key_attr = 'given_name',
+ saml_last_name_key_attr = 'family_name',
+ is_create_missing_user = True,
+ saml_signing_certificate = '-----BEGIN CERTIFICATE-----
+MIIDdTCCAl2gAwIBAgIEUjZoyDANBgkqhkiG9w0BAQsFADBzMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExEjAQBgNVBAcMCVNhbiBGcmFuYzEXMBUGA1UECgwOQ2xv
+-----END CERTIFICATE-----',
+ saml_signing_private_key = '-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCy5+KLjTzF6tvl
+-----END PRIVATE KEY-----'
+ )
+ else:
+ return ReplaceConnectionRequestOptionsOneOf1(
+ )
+ """
+
+ def testReplaceConnectionRequestOptionsOneOf1(self):
+ """Test ReplaceConnectionRequestOptionsOneOf1"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_logout_redirect_urls_request.py b/test/test_replace_logout_redirect_urls_request.py
new file mode 100644
index 00000000..605e2d65
--- /dev/null
+++ b/test/test_replace_logout_redirect_urls_request.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_logout_redirect_urls_request import ReplaceLogoutRedirectURLsRequest
+
+class TestReplaceLogoutRedirectURLsRequest(unittest.TestCase):
+ """ReplaceLogoutRedirectURLsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceLogoutRedirectURLsRequest:
+ """Test ReplaceLogoutRedirectURLsRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceLogoutRedirectURLsRequest`
+ """
+ model = ReplaceLogoutRedirectURLsRequest()
+ if include_optional:
+ return ReplaceLogoutRedirectURLsRequest(
+ urls = [
+ ''
+ ]
+ )
+ else:
+ return ReplaceLogoutRedirectURLsRequest(
+ )
+ """
+
+ def testReplaceLogoutRedirectURLsRequest(self):
+ """Test ReplaceLogoutRedirectURLsRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_mfa_request.py b/test/test_replace_mfa_request.py
new file mode 100644
index 00000000..6158671f
--- /dev/null
+++ b/test/test_replace_mfa_request.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_mfa_request import ReplaceMFARequest
+
+class TestReplaceMFARequest(unittest.TestCase):
+ """ReplaceMFARequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceMFARequest:
+ """Test ReplaceMFARequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceMFARequest`
+ """
+ model = ReplaceMFARequest()
+ if include_optional:
+ return ReplaceMFARequest(
+ policy = 'required',
+ enabled_factors = [
+ 'mfa:email'
+ ]
+ )
+ else:
+ return ReplaceMFARequest(
+ policy = 'required',
+ enabled_factors = [
+ 'mfa:email'
+ ],
+ )
+ """
+
+ def testReplaceMFARequest(self):
+ """Test ReplaceMFARequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_organization_mfa_request.py b/test/test_replace_organization_mfa_request.py
new file mode 100644
index 00000000..8c720a6a
--- /dev/null
+++ b/test/test_replace_organization_mfa_request.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_organization_mfa_request import ReplaceOrganizationMFARequest
+
+class TestReplaceOrganizationMFARequest(unittest.TestCase):
+ """ReplaceOrganizationMFARequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceOrganizationMFARequest:
+ """Test ReplaceOrganizationMFARequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceOrganizationMFARequest`
+ """
+ model = ReplaceOrganizationMFARequest()
+ if include_optional:
+ return ReplaceOrganizationMFARequest(
+ enabled_factors = [
+ 'mfa:email'
+ ]
+ )
+ else:
+ return ReplaceOrganizationMFARequest(
+ enabled_factors = [
+ 'mfa:email'
+ ],
+ )
+ """
+
+ def testReplaceOrganizationMFARequest(self):
+ """Test ReplaceOrganizationMFARequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_replace_redirect_callback_urls_request.py b/test/test_replace_redirect_callback_urls_request.py
new file mode 100644
index 00000000..98b73e70
--- /dev/null
+++ b/test/test_replace_redirect_callback_urls_request.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.replace_redirect_callback_urls_request import ReplaceRedirectCallbackURLsRequest
+
+class TestReplaceRedirectCallbackURLsRequest(unittest.TestCase):
+ """ReplaceRedirectCallbackURLsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ReplaceRedirectCallbackURLsRequest:
+ """Test ReplaceRedirectCallbackURLsRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ReplaceRedirectCallbackURLsRequest`
+ """
+ model = ReplaceRedirectCallbackURLsRequest()
+ if include_optional:
+ return ReplaceRedirectCallbackURLsRequest(
+ urls = [
+ ''
+ ]
+ )
+ else:
+ return ReplaceRedirectCallbackURLsRequest(
+ )
+ """
+
+ def testReplaceRedirectCallbackURLsRequest(self):
+ """Test ReplaceRedirectCallbackURLsRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_role.py b/test/test_role.py
new file mode 100644
index 00000000..78a90255
--- /dev/null
+++ b/test/test_role.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.role import Role
+
+class TestRole(unittest.TestCase):
+ """Role unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Role:
+ """Test Role
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Role`
+ """
+ model = Role()
+ if include_optional:
+ return Role(
+ id = '',
+ key = '',
+ name = '',
+ description = ''
+ )
+ else:
+ return Role(
+ )
+ """
+
+ def testRole(self):
+ """Test Role"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_role_permissions_response.py b/test/test_role_permissions_response.py
new file mode 100644
index 00000000..d7d3c77e
--- /dev/null
+++ b/test/test_role_permissions_response.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.role_permissions_response import RolePermissionsResponse
+
+class TestRolePermissionsResponse(unittest.TestCase):
+ """RolePermissionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> RolePermissionsResponse:
+ """Test RolePermissionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `RolePermissionsResponse`
+ """
+ model = RolePermissionsResponse()
+ if include_optional:
+ return RolePermissionsResponse(
+ code = '',
+ message = '',
+ permissions = [
+ kinde_sdk.models.permissions.permissions(
+ id = '',
+ key = '',
+ name = '',
+ description = '', )
+ ],
+ next_token = ''
+ )
+ else:
+ return RolePermissionsResponse(
+ )
+ """
+
+ def testRolePermissionsResponse(self):
+ """Test RolePermissionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_role_scopes_response.py b/test/test_role_scopes_response.py
new file mode 100644
index 00000000..1ad981ec
--- /dev/null
+++ b/test/test_role_scopes_response.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.role_scopes_response import RoleScopesResponse
+
+class TestRoleScopesResponse(unittest.TestCase):
+ """RoleScopesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> RoleScopesResponse:
+ """Test RoleScopesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `RoleScopesResponse`
+ """
+ model = RoleScopesResponse()
+ if include_optional:
+ return RoleScopesResponse(
+ code = 'OK',
+ message = 'Success',
+ scopes = [
+ kinde_sdk.models.scopes.scopes(
+ id = 'api_scope_019541f3fa0c874fc47b3ae73585b21c',
+ key = 'create:users',
+ description = 'Create users',
+ api_id = '3635b4431f174de6b789c67481bd0c7a', )
+ ]
+ )
+ else:
+ return RoleScopesResponse(
+ )
+ """
+
+ def testRoleScopesResponse(self):
+ """Test RoleScopesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_roles.py b/test/test_roles.py
new file mode 100644
index 00000000..622ceb74
--- /dev/null
+++ b/test/test_roles.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.roles import Roles
+
+class TestRoles(unittest.TestCase):
+ """Roles unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Roles:
+ """Test Roles
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Roles`
+ """
+ model = Roles()
+ if include_optional:
+ return Roles(
+ id = '',
+ key = '',
+ name = '',
+ description = '',
+ is_default_role = True
+ )
+ else:
+ return Roles(
+ )
+ """
+
+ def testRoles(self):
+ """Test Roles"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_roles_api.py b/test/test_roles_api.py
new file mode 100644
index 00000000..5a9c7595
--- /dev/null
+++ b/test/test_roles_api.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.roles_api import RolesApi
+
+
+class TestRolesApi(unittest.TestCase):
+ """RolesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = RolesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_add_role_scope(self) -> None:
+ """Test case for add_role_scope
+
+ Add role scope
+ """
+ pass
+
+ def test_create_role(self) -> None:
+ """Test case for create_role
+
+ Create role
+ """
+ pass
+
+ def test_delete_role(self) -> None:
+ """Test case for delete_role
+
+ Delete role
+ """
+ pass
+
+ def test_delete_role_scope(self) -> None:
+ """Test case for delete_role_scope
+
+ Delete role scope
+ """
+ pass
+
+ def test_get_role(self) -> None:
+ """Test case for get_role
+
+ Get role
+ """
+ pass
+
+ def test_get_role_permissions(self) -> None:
+ """Test case for get_role_permissions
+
+ Get role permissions
+ """
+ pass
+
+ def test_get_role_scopes(self) -> None:
+ """Test case for get_role_scopes
+
+ Get role scopes
+ """
+ pass
+
+ def test_get_roles(self) -> None:
+ """Test case for get_roles
+
+ List roles
+ """
+ pass
+
+ def test_get_user_roles(self) -> None:
+ """Test case for get_user_roles
+
+ Get roles
+ """
+ pass
+
+ def test_remove_role_permission(self) -> None:
+ """Test case for remove_role_permission
+
+ Remove role permission
+ """
+ pass
+
+ def test_update_role_permissions(self) -> None:
+ """Test case for update_role_permissions
+
+ Update role permissions
+ """
+ pass
+
+ def test_update_roles(self) -> None:
+ """Test case for update_roles
+
+ Update role
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_scopes.py b/test/test_scopes.py
new file mode 100644
index 00000000..e5f3334b
--- /dev/null
+++ b/test/test_scopes.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.scopes import Scopes
+
+class TestScopes(unittest.TestCase):
+ """Scopes unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Scopes:
+ """Test Scopes
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Scopes`
+ """
+ model = Scopes()
+ if include_optional:
+ return Scopes(
+ id = 'api_scope_019541f3fa0c874fc47b3ae73585b21c',
+ key = 'create:users',
+ description = 'Create users',
+ api_id = '3635b4431f174de6b789c67481bd0c7a'
+ )
+ else:
+ return Scopes(
+ )
+ """
+
+ def testScopes(self):
+ """Test Scopes"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_search_api.py b/test/test_search_api.py
new file mode 100644
index 00000000..1713507b
--- /dev/null
+++ b/test/test_search_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.search_api import SearchApi
+
+
+class TestSearchApi(unittest.TestCase):
+ """SearchApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SearchApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_search_users(self) -> None:
+ """Test case for search_users
+
+ Search users
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_search_users_response.py b/test/test_search_users_response.py
new file mode 100644
index 00000000..6eedb397
--- /dev/null
+++ b/test/test_search_users_response.py
@@ -0,0 +1,79 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.search_users_response import SearchUsersResponse
+
+class TestSearchUsersResponse(unittest.TestCase):
+ """SearchUsersResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SearchUsersResponse:
+ """Test SearchUsersResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SearchUsersResponse`
+ """
+ model = SearchUsersResponse()
+ if include_optional:
+ return SearchUsersResponse(
+ code = '',
+ message = '',
+ results = [
+ kinde_sdk.models.search_users_response_results_inner.search_users_response_results_inner(
+ id = 'kp_0ba7c433e5d648cf992621ce99d42817',
+ provided_id = 'U123456',
+ email = 'user@domain.com',
+ username = 'john.snow',
+ last_name = 'Snow',
+ first_name = 'John',
+ is_suspended = True,
+ picture = 'https://example.com/john_snow.jpg',
+ total_sign_ins = 1,
+ failed_sign_ins = 0,
+ last_signed_in = '2025-02-12T18:02:23.614638+00:00',
+ created_on = '2025-02-12T18:02:23.614638+00:00',
+ organizations = [
+ ''
+ ],
+ identities = [
+ kinde_sdk.models.user_identities_inner.user_identities_inner(
+ type = '',
+ identity = '', )
+ ],
+ properties = {
+ 'key' : ''
+ }, )
+ ]
+ )
+ else:
+ return SearchUsersResponse(
+ )
+ """
+
+ def testSearchUsersResponse(self):
+ """Test SearchUsersResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_search_users_response_results_inner.py b/test/test_search_users_response_results_inner.py
new file mode 100644
index 00000000..8d0b2888
--- /dev/null
+++ b/test/test_search_users_response_results_inner.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.search_users_response_results_inner import SearchUsersResponseResultsInner
+
+class TestSearchUsersResponseResultsInner(unittest.TestCase):
+ """SearchUsersResponseResultsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SearchUsersResponseResultsInner:
+ """Test SearchUsersResponseResultsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SearchUsersResponseResultsInner`
+ """
+ model = SearchUsersResponseResultsInner()
+ if include_optional:
+ return SearchUsersResponseResultsInner(
+ id = 'kp_0ba7c433e5d648cf992621ce99d42817',
+ provided_id = 'U123456',
+ email = 'user@domain.com',
+ username = 'john.snow',
+ last_name = 'Snow',
+ first_name = 'John',
+ is_suspended = True,
+ picture = 'https://example.com/john_snow.jpg',
+ total_sign_ins = 1,
+ failed_sign_ins = 0,
+ last_signed_in = '2025-02-12T18:02:23.614638+00:00',
+ created_on = '2025-02-12T18:02:23.614638+00:00',
+ organizations = [
+ ''
+ ],
+ identities = [
+ kinde_sdk.models.user_identities_inner.user_identities_inner(
+ type = '',
+ identity = '', )
+ ],
+ properties = {
+ 'key' : ''
+ }
+ )
+ else:
+ return SearchUsersResponseResultsInner(
+ )
+ """
+
+ def testSearchUsersResponseResultsInner(self):
+ """Test SearchUsersResponseResultsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_self_serve_portal_api.py b/test/test_self_serve_portal_api.py
new file mode 100644
index 00000000..30e44710
--- /dev/null
+++ b/test/test_self_serve_portal_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.self_serve_portal_api import SelfServePortalApi
+
+
+class TestSelfServePortalApi(unittest.TestCase):
+ """SelfServePortalApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SelfServePortalApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_portal_link(self) -> None:
+ """Test case for get_portal_link
+
+ Get self-serve portal link
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_set_user_password_request.py b/test/test_set_user_password_request.py
new file mode 100644
index 00000000..6fae4426
--- /dev/null
+++ b/test/test_set_user_password_request.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.set_user_password_request import SetUserPasswordRequest
+
+class TestSetUserPasswordRequest(unittest.TestCase):
+ """SetUserPasswordRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SetUserPasswordRequest:
+ """Test SetUserPasswordRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SetUserPasswordRequest`
+ """
+ model = SetUserPasswordRequest()
+ if include_optional:
+ return SetUserPasswordRequest(
+ hashed_password = '',
+ hashing_method = 'bcrypt',
+ salt = '',
+ salt_position = 'prefix',
+ is_temporary_password = True
+ )
+ else:
+ return SetUserPasswordRequest(
+ hashed_password = '',
+ )
+ """
+
+ def testSetUserPasswordRequest(self):
+ """Test SetUserPasswordRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_subscriber.py b/test/test_subscriber.py
new file mode 100644
index 00000000..d32008e2
--- /dev/null
+++ b/test/test_subscriber.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.subscriber import Subscriber
+
+class TestSubscriber(unittest.TestCase):
+ """Subscriber unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Subscriber:
+ """Test Subscriber
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Subscriber`
+ """
+ model = Subscriber()
+ if include_optional:
+ return Subscriber(
+ id = '',
+ preferred_email = '',
+ first_name = '',
+ last_name = ''
+ )
+ else:
+ return Subscriber(
+ )
+ """
+
+ def testSubscriber(self):
+ """Test Subscriber"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_subscribers_api.py b/test/test_subscribers_api.py
new file mode 100644
index 00000000..ba9d0595
--- /dev/null
+++ b/test/test_subscribers_api.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.subscribers_api import SubscribersApi
+
+
+class TestSubscribersApi(unittest.TestCase):
+ """SubscribersApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SubscribersApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_subscriber(self) -> None:
+ """Test case for create_subscriber
+
+ Create Subscriber
+ """
+ pass
+
+ def test_get_subscriber(self) -> None:
+ """Test case for get_subscriber
+
+ Get Subscriber
+ """
+ pass
+
+ def test_get_subscribers(self) -> None:
+ """Test case for get_subscribers
+
+ List Subscribers
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_subscribers_subscriber.py b/test/test_subscribers_subscriber.py
new file mode 100644
index 00000000..4d25539d
--- /dev/null
+++ b/test/test_subscribers_subscriber.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.subscribers_subscriber import SubscribersSubscriber
+
+class TestSubscribersSubscriber(unittest.TestCase):
+ """SubscribersSubscriber unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SubscribersSubscriber:
+ """Test SubscribersSubscriber
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SubscribersSubscriber`
+ """
+ model = SubscribersSubscriber()
+ if include_optional:
+ return SubscribersSubscriber(
+ id = '',
+ email = '',
+ full_name = '',
+ first_name = '',
+ last_name = ''
+ )
+ else:
+ return SubscribersSubscriber(
+ )
+ """
+
+ def testSubscribersSubscriber(self):
+ """Test SubscribersSubscriber"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_success_response.py b/test/test_success_response.py
new file mode 100644
index 00000000..443fe0be
--- /dev/null
+++ b/test/test_success_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.success_response import SuccessResponse
+
+class TestSuccessResponse(unittest.TestCase):
+ """SuccessResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SuccessResponse:
+ """Test SuccessResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SuccessResponse`
+ """
+ model = SuccessResponse()
+ if include_optional:
+ return SuccessResponse(
+ message = 'Success',
+ code = 'OK'
+ )
+ else:
+ return SuccessResponse(
+ )
+ """
+
+ def testSuccessResponse(self):
+ """Test SuccessResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_timezones_api.py b/test/test_timezones_api.py
new file mode 100644
index 00000000..b22ba29a
--- /dev/null
+++ b/test/test_timezones_api.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.timezones_api import TimezonesApi
+
+
+class TestTimezonesApi(unittest.TestCase):
+ """TimezonesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = TimezonesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_timezones(self) -> None:
+ """Test case for get_timezones
+
+ Get timezones
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_token_error_response.py b/test/test_token_error_response.py
new file mode 100644
index 00000000..e64538e3
--- /dev/null
+++ b/test/test_token_error_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.token_error_response import TokenErrorResponse
+
+class TestTokenErrorResponse(unittest.TestCase):
+ """TokenErrorResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TokenErrorResponse:
+ """Test TokenErrorResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TokenErrorResponse`
+ """
+ model = TokenErrorResponse()
+ if include_optional:
+ return TokenErrorResponse(
+ error = '',
+ error_description = ''
+ )
+ else:
+ return TokenErrorResponse(
+ )
+ """
+
+ def testTokenErrorResponse(self):
+ """Test TokenErrorResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_token_introspect.py b/test/test_token_introspect.py
new file mode 100644
index 00000000..be32d86a
--- /dev/null
+++ b/test/test_token_introspect.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.token_introspect import TokenIntrospect
+
+class TestTokenIntrospect(unittest.TestCase):
+ """TokenIntrospect unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TokenIntrospect:
+ """Test TokenIntrospect
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TokenIntrospect`
+ """
+ model = TokenIntrospect()
+ if include_optional:
+ return TokenIntrospect(
+ active = True,
+ aud = [
+ 'https://api.example.com/v1'
+ ],
+ client_id = '3b0b5c6c8fcc464fab397f4969b5f482',
+ exp = 1612345678,
+ iat = 1612345678
+ )
+ else:
+ return TokenIntrospect(
+ )
+ """
+
+ def testTokenIntrospect(self):
+ """Test TokenIntrospect"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_api_applications_request.py b/test/test_update_api_applications_request.py
new file mode 100644
index 00000000..4532dcd0
--- /dev/null
+++ b/test/test_update_api_applications_request.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_api_applications_request import UpdateAPIApplicationsRequest
+
+class TestUpdateAPIApplicationsRequest(unittest.TestCase):
+ """UpdateAPIApplicationsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateAPIApplicationsRequest:
+ """Test UpdateAPIApplicationsRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateAPIApplicationsRequest`
+ """
+ model = UpdateAPIApplicationsRequest()
+ if include_optional:
+ return UpdateAPIApplicationsRequest(
+ applications = [
+ kinde_sdk.models.update_api_applications_request_applications_inner.updateAPIApplications_request_applications_inner(
+ id = 'd2db282d6214242b3b145c123f0c123',
+ operation = 'delete', )
+ ]
+ )
+ else:
+ return UpdateAPIApplicationsRequest(
+ applications = [
+ kinde_sdk.models.update_api_applications_request_applications_inner.updateAPIApplications_request_applications_inner(
+ id = 'd2db282d6214242b3b145c123f0c123',
+ operation = 'delete', )
+ ],
+ )
+ """
+
+ def testUpdateAPIApplicationsRequest(self):
+ """Test UpdateAPIApplicationsRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_api_applications_request_applications_inner.py b/test/test_update_api_applications_request_applications_inner.py
new file mode 100644
index 00000000..10225d7e
--- /dev/null
+++ b/test/test_update_api_applications_request_applications_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_api_applications_request_applications_inner import UpdateAPIApplicationsRequestApplicationsInner
+
+class TestUpdateAPIApplicationsRequestApplicationsInner(unittest.TestCase):
+ """UpdateAPIApplicationsRequestApplicationsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateAPIApplicationsRequestApplicationsInner:
+ """Test UpdateAPIApplicationsRequestApplicationsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateAPIApplicationsRequestApplicationsInner`
+ """
+ model = UpdateAPIApplicationsRequestApplicationsInner()
+ if include_optional:
+ return UpdateAPIApplicationsRequestApplicationsInner(
+ id = 'd2db282d6214242b3b145c123f0c123',
+ operation = 'delete'
+ )
+ else:
+ return UpdateAPIApplicationsRequestApplicationsInner(
+ id = 'd2db282d6214242b3b145c123f0c123',
+ )
+ """
+
+ def testUpdateAPIApplicationsRequestApplicationsInner(self):
+ """Test UpdateAPIApplicationsRequestApplicationsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_api_scope_request.py b/test/test_update_api_scope_request.py
new file mode 100644
index 00000000..b950d30e
--- /dev/null
+++ b/test/test_update_api_scope_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_api_scope_request import UpdateAPIScopeRequest
+
+class TestUpdateAPIScopeRequest(unittest.TestCase):
+ """UpdateAPIScopeRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateAPIScopeRequest:
+ """Test UpdateAPIScopeRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateAPIScopeRequest`
+ """
+ model = UpdateAPIScopeRequest()
+ if include_optional:
+ return UpdateAPIScopeRequest(
+ description = 'Scope for reading logs.'
+ )
+ else:
+ return UpdateAPIScopeRequest(
+ )
+ """
+
+ def testUpdateAPIScopeRequest(self):
+ """Test UpdateAPIScopeRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_application_request.py b/test/test_update_application_request.py
new file mode 100644
index 00000000..59321a1d
--- /dev/null
+++ b/test/test_update_application_request.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_application_request import UpdateApplicationRequest
+
+class TestUpdateApplicationRequest(unittest.TestCase):
+ """UpdateApplicationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateApplicationRequest:
+ """Test UpdateApplicationRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateApplicationRequest`
+ """
+ model = UpdateApplicationRequest()
+ if include_optional:
+ return UpdateApplicationRequest(
+ name = '',
+ language_key = '',
+ logout_uris = [
+ ''
+ ],
+ redirect_uris = [
+ ''
+ ],
+ login_uri = '',
+ homepage_uri = ''
+ )
+ else:
+ return UpdateApplicationRequest(
+ )
+ """
+
+ def testUpdateApplicationRequest(self):
+ """Test UpdateApplicationRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_application_tokens_request.py b/test/test_update_application_tokens_request.py
new file mode 100644
index 00000000..2fddc02c
--- /dev/null
+++ b/test/test_update_application_tokens_request.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_application_tokens_request import UpdateApplicationTokensRequest
+
+class TestUpdateApplicationTokensRequest(unittest.TestCase):
+ """UpdateApplicationTokensRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateApplicationTokensRequest:
+ """Test UpdateApplicationTokensRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateApplicationTokensRequest`
+ """
+ model = UpdateApplicationTokensRequest()
+ if include_optional:
+ return UpdateApplicationTokensRequest(
+ access_token_lifetime = 3600,
+ refresh_token_lifetime = 86400,
+ id_token_lifetime = 3600,
+ authenticated_session_lifetime = 86400,
+ is_hasura_mapping_enabled = True
+ )
+ else:
+ return UpdateApplicationTokensRequest(
+ )
+ """
+
+ def testUpdateApplicationTokensRequest(self):
+ """Test UpdateApplicationTokensRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_applications_property_request.py b/test/test_update_applications_property_request.py
new file mode 100644
index 00000000..76508462
--- /dev/null
+++ b/test/test_update_applications_property_request.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_applications_property_request import UpdateApplicationsPropertyRequest
+
+class TestUpdateApplicationsPropertyRequest(unittest.TestCase):
+ """UpdateApplicationsPropertyRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateApplicationsPropertyRequest:
+ """Test UpdateApplicationsPropertyRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateApplicationsPropertyRequest`
+ """
+ model = UpdateApplicationsPropertyRequest()
+ if include_optional:
+ return UpdateApplicationsPropertyRequest(
+ value = Some new value
+ )
+ else:
+ return UpdateApplicationsPropertyRequest(
+ value = Some new value,
+ )
+ """
+
+ def testUpdateApplicationsPropertyRequest(self):
+ """Test UpdateApplicationsPropertyRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_applications_property_request_value.py b/test/test_update_applications_property_request_value.py
new file mode 100644
index 00000000..cb47762f
--- /dev/null
+++ b/test/test_update_applications_property_request_value.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_applications_property_request_value import UpdateApplicationsPropertyRequestValue
+
+class TestUpdateApplicationsPropertyRequestValue(unittest.TestCase):
+ """UpdateApplicationsPropertyRequestValue unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateApplicationsPropertyRequestValue:
+ """Test UpdateApplicationsPropertyRequestValue
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateApplicationsPropertyRequestValue`
+ """
+ model = UpdateApplicationsPropertyRequestValue()
+ if include_optional:
+ return UpdateApplicationsPropertyRequestValue(
+ )
+ else:
+ return UpdateApplicationsPropertyRequestValue(
+ )
+ """
+
+ def testUpdateApplicationsPropertyRequestValue(self):
+ """Test UpdateApplicationsPropertyRequestValue"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_business_request.py b/test/test_update_business_request.py
new file mode 100644
index 00000000..02301d66
--- /dev/null
+++ b/test/test_update_business_request.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_business_request import UpdateBusinessRequest
+
+class TestUpdateBusinessRequest(unittest.TestCase):
+ """UpdateBusinessRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateBusinessRequest:
+ """Test UpdateBusinessRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateBusinessRequest`
+ """
+ model = UpdateBusinessRequest()
+ if include_optional:
+ return UpdateBusinessRequest(
+ business_name = 'Tailsforce Ltd',
+ email = 'sally@example.com',
+ industry_key = 'construction',
+ is_click_wrap = False,
+ is_show_kinde_branding = True,
+ kinde_perk_code = '',
+ phone = '123-456-7890',
+ privacy_url = 'https://example.com/privacy',
+ terms_url = 'https://example.com/terms',
+ timezone_key = 'los_angeles_pacific_standard_time'
+ )
+ else:
+ return UpdateBusinessRequest(
+ )
+ """
+
+ def testUpdateBusinessRequest(self):
+ """Test UpdateBusinessRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_category_request.py b/test/test_update_category_request.py
new file mode 100644
index 00000000..c3f9ad9d
--- /dev/null
+++ b/test/test_update_category_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_category_request import UpdateCategoryRequest
+
+class TestUpdateCategoryRequest(unittest.TestCase):
+ """UpdateCategoryRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateCategoryRequest:
+ """Test UpdateCategoryRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateCategoryRequest`
+ """
+ model = UpdateCategoryRequest()
+ if include_optional:
+ return UpdateCategoryRequest(
+ name = ''
+ )
+ else:
+ return UpdateCategoryRequest(
+ )
+ """
+
+ def testUpdateCategoryRequest(self):
+ """Test UpdateCategoryRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_connection_request.py b/test/test_update_connection_request.py
new file mode 100644
index 00000000..44266ee6
--- /dev/null
+++ b/test/test_update_connection_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_connection_request import UpdateConnectionRequest
+
+class TestUpdateConnectionRequest(unittest.TestCase):
+ """UpdateConnectionRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateConnectionRequest:
+ """Test UpdateConnectionRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateConnectionRequest`
+ """
+ model = UpdateConnectionRequest()
+ if include_optional:
+ return UpdateConnectionRequest(
+ name = 'ConnectionA',
+ display_name = 'Connection',
+ enabled_applications = ["c647dbe20f5944e28af97c9184fded22","20bbffaa4c5e492a962273039d4ae18b"],
+ options = None
+ )
+ else:
+ return UpdateConnectionRequest(
+ )
+ """
+
+ def testUpdateConnectionRequest(self):
+ """Test UpdateConnectionRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_environement_feature_flag_override_request.py b/test/test_update_environement_feature_flag_override_request.py
new file mode 100644
index 00000000..b8c05236
--- /dev/null
+++ b/test/test_update_environement_feature_flag_override_request.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_environement_feature_flag_override_request import UpdateEnvironementFeatureFlagOverrideRequest
+
+class TestUpdateEnvironementFeatureFlagOverrideRequest(unittest.TestCase):
+ """UpdateEnvironementFeatureFlagOverrideRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateEnvironementFeatureFlagOverrideRequest:
+ """Test UpdateEnvironementFeatureFlagOverrideRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateEnvironementFeatureFlagOverrideRequest`
+ """
+ model = UpdateEnvironementFeatureFlagOverrideRequest()
+ if include_optional:
+ return UpdateEnvironementFeatureFlagOverrideRequest(
+ value = ''
+ )
+ else:
+ return UpdateEnvironementFeatureFlagOverrideRequest(
+ value = '',
+ )
+ """
+
+ def testUpdateEnvironementFeatureFlagOverrideRequest(self):
+ """Test UpdateEnvironementFeatureFlagOverrideRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_environment_variable_request.py b/test/test_update_environment_variable_request.py
new file mode 100644
index 00000000..522f3dbd
--- /dev/null
+++ b/test/test_update_environment_variable_request.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_environment_variable_request import UpdateEnvironmentVariableRequest
+
+class TestUpdateEnvironmentVariableRequest(unittest.TestCase):
+ """UpdateEnvironmentVariableRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateEnvironmentVariableRequest:
+ """Test UpdateEnvironmentVariableRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateEnvironmentVariableRequest`
+ """
+ model = UpdateEnvironmentVariableRequest()
+ if include_optional:
+ return UpdateEnvironmentVariableRequest(
+ key = 'MY_API_KEY',
+ value = 'new-secret-value',
+ is_secret = True
+ )
+ else:
+ return UpdateEnvironmentVariableRequest(
+ )
+ """
+
+ def testUpdateEnvironmentVariableRequest(self):
+ """Test UpdateEnvironmentVariableRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_environment_variable_response.py b/test/test_update_environment_variable_response.py
new file mode 100644
index 00000000..5577bd5e
--- /dev/null
+++ b/test/test_update_environment_variable_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_environment_variable_response import UpdateEnvironmentVariableResponse
+
+class TestUpdateEnvironmentVariableResponse(unittest.TestCase):
+ """UpdateEnvironmentVariableResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateEnvironmentVariableResponse:
+ """Test UpdateEnvironmentVariableResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateEnvironmentVariableResponse`
+ """
+ model = UpdateEnvironmentVariableResponse()
+ if include_optional:
+ return UpdateEnvironmentVariableResponse(
+ message = 'Environment variable updated',
+ code = 'ENVIRONMENT_VARIABLE_UPDATED'
+ )
+ else:
+ return UpdateEnvironmentVariableResponse(
+ )
+ """
+
+ def testUpdateEnvironmentVariableResponse(self):
+ """Test UpdateEnvironmentVariableResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_identity_request.py b/test/test_update_identity_request.py
new file mode 100644
index 00000000..477eb855
--- /dev/null
+++ b/test/test_update_identity_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_identity_request import UpdateIdentityRequest
+
+class TestUpdateIdentityRequest(unittest.TestCase):
+ """UpdateIdentityRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateIdentityRequest:
+ """Test UpdateIdentityRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateIdentityRequest`
+ """
+ model = UpdateIdentityRequest()
+ if include_optional:
+ return UpdateIdentityRequest(
+ is_primary = True
+ )
+ else:
+ return UpdateIdentityRequest(
+ )
+ """
+
+ def testUpdateIdentityRequest(self):
+ """Test UpdateIdentityRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_properties_request.py b/test/test_update_organization_properties_request.py
new file mode 100644
index 00000000..2257f0f0
--- /dev/null
+++ b/test/test_update_organization_properties_request.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_organization_properties_request import UpdateOrganizationPropertiesRequest
+
+class TestUpdateOrganizationPropertiesRequest(unittest.TestCase):
+ """UpdateOrganizationPropertiesRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationPropertiesRequest:
+ """Test UpdateOrganizationPropertiesRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationPropertiesRequest`
+ """
+ model = UpdateOrganizationPropertiesRequest()
+ if include_optional:
+ return UpdateOrganizationPropertiesRequest(
+ properties = None
+ )
+ else:
+ return UpdateOrganizationPropertiesRequest(
+ properties = None,
+ )
+ """
+
+ def testUpdateOrganizationPropertiesRequest(self):
+ """Test UpdateOrganizationPropertiesRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_request.py b/test/test_update_organization_request.py
new file mode 100644
index 00000000..ef0ab262
--- /dev/null
+++ b/test/test_update_organization_request.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_organization_request import UpdateOrganizationRequest
+
+class TestUpdateOrganizationRequest(unittest.TestCase):
+ """UpdateOrganizationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationRequest:
+ """Test UpdateOrganizationRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationRequest`
+ """
+ model = UpdateOrganizationRequest()
+ if include_optional:
+ return UpdateOrganizationRequest(
+ name = 'Acme Corp',
+ external_id = 'some1234',
+ background_color = '#fff',
+ button_color = '#fff',
+ button_text_color = '#fff',
+ link_color = '#fff',
+ background_color_dark = '#000',
+ button_color_dark = '#000',
+ button_text_color_dark = '#000',
+ link_color_dark = '#000',
+ theme_code = 'light',
+ handle = 'acme_corp',
+ is_allow_registrations = True,
+ is_auto_join_domain_list = True,
+ allowed_domains = ["https://acme.kinde.com","https://acme.com"],
+ is_enable_advanced_orgs = True,
+ is_enforce_mfa = True,
+ sender_name = 'Acme Corp',
+ sender_email = 'hello@acmecorp.com'
+ )
+ else:
+ return UpdateOrganizationRequest(
+ )
+ """
+
+ def testUpdateOrganizationRequest(self):
+ """Test UpdateOrganizationRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_sessions_request.py b/test/test_update_organization_sessions_request.py
new file mode 100644
index 00000000..5fd6c73d
--- /dev/null
+++ b/test/test_update_organization_sessions_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_organization_sessions_request import UpdateOrganizationSessionsRequest
+
+class TestUpdateOrganizationSessionsRequest(unittest.TestCase):
+ """UpdateOrganizationSessionsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationSessionsRequest:
+ """Test UpdateOrganizationSessionsRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationSessionsRequest`
+ """
+ model = UpdateOrganizationSessionsRequest()
+ if include_optional:
+ return UpdateOrganizationSessionsRequest(
+ is_use_org_sso_session_policy = True,
+ sso_session_persistence_mode = 'persistent',
+ is_use_org_authenticated_session_lifetime = True,
+ authenticated_session_lifetime = 86400
+ )
+ else:
+ return UpdateOrganizationSessionsRequest(
+ )
+ """
+
+ def testUpdateOrganizationSessionsRequest(self):
+ """Test UpdateOrganizationSessionsRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_users_request.py b/test/test_update_organization_users_request.py
new file mode 100644
index 00000000..29c0b8ed
--- /dev/null
+++ b/test/test_update_organization_users_request.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_organization_users_request import UpdateOrganizationUsersRequest
+
+class TestUpdateOrganizationUsersRequest(unittest.TestCase):
+ """UpdateOrganizationUsersRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationUsersRequest:
+ """Test UpdateOrganizationUsersRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationUsersRequest`
+ """
+ model = UpdateOrganizationUsersRequest()
+ if include_optional:
+ return UpdateOrganizationUsersRequest(
+ users = [
+ kinde_sdk.models.update_organization_users_request_users_inner.UpdateOrganizationUsers_request_users_inner(
+ id = 'kp_057ee6debc624c70947b6ba512908c35',
+ operation = 'delete',
+ roles = [
+ 'manager'
+ ],
+ permissions = [
+ 'admin'
+ ], )
+ ]
+ )
+ else:
+ return UpdateOrganizationUsersRequest(
+ )
+ """
+
+ def testUpdateOrganizationUsersRequest(self):
+ """Test UpdateOrganizationUsersRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_users_request_users_inner.py b/test/test_update_organization_users_request_users_inner.py
new file mode 100644
index 00000000..813bb6f2
--- /dev/null
+++ b/test/test_update_organization_users_request_users_inner.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_organization_users_request_users_inner import UpdateOrganizationUsersRequestUsersInner
+
+class TestUpdateOrganizationUsersRequestUsersInner(unittest.TestCase):
+ """UpdateOrganizationUsersRequestUsersInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationUsersRequestUsersInner:
+ """Test UpdateOrganizationUsersRequestUsersInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationUsersRequestUsersInner`
+ """
+ model = UpdateOrganizationUsersRequestUsersInner()
+ if include_optional:
+ return UpdateOrganizationUsersRequestUsersInner(
+ id = 'kp_057ee6debc624c70947b6ba512908c35',
+ operation = 'delete',
+ roles = [
+ 'manager'
+ ],
+ permissions = [
+ 'admin'
+ ]
+ )
+ else:
+ return UpdateOrganizationUsersRequestUsersInner(
+ )
+ """
+
+ def testUpdateOrganizationUsersRequestUsersInner(self):
+ """Test UpdateOrganizationUsersRequestUsersInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_users_response.py b/test/test_update_organization_users_response.py
new file mode 100644
index 00000000..fadd5f8e
--- /dev/null
+++ b/test/test_update_organization_users_response.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_organization_users_response import UpdateOrganizationUsersResponse
+
+class TestUpdateOrganizationUsersResponse(unittest.TestCase):
+ """UpdateOrganizationUsersResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationUsersResponse:
+ """Test UpdateOrganizationUsersResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationUsersResponse`
+ """
+ model = UpdateOrganizationUsersResponse()
+ if include_optional:
+ return UpdateOrganizationUsersResponse(
+ message = 'Success',
+ code = 'OK',
+ users_added = [
+ 'kp_057ee6debc624c70947b6ba512908c35'
+ ],
+ users_updated = [
+ 'kp_057ee6debc624c70947b6ba512908c35'
+ ],
+ users_removed = [
+ 'kp_057ee6debc624c70947b6ba512908c35'
+ ]
+ )
+ else:
+ return UpdateOrganizationUsersResponse(
+ )
+ """
+
+ def testUpdateOrganizationUsersResponse(self):
+ """Test UpdateOrganizationUsersResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_property_request.py b/test/test_update_property_request.py
new file mode 100644
index 00000000..b0a01ffd
--- /dev/null
+++ b/test/test_update_property_request.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_property_request import UpdatePropertyRequest
+
+class TestUpdatePropertyRequest(unittest.TestCase):
+ """UpdatePropertyRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdatePropertyRequest:
+ """Test UpdatePropertyRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdatePropertyRequest`
+ """
+ model = UpdatePropertyRequest()
+ if include_optional:
+ return UpdatePropertyRequest(
+ name = '',
+ description = '',
+ is_private = True,
+ category_id = ''
+ )
+ else:
+ return UpdatePropertyRequest(
+ name = '',
+ is_private = True,
+ category_id = '',
+ )
+ """
+
+ def testUpdatePropertyRequest(self):
+ """Test UpdatePropertyRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_role_permissions_request.py b/test/test_update_role_permissions_request.py
new file mode 100644
index 00000000..aee0dc0d
--- /dev/null
+++ b/test/test_update_role_permissions_request.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_role_permissions_request import UpdateRolePermissionsRequest
+
+class TestUpdateRolePermissionsRequest(unittest.TestCase):
+ """UpdateRolePermissionsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateRolePermissionsRequest:
+ """Test UpdateRolePermissionsRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateRolePermissionsRequest`
+ """
+ model = UpdateRolePermissionsRequest()
+ if include_optional:
+ return UpdateRolePermissionsRequest(
+ permissions = [
+ kinde_sdk.models.update_role_permissions_request_permissions_inner.UpdateRolePermissions_request_permissions_inner(
+ id = '',
+ operation = '', )
+ ]
+ )
+ else:
+ return UpdateRolePermissionsRequest(
+ )
+ """
+
+ def testUpdateRolePermissionsRequest(self):
+ """Test UpdateRolePermissionsRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_role_permissions_request_permissions_inner.py b/test/test_update_role_permissions_request_permissions_inner.py
new file mode 100644
index 00000000..cecd0e86
--- /dev/null
+++ b/test/test_update_role_permissions_request_permissions_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_role_permissions_request_permissions_inner import UpdateRolePermissionsRequestPermissionsInner
+
+class TestUpdateRolePermissionsRequestPermissionsInner(unittest.TestCase):
+ """UpdateRolePermissionsRequestPermissionsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateRolePermissionsRequestPermissionsInner:
+ """Test UpdateRolePermissionsRequestPermissionsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateRolePermissionsRequestPermissionsInner`
+ """
+ model = UpdateRolePermissionsRequestPermissionsInner()
+ if include_optional:
+ return UpdateRolePermissionsRequestPermissionsInner(
+ id = '',
+ operation = ''
+ )
+ else:
+ return UpdateRolePermissionsRequestPermissionsInner(
+ )
+ """
+
+ def testUpdateRolePermissionsRequestPermissionsInner(self):
+ """Test UpdateRolePermissionsRequestPermissionsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_role_permissions_response.py b/test/test_update_role_permissions_response.py
new file mode 100644
index 00000000..b7954f13
--- /dev/null
+++ b/test/test_update_role_permissions_response.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_role_permissions_response import UpdateRolePermissionsResponse
+
+class TestUpdateRolePermissionsResponse(unittest.TestCase):
+ """UpdateRolePermissionsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateRolePermissionsResponse:
+ """Test UpdateRolePermissionsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateRolePermissionsResponse`
+ """
+ model = UpdateRolePermissionsResponse()
+ if include_optional:
+ return UpdateRolePermissionsResponse(
+ code = '',
+ message = '',
+ permissions_added = [
+ ''
+ ],
+ permissions_removed = [
+ ''
+ ]
+ )
+ else:
+ return UpdateRolePermissionsResponse(
+ )
+ """
+
+ def testUpdateRolePermissionsResponse(self):
+ """Test UpdateRolePermissionsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_roles_request.py b/test/test_update_roles_request.py
new file mode 100644
index 00000000..ee046334
--- /dev/null
+++ b/test/test_update_roles_request.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_roles_request import UpdateRolesRequest
+
+class TestUpdateRolesRequest(unittest.TestCase):
+ """UpdateRolesRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateRolesRequest:
+ """Test UpdateRolesRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateRolesRequest`
+ """
+ model = UpdateRolesRequest()
+ if include_optional:
+ return UpdateRolesRequest(
+ name = '',
+ description = '',
+ key = '',
+ is_default_role = True
+ )
+ else:
+ return UpdateRolesRequest(
+ name = '',
+ key = '',
+ )
+ """
+
+ def testUpdateRolesRequest(self):
+ """Test UpdateRolesRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_user_request.py b/test/test_update_user_request.py
new file mode 100644
index 00000000..ca29d4e2
--- /dev/null
+++ b/test/test_update_user_request.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_user_request import UpdateUserRequest
+
+class TestUpdateUserRequest(unittest.TestCase):
+ """UpdateUserRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateUserRequest:
+ """Test UpdateUserRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateUserRequest`
+ """
+ model = UpdateUserRequest()
+ if include_optional:
+ return UpdateUserRequest(
+ given_name = '',
+ family_name = '',
+ picture = '',
+ is_suspended = True,
+ is_password_reset_requested = True,
+ provided_id = ''
+ )
+ else:
+ return UpdateUserRequest(
+ )
+ """
+
+ def testUpdateUserRequest(self):
+ """Test UpdateUserRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_user_response.py b/test/test_update_user_response.py
new file mode 100644
index 00000000..e3ad5c83
--- /dev/null
+++ b/test/test_update_user_response.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_user_response import UpdateUserResponse
+
+class TestUpdateUserResponse(unittest.TestCase):
+ """UpdateUserResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateUserResponse:
+ """Test UpdateUserResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateUserResponse`
+ """
+ model = UpdateUserResponse()
+ if include_optional:
+ return UpdateUserResponse(
+ id = '',
+ given_name = '',
+ family_name = '',
+ email = '',
+ is_suspended = True,
+ is_password_reset_requested = True,
+ picture = ''
+ )
+ else:
+ return UpdateUserResponse(
+ )
+ """
+
+ def testUpdateUserResponse(self):
+ """Test UpdateUserResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_web_hook_request.py b/test/test_update_web_hook_request.py
new file mode 100644
index 00000000..b177c998
--- /dev/null
+++ b/test/test_update_web_hook_request.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_web_hook_request import UpdateWebHookRequest
+
+class TestUpdateWebHookRequest(unittest.TestCase):
+ """UpdateWebHookRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateWebHookRequest:
+ """Test UpdateWebHookRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateWebHookRequest`
+ """
+ model = UpdateWebHookRequest()
+ if include_optional:
+ return UpdateWebHookRequest(
+ event_types = [
+ ''
+ ],
+ name = '',
+ description = ''
+ )
+ else:
+ return UpdateWebHookRequest(
+ )
+ """
+
+ def testUpdateWebHookRequest(self):
+ """Test UpdateWebHookRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_webhook_response.py b/test/test_update_webhook_response.py
new file mode 100644
index 00000000..6c7c712b
--- /dev/null
+++ b/test/test_update_webhook_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_webhook_response import UpdateWebhookResponse
+
+class TestUpdateWebhookResponse(unittest.TestCase):
+ """UpdateWebhookResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateWebhookResponse:
+ """Test UpdateWebhookResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateWebhookResponse`
+ """
+ model = UpdateWebhookResponse()
+ if include_optional:
+ return UpdateWebhookResponse(
+ message = '',
+ code = '',
+ webhook = kinde_sdk.models.update_webhook_response_webhook.update_webhook_response_webhook(
+ id = '', )
+ )
+ else:
+ return UpdateWebhookResponse(
+ )
+ """
+
+ def testUpdateWebhookResponse(self):
+ """Test UpdateWebhookResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_webhook_response_webhook.py b/test/test_update_webhook_response_webhook.py
new file mode 100644
index 00000000..6967ae70
--- /dev/null
+++ b/test/test_update_webhook_response_webhook.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.update_webhook_response_webhook import UpdateWebhookResponseWebhook
+
+class TestUpdateWebhookResponseWebhook(unittest.TestCase):
+ """UpdateWebhookResponseWebhook unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateWebhookResponseWebhook:
+ """Test UpdateWebhookResponseWebhook
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateWebhookResponseWebhook`
+ """
+ model = UpdateWebhookResponseWebhook()
+ if include_optional:
+ return UpdateWebhookResponseWebhook(
+ id = ''
+ )
+ else:
+ return UpdateWebhookResponseWebhook(
+ )
+ """
+
+ def testUpdateWebhookResponseWebhook(self):
+ """Test UpdateWebhookResponseWebhook"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user.py b/test/test_user.py
new file mode 100644
index 00000000..9fcb291d
--- /dev/null
+++ b/test/test_user.py
@@ -0,0 +1,72 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.user import User
+
+class TestUser(unittest.TestCase):
+ """User unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> User:
+ """Test User
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `User`
+ """
+ model = User()
+ if include_optional:
+ return User(
+ id = '',
+ provided_id = '',
+ preferred_email = '',
+ phone = '',
+ username = '',
+ last_name = '',
+ first_name = '',
+ is_suspended = True,
+ picture = '',
+ total_sign_ins = 56,
+ failed_sign_ins = 56,
+ last_signed_in = '',
+ created_on = '',
+ organizations = [
+ ''
+ ],
+ identities = [
+ kinde_sdk.models.user_identities_inner.user_identities_inner(
+ type = '',
+ identity = '', )
+ ]
+ )
+ else:
+ return User(
+ )
+ """
+
+ def testUser(self):
+ """Test User"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_identities_inner.py b/test/test_user_identities_inner.py
new file mode 100644
index 00000000..379e4709
--- /dev/null
+++ b/test/test_user_identities_inner.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.user_identities_inner import UserIdentitiesInner
+
+class TestUserIdentitiesInner(unittest.TestCase):
+ """UserIdentitiesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UserIdentitiesInner:
+ """Test UserIdentitiesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UserIdentitiesInner`
+ """
+ model = UserIdentitiesInner()
+ if include_optional:
+ return UserIdentitiesInner(
+ type = '',
+ identity = ''
+ )
+ else:
+ return UserIdentitiesInner(
+ )
+ """
+
+ def testUserIdentitiesInner(self):
+ """Test UserIdentitiesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_identity.py b/test/test_user_identity.py
new file mode 100644
index 00000000..5c2405ec
--- /dev/null
+++ b/test/test_user_identity.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.user_identity import UserIdentity
+
+class TestUserIdentity(unittest.TestCase):
+ """UserIdentity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UserIdentity:
+ """Test UserIdentity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UserIdentity`
+ """
+ model = UserIdentity()
+ if include_optional:
+ return UserIdentity(
+ type = '',
+ result = kinde_sdk.models.user_identity_result.user_identity_result(
+ created = True, )
+ )
+ else:
+ return UserIdentity(
+ )
+ """
+
+ def testUserIdentity(self):
+ """Test UserIdentity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_identity_result.py b/test/test_user_identity_result.py
new file mode 100644
index 00000000..8f4a95fc
--- /dev/null
+++ b/test/test_user_identity_result.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.user_identity_result import UserIdentityResult
+
+class TestUserIdentityResult(unittest.TestCase):
+ """UserIdentityResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UserIdentityResult:
+ """Test UserIdentityResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UserIdentityResult`
+ """
+ model = UserIdentityResult()
+ if include_optional:
+ return UserIdentityResult(
+ created = True
+ )
+ else:
+ return UserIdentityResult(
+ )
+ """
+
+ def testUserIdentityResult(self):
+ """Test UserIdentityResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_profile_v2.py b/test/test_user_profile_v2.py
new file mode 100644
index 00000000..13dc76c9
--- /dev/null
+++ b/test/test_user_profile_v2.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.user_profile_v2 import UserProfileV2
+
+class TestUserProfileV2(unittest.TestCase):
+ """UserProfileV2 unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UserProfileV2:
+ """Test UserProfileV2
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UserProfileV2`
+ """
+ model = UserProfileV2()
+ if include_optional:
+ return UserProfileV2(
+ sub = 'kp_c3143a4b50ad43c88e541d9077681782',
+ provided_id = 'some_external_id',
+ name = 'John Snow',
+ given_name = 'John',
+ family_name = 'Snow',
+ updated_at = 1612345678,
+ email = 'john.snow@example.com',
+ email_verified = True,
+ picture = 'https://example.com/john_snow.jpg',
+ preferred_username = 'john_snow',
+ id = 'kp_c3143a4b50ad43c88e541d9077681782'
+ )
+ else:
+ return UserProfileV2(
+ )
+ """
+
+ def testUserProfileV2(self):
+ """Test UserProfileV2"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_users_api.py b/test/test_users_api.py
new file mode 100644
index 00000000..44856dee
--- /dev/null
+++ b/test/test_users_api.py
@@ -0,0 +1,158 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.users_api import UsersApi
+
+
+class TestUsersApi(unittest.TestCase):
+ """UsersApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = UsersApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_user(self) -> None:
+ """Test case for create_user
+
+ Create user
+ """
+ pass
+
+ def test_create_user_identity(self) -> None:
+ """Test case for create_user_identity
+
+ Create identity
+ """
+ pass
+
+ def test_delete_user(self) -> None:
+ """Test case for delete_user
+
+ Delete user
+ """
+ pass
+
+ def test_delete_user_sessions(self) -> None:
+ """Test case for delete_user_sessions
+
+ Delete user sessions
+ """
+ pass
+
+ def test_get_user_data(self) -> None:
+ """Test case for get_user_data
+
+ Get user
+ """
+ pass
+
+ def test_get_user_identities(self) -> None:
+ """Test case for get_user_identities
+
+ Get identities
+ """
+ pass
+
+ def test_get_user_property_values(self) -> None:
+ """Test case for get_user_property_values
+
+ Get property values
+ """
+ pass
+
+ def test_get_user_sessions(self) -> None:
+ """Test case for get_user_sessions
+
+ Get user sessions
+ """
+ pass
+
+ def test_get_users(self) -> None:
+ """Test case for get_users
+
+ Get users
+ """
+ pass
+
+ def test_get_users_mfa(self) -> None:
+ """Test case for get_users_mfa
+
+ Get user's MFA configuration
+ """
+ pass
+
+ def test_refresh_user_claims(self) -> None:
+ """Test case for refresh_user_claims
+
+ Refresh User Claims and Invalidate Cache
+ """
+ pass
+
+ def test_reset_users_mfa(self) -> None:
+ """Test case for reset_users_mfa
+
+ Reset specific environment MFA for a user
+ """
+ pass
+
+ def test_reset_users_mfa_all(self) -> None:
+ """Test case for reset_users_mfa_all
+
+ Reset all environment MFA for a user
+ """
+ pass
+
+ def test_set_user_password(self) -> None:
+ """Test case for set_user_password
+
+ Set User password
+ """
+ pass
+
+ def test_update_user(self) -> None:
+ """Test case for update_user
+
+ Update user
+ """
+ pass
+
+ def test_update_user_feature_flag_override(self) -> None:
+ """Test case for update_user_feature_flag_override
+
+ Update User Feature Flag Override
+ """
+ pass
+
+ def test_update_user_properties(self) -> None:
+ """Test case for update_user_properties
+
+ Update Property values
+ """
+ pass
+
+ def test_update_user_property(self) -> None:
+ """Test case for update_user_property
+
+ Update Property value
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_users_response.py b/test/test_users_response.py
new file mode 100644
index 00000000..b9065a66
--- /dev/null
+++ b/test/test_users_response.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.users_response import UsersResponse
+
+class TestUsersResponse(unittest.TestCase):
+ """UsersResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UsersResponse:
+ """Test UsersResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UsersResponse`
+ """
+ model = UsersResponse()
+ if include_optional:
+ return UsersResponse(
+ code = '',
+ message = '',
+ users = [
+ kinde_sdk.models.users_response_users_inner.users_response_users_inner(
+ id = '',
+ provided_id = '',
+ email = '',
+ phone = '',
+ username = '',
+ last_name = '',
+ first_name = '',
+ is_suspended = True,
+ picture = '',
+ total_sign_ins = 56,
+ failed_sign_ins = 56,
+ last_signed_in = '',
+ created_on = '',
+ organizations = [
+ ''
+ ],
+ identities = [
+ kinde_sdk.models.user_identities_inner.user_identities_inner(
+ type = '',
+ identity = '', )
+ ], )
+ ],
+ next_token = ''
+ )
+ else:
+ return UsersResponse(
+ )
+ """
+
+ def testUsersResponse(self):
+ """Test UsersResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_users_response_users_inner.py b/test/test_users_response_users_inner.py
new file mode 100644
index 00000000..cffeda32
--- /dev/null
+++ b/test/test_users_response_users_inner.py
@@ -0,0 +1,72 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.users_response_users_inner import UsersResponseUsersInner
+
+class TestUsersResponseUsersInner(unittest.TestCase):
+ """UsersResponseUsersInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UsersResponseUsersInner:
+ """Test UsersResponseUsersInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UsersResponseUsersInner`
+ """
+ model = UsersResponseUsersInner()
+ if include_optional:
+ return UsersResponseUsersInner(
+ id = '',
+ provided_id = '',
+ email = '',
+ phone = '',
+ username = '',
+ last_name = '',
+ first_name = '',
+ is_suspended = True,
+ picture = '',
+ total_sign_ins = 56,
+ failed_sign_ins = 56,
+ last_signed_in = '',
+ created_on = '',
+ organizations = [
+ ''
+ ],
+ identities = [
+ kinde_sdk.models.user_identities_inner.user_identities_inner(
+ type = '',
+ identity = '', )
+ ]
+ )
+ else:
+ return UsersResponseUsersInner(
+ )
+ """
+
+ def testUsersResponseUsersInner(self):
+ """Test UsersResponseUsersInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_webhook.py b/test/test_webhook.py
new file mode 100644
index 00000000..6323cd1a
--- /dev/null
+++ b/test/test_webhook.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.models.webhook import Webhook
+
+class TestWebhook(unittest.TestCase):
+ """Webhook unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Webhook:
+ """Test Webhook
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Webhook`
+ """
+ model = Webhook()
+ if include_optional:
+ return Webhook(
+ id = '',
+ name = '',
+ endpoint = '',
+ description = '',
+ event_types = [
+ ''
+ ],
+ created_on = ''
+ )
+ else:
+ return Webhook(
+ )
+ """
+
+ def testWebhook(self):
+ """Test Webhook"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_webhooks_api.py b/test/test_webhooks_api.py
new file mode 100644
index 00000000..7e541cd1
--- /dev/null
+++ b/test/test_webhooks_api.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ Kinde Management API
+
+ Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
+
+ The version of the OpenAPI document: 1
+ Contact: support@kinde.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from kinde_sdk.api.webhooks_api import WebhooksApi
+
+
+class TestWebhooksApi(unittest.TestCase):
+ """WebhooksApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = WebhooksApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_web_hook(self) -> None:
+ """Test case for create_web_hook
+
+ Create a Webhook
+ """
+ pass
+
+ def test_delete_web_hook(self) -> None:
+ """Test case for delete_web_hook
+
+ Delete Webhook
+ """
+ pass
+
+ def test_get_event(self) -> None:
+ """Test case for get_event
+
+ Get Event
+ """
+ pass
+
+ def test_get_event_types(self) -> None:
+ """Test case for get_event_types
+
+ List Event Types
+ """
+ pass
+
+ def test_get_web_hooks(self) -> None:
+ """Test case for get_web_hooks
+
+ List Webhooks
+ """
+ pass
+
+ def test_update_web_hook(self) -> None:
+ """Test case for update_web_hook
+
+ Update a Webhook
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 00000000..ff724d3e
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,9 @@
+[tox]
+envlist = py3
+
+[testenv]
+deps=-r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+
+commands=
+ pytest --cov=kinde_sdk